CueFrame
Api

Cancel an async job

Cancel a running async job so an agent can abort a mis-priced/runaway operation without waiting out its TTL. For box-backed kinds (verify, preview) the warm box is reaped best-effort. Cancel never meters. Already-terminal jobs are rejected (422 job_not_cancellable).

POST
/v1/jobs/{jobId}/cancel

Authorization

AuthorizationBearer <token>

API key auth. Prefix cf_live_ for production orgs, cf_test_ for sandbox.

In: header

Path Parameters

jobId*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/jobs/string/cancel"
{  "id": "string",  "jobKey": "string",  "kind": "string",  "status": "running",  "progress": {    "phase": "string",    "percent": 0,    "message": "string"  },  "result": null,  "error": {    "code": "string",    "message": "string"  },  "createdAt": "string",  "updatedAt": "string",  "completedAt": "string"}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "x402Version": 2,  "accepts": [    {}  ],  "error": "string"}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}