/developers
Developer docsAtom Files ↗
← API referenceFile intelligence · API access unavailable
API REFERENCE / FILE INTELLIGENCE

POST /v1/processing-runs/{run_id}/cancel

Request cancellation of remaining processing work.

Request fields

LocationFieldTypeRequiredDescription
HeaderAuthorizationstringYesCredential scoped to the authorized resource.
Pathrun_idstringYesExisting processing run.
HeaderIdempotency-KeystringYesStable retry identity for the cancellation.

Request example

Example request
POST /v1/processing-runs/run_123/cancel
Authorization: Bearer <analysis-manage token>
Idempotency-Key: cancel-run-8427

HTTP status codes

StatusMeaning
202 AcceptedSuccess response shown below.
401 UnauthorizedMissing, expired, or invalid credential.
403 ForbiddenCredential is valid but lacks the required scope or role.
404 Not FoundRun is not visible to this caller.
409 ConflictRun is already terminal; inspect its final status.
429 Too Many RequestsRate limit reached; honor Retry-After when provided.
503 Service UnavailableService temporarily unavailable; retry safely.

Response fields

FieldTypeExample
run_idstringrun_123
statusstring (enum)cancellation_requested
Allowed values · closed enumqueuedrunningcancellation_requestedcompletedpartially_completedfailedcancelled
updated_atstring (date-time)2026-10-20T18:04:05Z

Response example

Example response
202 Accepted
Content-Type: application/json

{
  "run_id": "run_123",
  "status": "cancellation_requested",
  "updated_at": "2026-10-20T18:04:05Z"
}

How it works

Cancellation is a race with completion. It does not roll back outputs already published; inspect the run and artifact list afterward. Retrying with the same key must not create a second cancellation.