Skip to content

Background jobs

Queue a long Deep Search lookup as a job, follow its events, cancel it or fetch the result later. Jobs and their recoverable results are kept for 30 days.

Start a background job

For work that takes a while, POST /api/v1/jobs runs any operation in the background. Jobs can be created idempotently, listed with cursor pagination, polled, cancelled, replayed as stored SSE, run against the sandbox and reported through signed webhooks. Deep Search keeps each job, and any result that can be recovered, for 30 days.

Queue a sandbox dossier job

Watch and control a job

By default the events endpoint returns what has happened so far and then closes. Add follow=1 to keep listening, and pass after or Last-Event-ID to pick up where you left off. A following connection closes after four minutes, so reconnect with the last ID you saw. A cancel takes effect at the next checkpoint, and work already delivered may still be charged.

EndpointUse
POST /api/v1/jobsQueue a new job.
GET /api/v1/jobsYour account's latest jobs, page by page.
GET /api/v1/jobs/{id}One job's status, any errors and its result.
GET /api/v1/jobs/{id}/eventsThe job's saved events as SSE, replayed, or followed live after the event ID you give.
POST /api/v1/jobs/{id}/cancelStop a queued or running job that belongs to your account.