List collections
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"collections": [
{
"collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "products",
"description": "<string>",
"owner_id": "<string>",
"agent_ids": [
"<string>"
],
"settings": {
"ttl_days": 1,
"max_records": 123
},
"schema": {
"product_name": {
"type": "text"
},
"price": {
"type": "double"
},
"stock": {
"type": "integer",
"nullable": true
},
"active": {
"type": "boolean"
},
"released_at": {
"type": "date"
},
"specs": {
"type": "json"
}
},
"row_count": 123,
"status": "ready"
}
]
}{
"error": "InvalidArguments",
"message": "<string>"
}Collections
List collections
Returns the collections owned by the caller or shared with them. Rate limit: 100 requests/min per user.
GET
/
v1
/
collections
List collections
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"collections": [
{
"collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "products",
"description": "<string>",
"owner_id": "<string>",
"agent_ids": [
"<string>"
],
"settings": {
"ttl_days": 1,
"max_records": 123
},
"schema": {
"product_name": {
"type": "text"
},
"price": {
"type": "double"
},
"stock": {
"type": "integer",
"nullable": true
},
"active": {
"type": "boolean"
},
"released_at": {
"type": "date"
},
"specs": {
"type": "json"
}
},
"row_count": 123,
"status": "ready"
}
]
}{
"error": "InvalidArguments",
"message": "<string>"
}Authorizations
BearerAuthOrgApiKeyAuth
User session JWT. Send as Authorization: Bearer <token>.
Response
Collections accessible to the caller.
Hide child attributes
Hide child attributes
Example:
"products"
User ID or agent ID owning the collection.
Available options:
user, agent Agents granted access (sharing list).
Column definitions: field name → type descriptor.
Example:
{
"product_name": { "type": "text" },
"price": { "type": "double" },
"stock": { "type": "integer", "nullable": true },
"active": { "type": "boolean" },
"released_at": { "type": "date" },
"specs": { "type": "json" }
}
Example:
"ready"
Was this page helpful?
⌘I