Skip to main content
POST
/
agents
/
{agent_id}
/
runs
/
{run_id}
/
cancel
Cancel Agent Run
curl --request POST \
  --url https://api.example.com/agents/{agent_id}/runs/{run_id}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "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
run_id
string
required

Response

Successful Response