AI agent
Upload knowledge files
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the settings:write ability
Body
application/jsonfilenamestringfilename of the file being uploaded
Format: binary
namestringgeneral purpose name for multipart form value
Response 201
CreateddataobjectrequiredShow child attributesHide child attributes
keystringrequiredThe key that names the uploaded archive. Put it in a source's settings to read from this upload.
namestringrequiredThe uploaded file's name.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.