v10
latestOpenAPI 3.1.02026-08-0375143791.1 KBwebdbs
Create a collection
Creates a collection and queues its first sync. Use the preview endpoint first to test extraction.
post/webdbs/collections
Request body
Example request
{
"schema": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Product name."
},
"price": {
"type": "number",
"description": "Current price."
}
},
"required": [
"title"
],
"additionalProperties": false
},
"eligibility": {
"prefilter": {
"url_match": [
"https://shop.com/products/:product_id",
"https://foo.com/item?id=*",
"https://foo.com/bar/*",
"**/events/**"
]
}
},
"targets": [
{
"id": "tgt_123",
"sync": {
"every": "6h"
},
"eligibility": {
"prefilter": {
"url_match": [
"https://shop.com/products/:product_id",
"https://foo.com/item?id=*",
"https://foo.com/bar/*",
"**/events/**"
]
}
}
}
],
"sync": {
"every": "6h"
},
"tags": [
"production",
"team-alpha"
]
}Response
Collection created
Example response
{
"id": "col_123",
"schema": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Product name."
},
"price": {
"type": "number",
"description": "Current price."
}
},
"required": [
"title"
],
"additionalProperties": false
},
"eligibility": {
"prefilter": {
"url_match": [
"https://shop.com/products/:product_id",
"https://foo.com/item?id=*",
"https://foo.com/bar/*",
"**/events/**"
]
}
},
"targets": [
{
"id": "tgt_123",
"sync": {
"every": "6h"
},
"eligibility": {
"prefilter": {
"url_match": [
"https://shop.com/products/:product_id",
"https://foo.com/item?id=*",
"https://foo.com/bar/*",
"**/events/**"
]
}
}
}
],
"sync": {
"every": "6h"
}
}