Skip to content
ACS Infra
Completionjobs

Cancel Completion Job

POST
/v1/completion-jobs/{job_id}/cancel

Cancel a queued or running job, and answer the job. A running job stops its Inference request. A job that ended stays as it is, and the answer is the same job.

Authorization

bearer
headerAuthorizationBearer <token>

An API key: Authorization: Bearer sk-acs-..., or a key of the old platform, acs-bm-.... A User makes and revokes keys in the App.

Path Parameters

job_id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$
Formatuuid

Response Body

CompletionJob

application/json
  1. response
id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$
Formatuuid
request_id*string

The id to send when you report a problem with this job.

model*string
status*string

queued and running until the job ends. Then succeeded when its completion answered 200, failed when it answered an error, or cancelled.

Value in"queued""running""succeeded""failed""cancelled"
cancel_requested*boolean

Whether the job was cancelled.

created_at*string

An ISO 8601 time in UTC, such as 2026-11-03T09:30:00.123+00:00.

started_at*|

When the job started to run. null until it starts.

finished_at*|

When the job ended. null until it ends.

expires_at*|

When the result of the ended job expires: 30 days after it ended. null until it ends.

result_expired*boolean
status_url*string

The path of GET /v1/completion-jobs/{job_id} for this job.

result_url*string

The path of GET /v1/completion-jobs/{job_id}/result for this job.

usage_pending*boolean

Whether the job holds tokens of your budget: true while it runs.

Example Request
curl -X POST 'https://api.v2.infra.acsresearch.org/v1/completion-jobs/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel' \  -H 'Authorization: Bearer <API_KEY>'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "request_id": "string",  "model": "string",  "status": "queued",  "cancel_requested": true,  "created_at": "string",  "started_at": "string",  "finished_at": "string",  "expires_at": "string",  "result_expired": true,  "status_url": "string",  "result_url": "string",  "usage_pending": true}