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>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.twill.ai/llms.txt

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

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