TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Cancel a queued or running job

DELETEhttps://api.testingapis.com/api/jobs/{id}Sign in to see this endpoint's URL

Parameters 1

NameTypeDescription
idrequiredpath · stringJob id.

Responses

200
Job cancelled.
404
No job with that id.
409
The job has already finished.

Example

Request
curl -X DELETE "https://api.testingapis.com/api/jobs/job_1001" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "message": "Job cancelled",
  "data": {
    "id": "job_1001",
    "type": "import",
    "status": "cancelled",
    "progress": 16,
    "durationSeconds": 60,
    "createdAt": "2026-09-30T18:26:35Z",
    "startedAt": "2026-09-30T18:26:37Z",
    "finishedAt": "2026-09-30T18:26:47Z",
    "statusUrl": "/api/jobs/job_1001",
    "resultUrl": null,
    "error": null
… (2 more lines)

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.