Skip to main content
POST
/
agents
/
{agent_id}
/
runs
Create Agent Run
curl --request POST \
  --url https://api.example.com/agents/{agent_id}/runs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'message=<string>' \
  --form stream=false \
  --form 'session_id=<string>' \
  --form 'user_id=<string>' \
  --form 'files=<string>' \
  --form files.0.items='@example-file'
{
  "detail": "Bad request",
  "error_code": "BAD_REQUEST"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

agent_id
string
required

Body

multipart/form-data
message
string
required
stream
boolean
default:false
session_id
string | null
user_id
string | null
files
file[] | null

Response

Agent run executed successfully