Jobs

Every operation runs as a job: statuses, waiting for the result, webhooks, idempotent retries, listing and canceling.

Statuses

StatusMeaning
queuedAccepted, waiting for a worker.
runningBeing processed; progress goes from 0 to 1, stage names the step.
succeededDone: result and outputs are filled in.
failedNot done: error has a code, a message and a docs_url. Nothing is charged.
canceledCanceled by you. Nothing is charged.

A job that fails because of a passing problem (a worker restarting) is retried by itself: it goes back to queued.

Waiting for the result

Pick one:

Webhooks

When the job finishes, VAPI sends a POST to your URL with {"type": "job.succeeded" | "job.failed" | "job.canceled", "created_at": ..., "data": <the job>}.

Idempotent retries

Send Idempotency-Key: <a unique string> with every request that starts a job. If the answer is lost, send the same request with the same key: you get the original job (Idempotent-Replayed: true), not a second one. The same key with a different body is refused with 409 idempotency_key_reused. Keys are each person's own.

Listing jobs

GET /v1/jobs lists your jobs, newest first.

Parameter
statusqueued, running, succeeded, failed or canceled.
operationreframe or probe.
api_keyOnly jobs started with this key (key_...).
testtrue: only jobs of test keys; false: only real ones.
scopemine (the default) or organization: everyone's (owners and admins of the organization).
limit1 to 100, default 20.
starting_afterA job id: the page after it. has_more says whether there is one.

Whose jobs

A job is the person's who started it: whoever is signed in to the VAPI panel, or the creator of the API key. created_by says who, and with which key. Members see their own jobs; owners and admins of the organization can see everyone's. The organization pays for all of them.

Canceling

POST /v1/jobs/{id}/cancel cancels a queued job at once; a running one stops at its next step. A finished job cannot be canceled (409 job_not_cancelable).

Inputs

A job takes one of:

A URL becomes an upload too: input.upload_id in the job, so a revision or another job can reuse it without downloading it again.

Outputs and how long they are kept

Finished jobs list their files in outputs, each with a url valid for an hour; GET the job again for fresh ones. Output files are kept for 30 days, uploads for 7.