Asynchrone Jobs
Muster für asynchrone Jobs (202 Accepted + Polling). Der Status wird aus der vergangenen Zeit berechnet, ohne Hintergrund-Worker: queued (die ersten 2 s) -> running (Fortschritt 0-99 %) -> completed | failed ("fail"-Jobs sterben bei 60 %) | cancelled. Der Speicher liegt im RAM, ist auf 200 Jobs begrenzt (die ältesten Nicht-Start-Jobs fallen weg) und wird beim Neustart zurückgesetzt.
- GET
https://api.testingapis.com/api/jobsList all jobs, newest first. - POST
https://api.testingapis.com/api/jobsStart an asynchronous job. - GET
https://api.testingapis.com/api/jobs/{id}Get a job's current status and progress. - DELETE
https://api.testingapis.com/api/jobs/{id}Cancel a queued or running job. - GET
https://api.testingapis.com/api/jobs/{id}/resultGet the result of a completed job.
Beispiel-Request
List all jobs, newest first. Vollständige Referenz und Send-Button (auf Englisch).
cURL
curl -X GET "https://api.testingapis.com/api/jobs"Antwort · 200 OK
[
{
"id": "job_1001",
"type": "import",
"status": "running",
"progress": 8,
"durationSeconds": 60,
"createdAt": "2026-09-30T18:26:35Z",
"startedAt": "2026-09-30T18:26:37Z",
"finishedAt": null,
"statusUrl": "/api/jobs/job_1001",
"resultUrl": null,
"error": null
},
… (15 more lines)