Skip to main content
POST
/
api
/
files
/
upload
Upload File
curl --request POST \
  --url https://api.example.com/api/files/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'task_type=<string>' \
  --form 'file=<string>' \
  --form 'files=<string>' \
  --form message= \
  --form 'task_id=<string>' \
  --form 'folder=<string>' \
  --form file.0='@example-file' \
  --form files.0.items='@example-file'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.xagent.run/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
task_type
string
required
file
file | null
files
file[] | null
message
string
default:""
task_id
string
folder
string

Response

Successful Response

The response is of type Response Upload File Api Files Upload Post · object.