Cancel Job
Task Management
Cancel Job
Cancel a pending job and receive a refund.
POST
Cancel Job
Authentication
This endpoint requires an API key with thesubmit_job scope.
Path Parameters
The unique identifier of the job to cancel.
Details
Only jobs withpending status can be cancelled. Jobs that are already processing, completed, failed, or cancelled cannot be cancelled.
When a job is successfully cancelled, the charged credits are automatically refunded to your account.
Response
Unique identifier of the cancelled job.
Updated job status. Always
"cancelled" on success.The amount refunded in micro-cents.
Error Codes
| Code | Description |
|---|---|
JOB_NOT_FOUND | The specified job ID does not exist. |
UNAUTHORIZED_ACCESS | Your API key does not have access to this job. |
JOB_CANNOT_BE_CANCELLED | The job is not in a cancellable state (not pending). |