Cancel a pending async task.
/v1/tasks/{task_id}Authorization β This endpoint requires an API key. Pass it in the api-key header on every request. See the quickstart
| Name | Type | Status | Description |
|---|---|---|---|
task_id | string | Required | The task ID to cancel. |
Task cancelled
| Name | Type | Description |
|---|---|---|
message | string |
curl -X DELETE "https://api.snapapi.ai/v1/tasks/YOUR_TASK_ID" \
-H "api-key: YOUR_API_KEY"{
"message": "task abc123 cancelled"
}