Skip to main content
Collections group knowledge sources by topic. An agent can be limited to some of them with its knowledge_collections; every account has General, where sources go when no collection is given.
Needs the agents.knowledge:read scope.

Request

Response

200 OK — data holds every collection, by name, with how many sources it holds. The list isn’t paged.

Errors

Every refusal is {"error": {"code", "message", "field"}}; field is there when one input is at fault. Any request can also be refused for its key, its account or its rate (key_required, invalid_key, account_suspended, plan_excludes_api, address_not_allowed, rate_limited); see the overview.