Skip to content

Get Prospecting Job Status

GET https://api.onfire.ai/data-access-api/v1/prospecting/jobs/{job_id}

Return the current status of a prospecting job without the prospects payload. Use this endpoint to poll a running job — once status transitions away from running, fetch the full payload from Get Job Results.

The job is scoped to the authenticated tenant. Jobs created by a different tenant return 403 Forbidden.

HeaderRequiredDescription
X-Api-KeyYesYour tenant API key.
ParameterTypeDescription
job_idintThe id returned by POST /prospecting/start.
Terminal window
curl "https://api.onfire.ai/data-access-api/v1/prospecting/jobs/1842" \
-H "X-Api-Key: your-api-key"
{
"job_id": 1842,
"status": "success",
"tenant_id": "your-tenant",
"company_linkedin_url": "https://www.linkedin.com/company/crowdstrike",
"team": "smb",
"client_email": "ae@example.com",
"run_start_time": "2026-05-18T14:02:11.482000+00:00",
"run_end_time": "2026-05-18T14:07:48.117000+00:00",
"failure_reason": null
}
FieldTypeDescription
job_idintThe job id you passed in the URL.
statusstringOne of running, success, failed.
tenant_idstringTenant that owns the job — must match the authenticated tenant.
company_linkedin_urlstringThe company URL the run was started with.
teamstringTeam name (may be null).
client_emailstringEmail captured at start time (may be null).
run_start_timestringISO 8601 UTC timestamp.
run_end_timestringISO 8601 UTC timestamp. null while status = running.
failure_reasonstringShort failure description. Populated only when status = failed.
{ "detail": "Invalid API key" }
{ "detail": "Job belongs to a different tenant" }
{ "detail": "Job not found" }

502 / 504 — Phoenix upstream error / timeout

Section titled “502 / 504 — Phoenix upstream error / timeout”

The downstream prospecting service returned an error or timed out while reading the run record.

  • Start with a short interval (e.g. 5–10 seconds) for the first minute, then back off to 30–60 seconds. Most runs complete in 2–5 minutes.
  • Treat any status other than running as terminal — success or failed will not transition again.
  • On failed, failure_reason is the only payload you’ll need. There will be no prospects to fetch.