Tâches asynchrones
Modèle de tâche asynchrone (202 Accepted + polling). Le statut est calculé à partir du temps écoulé, sans worker en arrière-plan : queued (les 2 premières secondes) -> running (progression 0-99 %) -> completed | failed (les tâches "fail" meurent à 60 %) | cancelled. Le stockage est en mémoire, limité à 200 tâches (les plus anciennes hors données de départ sont évincées), et repart à zéro au redémarrage.
- 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.
Exemple de requête
List all jobs, newest first. Référence complète et bouton Send (en anglais).
cURL
curl -X GET "https://api.testingapis.com/api/jobs"Réponse · 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)