Skip to content
dimmiDocs

AI agent

Upload knowledge files

POST/api/v1/knowledge/uploads

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the settings:write ability

Body

application/json
filenamestring

filename of the file being uploaded

Format: binary

namestring

general purpose name for multipart form value

Response 201

Created
dataobjectrequired
Show child attributes
keystringrequired

The key that names the uploaded archive. Put it in a source's settings to read from this upload.

namestringrequired

The uploaded file's name.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.