Upload session file
Upload a file into a session’s input namespace so it can be attached to a message. The response returns the stored path — pass it as file_name in the attachments array when sending a message on the same session.
Files are base64 encoded in the request body and limited to 200MB (decoded). Uploaded files are scoped to the session they were uploaded to and cannot be attached to messages on other sessions.
Authorizations
Path Parameters
ID of the session to upload the file to.
Body
Name of the file. Directory components are stripped; the base name is sanitized before storage.
"report.pdf"
Base64-encoded file contents. Maximum decoded size is 200MB.
MIME type of the file. Echoed back in the response.
"application/pdf"
Response
File stored. Use file_name from the response as an attachment on this session's messages.
