Skip to content

Start a Prospecting Job

POST https://api.onfire.ai/data-access-api/v1/prospecting/start

Kick off an AI prospecting run for a single company and receive a job_id immediately. The pipeline runs asynchronously in the background; poll Get Job Status and fetch the ranked prospects via Get Job Results.

A single run typically takes 2–5 minutes.

HeaderRequiredDescription
Content-TypeYesMust be application/json.
X-Api-KeyYesYour tenant API key.
FieldTypeRequiredDescription
linkedin_urlstringYesLinkedIn company URL to prospect (e.g. "https://www.linkedin.com/company/crowdstrike").
team_namestringNoTeam name within the tenant. Used to select the team’s prospecting schema.
client_emailstringNoEmail of the user initiating the run. Stored on the run record for attribution.
Terminal window
curl -X POST "https://api.onfire.ai/data-access-api/v1/prospecting/start" \
-H "Content-Type: application/json" \
-H "X-Api-Key: your-api-key" \
-d '{
"linkedin_url": "https://www.linkedin.com/company/crowdstrike",
"team_name": "smb",
"client_email": "ae@example.com"
}'

The job has been created and scheduled. Use the returned job_id with the status and results endpoints.

{
"job_id": 1842,
"status": "running",
"tenant": "your-tenant",
"team_name": "smb",
"message": "Job 1842 started"
}
FieldTypeDescription
job_idintUse with the status / results endpoints.
statusstringInitial status — always running on a fresh job.
tenantstringTenant that owns the job (from your API key).
team_namestringEcho of the requested team (may be null).
messagestringHuman-readable confirmation.
{ "detail": "Invalid API key" }

Returned when the JSON body fails Pydantic validation — for example a missing linkedin_url. Response body conforms to HTTPValidationError.

{ "detail": "Rate limit exceeded" }

502 / 504 — Phoenix upstream error / timeout

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

Returned when the downstream prospecting service is unavailable or did not respond in time.

{ "detail": { "status": "PHOENIX_UPSTREAM_ERROR", "upstream_status": 502 } }