非同期ジョブ
非同期ジョブのパターン(202 Accepted + ポーリング)。状態は経過時間から計算されるので、バックグラウンドのワーカーはありません。queued(最初の 2 秒)-> running(進捗 0〜99%)-> completed | failed("fail" ジョブは 60% で失敗)| cancelled。保存先はメモリ上で、上限は 200 件(初期データ以外の古いものから削除)、再起動でリセットされます。
あなたのアカウントでこれらのエンドポイントが使えます。各エンドポイントのページの Try it でリクエストを送れます。
- GET
https://api.testingapis.com/api/jobsList all jobs, newest firstList all jobs, newest first. - POST
https://api.testingapis.com/api/jobsStart an asynchronous jobStart an asynchronous job. - GET
https://api.testingapis.com/api/jobs/{id}Get a job's current status and progressGet a job's current status and progress. - DELETE
https://api.testingapis.com/api/jobs/{id}Cancel a queued or running jobCancel a queued or running job. - GET
https://api.testingapis.com/api/jobs/{id}/resultGet the result of a completed jobGet the result of a completed job.
リクエストの例
List all jobs, newest first. 完全なリファレンスと Send ボタン(英語).
cURL
curl -X GET "https://api.testingapis.com/api/jobs"レスポンス · 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)サインインして詳細を見る
これらのエンドポイントのパラメータ、リクエストとレスポンスの例、ライブの Try it パネルは、サインインしたメンバー向けです。アカウントは無料で、数秒で作成できます。