Skip to main content
POST
Upload file

Authorizations

Authorization
string
header
required

Company API key (mwk_) or personal access token (mel_). A PAT requires X-Workspace-ID on company-scoped routes. An API key implies its own company.

Headers

X-Workspace-ID
string<uuid>

Company UUID for a personal token on company-scoped operations. A company API key already binds its company.

Body

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

Response

AttachmentResponse with workspace context; otherwise {id:string,url:string,filename:string} for a user file.

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