Skip to main content
POST /api/v1/cloud/files Uploads a text-based file and returns a File object.

Headers

Request body

Example request

Example response

HTTP 200 OK

Response fields

Notes

  • The multipart request body is limited to about 5 MB of file content plus multipart overhead.
  • Only text-based files are accepted. Binary document, image, audio, video, and archive files are rejected.
  • The server sanitizes name by keeping the base file name and replacing path separators or null bytes with _.

Errors

See Errors for the full error envelope.

Attach and download files

Upload files to give your agent context, and download files it produces.