Skip to main content
POST
Upload file

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

multipart/form-data
file
file
required
task_id
string
message_id
string
run_id
string

Response

AttachmentResponse (see Tasks). Pass returned IDs as attachment_ids:UUID[] to tasks_create or tasks_send.

id
string
required
workspace_id
string
required
task_id
string | null
required
message_id
string | null
required
run_id
string | null
required
uploader_type
string
required
uploader_id
string
required
filename
string
required
url
string
required
download_url
string
required
markdown_url
string
required
content_type
string
required
size_bytes
integer
required
created_at
string
required
attachment_download_url
string