Add a text document
Plain text or Markdown. Indexed before the response returns (status ready). Subject to the plan’s knowledge size (403 plan_limit).
Sessions: admins.
Needs the knowledge:write scope. A key without it gets 403 insufficient_scope. Routes not in this reference cannot be called with a key at all (403 not_available_to_api_keys).
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
id
The expert id.
Request
This endpoint expects an object.
filename
content
mimeType
Default text/plain.
uploaded
True when the text is the contents of an uploaded file (the Knowledge library shows it as a file).
Response
OK
id
A UUID.
agentId
A UUID.
filename
mimeType
status
Allowed values:
createdAt
error
updatedAt
_count
Errors
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error