Skip to main content
POST
Create a file

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

File name.

Minimum string length: 1
mime_type
string
default:application/octet-stream

MIME type. The upload must send the same Content-Type header.

Minimum string length: 1
size_bytes
integer

File size in bytes.

Required range: x >= 0
origin_tool_call_id
string

Tool call that produced the file, when an agent uploads it. The chat session is taken from the caller's credentials.

Minimum string length: 1

Response

The created file.

data
object
required

Response payload.