Get a knowledge document
GET
/assistants /{id} /knowledge /{documentId}With its text and, for a file, a link to the original. Poll it after an upload until status leaves processing.
Path parameters
idstringrequiredID of the assistant, as returned by
GET /assistants.documentIdstringrequiredID of the document, from
GET /.assistants/ {id}/ knowledge
Request body
No body: send the request without one.
Response
200documentobject
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.