POST /api/v1/cloud/files
Uploads a text-based file and returns a File object.
Headers
Request body
Example request
Example response
HTTP 200 OKResponse 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
nameby keeping the base file name and replacing path separators or null bytes with_.
Errors
See Errors for the full error envelope.
Related
Attach and download files
Upload files to give your agent context, and download files it produces.