Trabajos asíncronos
Patrón de trabajo asíncrono (202 Accepted + polling). El estado se calcula a partir del tiempo transcurrido, sin workers en segundo plano: queued (los primeros 2 s) -> running (progreso 0-99%) -> completed | failed (los trabajos "fail" mueren al 60%) | cancelled. El almacén está en memoria, limitado a 200 trabajos (se descartan los más antiguos que no son iniciales) y se reinicia al reiniciar el servidor.
- 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.
Petición de ejemplo
List all jobs, newest first. Referencia completa y botón Send (en inglés).
cURL
curl -X GET "https://api.testingapis.com/api/jobs"Respuesta · 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)