Upload a file
A PDF, Word (.docx), Markdown, text or CSV file as base64; its text is extracted and indexed.
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
data
The file, base64.
mimeType
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