Skip to content
Assistants

List an assistant's knowledge base

GET/assistants/{id}/knowledge

The documents the agent searches during its calls instead of carrying them in its prompt. Once a document is ready, the agent gets a search_knowledge tool on its calls. Say in the prompt when to use it, e.g. "the agency's listings are in your knowledge base: search them with search_knowledge".

Path parameters

Request body

No body: send the request without one.

Response

200
  • documentsarray of object

Errors

  • 404Not found in your organization{ "message"?: string, "error"?: string, "bodyErrors"?: {…} }

Error bodies carry an error (or message) string; a 400 adds bodyErrors.issues. See Errors.