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){
"items": [
{
"collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "products",
"description": "<string>",
"owner_id": "<string>",
"owner_type": "user",
"agent_ids": [
"<string>"
],
"orgSlug": "<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"
}
},
"indexes": [
{
"properties": [
"sku"
]
}
],
"uniques": [
{
"properties": [
"sku"
]
}
],
"charts": [
{
"id": "<string>",
"kind": "bar",
"title": "<string>",
"agg": "count",
"field": "<string>",
"dimension": "<string>"
}
],
"row_count": 123,
"status": "ready"
}
],
"total": 123,
"page": 123,
"limit": 123
}{
"error": "InvalidArguments",
"message": "<string>"
}List collections
Returns the collections owned by the caller within their organization,
paginated. Set with_counts=true to include an estimated row_count
per collection (from database statistics, near-free, ideal for
dashboards; the exact count is available via the count endpoint).
Rate limit: 100 requests/min per user.
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){
"items": [
{
"collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "products",
"description": "<string>",
"owner_id": "<string>",
"owner_type": "user",
"agent_ids": [
"<string>"
],
"orgSlug": "<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"
}
},
"indexes": [
{
"properties": [
"sku"
]
}
],
"uniques": [
{
"properties": [
"sku"
]
}
],
"charts": [
{
"id": "<string>",
"kind": "bar",
"title": "<string>",
"agg": "count",
"field": "<string>",
"dimension": "<string>"
}
],
"row_count": 123,
"status": "ready"
}
],
"total": 123,
"page": 123,
"limit": 123
}{
"error": "InvalidArguments",
"message": "<string>"
}Authorizations
User session JWT. Send as Authorization: Bearer <token>.
Query Parameters
Page size (max 100).
1 <= x <= 100Page number.
x >= 1Include an estimated row_count on each returned collection.
Response
Collections accessible to the caller (paginated).
Hide child attributes
Hide child attributes
"products"
User ID or agent ID owning the collection.
user, agent Agents granted access (sharing list).
Organization the collection belongs to (tenant boundary).
Column definitions: field name → type descriptor.
{
"product_name": { "type": "text" },
"price": { "type": "double" },
"stock": { "type": "integer", "nullable": true },
"active": { "type": "boolean" },
"released_at": { "type": "date" },
"specs": { "type": "json" }
}
On list with with_counts=true, an estimated count; null otherwise.
"ready"
Total number of collections for the caller.
Was this page helpful?