Upload a file
Upload a file into the session’s uploads directory. The file is stored under uploads/{filename} within the session scope and its relative path is returned as the file ID. Uploading a file with the same name overwrites the existing one.
Query parameters
scope_id
Session / container identifier (matches the container field in chat requests).
Request
Request payload.
file
file field.
Response
Successful Response
id
Relative path of the file within the session, e.g. ‘uploads/data.csv’ or ‘outputs/result.png’. Use this value as file_id in subsequent requests.
created_at
ISO-8601 timestamp when the file was created or last modified.
filename
Filename derived from the path.
mime_type
MIME type detected from the file content.
size_bytes
File size in bytes.
downloadable
True for sandbox output files; False for uploaded input files.
scope
Session scope this file belongs to.
type
Object type discriminator, always 'file'.
Errors
401
Unauthorized Error
422
Unprocessable Entity Error

