Skip to main content
POST
/
api
/
v1
/
tasks
/
{id}
/
cancel
Cancel task
curl --request POST \
  --url https://api.humcli.com/api/v1/tasks/{id}/cancel \
  --header 'X-API-Key: <api-key>'
{
  "task_id": "<string>",
  "status": "PENDING",
  "refunded_usd": 123
}

Authorizations

X-API-Key
string
header
required

API key for agent and task endpoints. Format: ho_live_...

Path Parameters

id
string
required

Response

Task cancelled

task_id
string
required
status
enum<string>
required
Available options:
PENDING,
ESTIMATE_PENDING,
ACCEPTED,
IN_PROGRESS,
SUBMITTED,
VERIFIED,
COMPLETED,
MANUAL_REVIEW,
DISPUTED,
CANCELLED
refunded_usd
number
required