Skip to main content
POST
/
tasks
/
{taskIdOrSlug}
/
cancel
Cancel task
curl --request POST \
  --url https://twill.ai/api/v1/tasks/{taskIdOrSlug}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "task": {
    "id": "<string>"
  }
}
Cancels the task and marks it as CANCELLED.

Authorizations

Authorization
string
header
required

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

Path Parameters

taskIdOrSlug
string
required

Response

Task cancelled

success
boolean
required
task
object
required