Skip to main content

Files API

Manage files attached to your agents. You can upload files for an agent to access, list existing files, and delete them. All endpoints require session authentication.

List files

Returns all files for the authenticated user, optionally filtered by agent.

Query parameters

Response

File object

Errors

Upload a file

Upload a file for an agent. The request must use multipart/form-data encoding.

Request body (multipart/form-data)

Response (201)

Upload response fields

The GET endpoint returns filename while the POST response returns name. Both refer to the original filename of the uploaded file.

Errors

Delete a file

Delete a file by its ID.

Request body

Response

Errors