GET/api/v1/jobs/{job_id}
Get a background job
Poll the job id returned by a long-running call (ingestion, audience reactions, report generation) until status is completed, failed or cancelled. result and parameters are JSON-encoded strings. Jobs from other workspaces answer 404.
PARAMETERS
- job_idpath · stringREQUIRED
- The job id returned by the call that queued the work.e.g. string
REQUEST
curl "https://gateway.kumkuat.ai/api/v1/jobs/string" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://gateway.kumkuat.ai/api/v1/jobs/string", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/jobs/string", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"created_at": "string",
"id": "job_7f3a9c2e",
"job_type": "audience_reactions",
"max_retries": 0,
"priority": 0,
"retry_count": 0,
"status": "completed",
"workspace_id": "string"
}
