SnapEditDocs
API HomeGet API Key
API Reference

Cancel task

Cancel a pending async task.

delete/v1/tasks/{task_id}

Authorization β€” This endpoint requires an API key. Pass it in the api-key header on every request. See the quickstart

Body

NameTypeStatusDescription
task_id
stringRequiredThe task ID to cancel.

Responses

Task cancelled

NameTypeDescription
messagestring
curl -X DELETE "https://api.snapapi.ai/v1/tasks/YOUR_TASK_ID" \
  -H "api-key: YOUR_API_KEY"
Response
{
  "message": "task abc123 cancelled"
}