Skip to main content
POST

Authorizations

Authorization
string
header
required

Send your workspace API key as a bearer token:

Keys are scoped to a single workspace. See Authentication.

Headers

Idempotency-Key
string

A unique key, at most 255 characters. Retrying with the same key returns the original response instead of doing the work twice. Keys are retained for 24 hours.

Body

application/json
type
enum<string>
required
Available options:
search,
enrich,
export
input
object
required

The work to run. The shape depends on type:

  • search — a search request body, with no limit or cursor.
  • enrich — an enrich request body, or inputs_url pointing at a JSONL file of inputs.
  • exportentity, format (csv or jsonl) and a search body.
webhook_id
string

Notify this endpoint when the job settles. Omit to poll instead.

Response

The job was accepted.

id
string
Example:

"job_01k3m9x7v2q8r4t6y0b1n5d7fa"

object
string
Allowed value: "job"
type
enum<string>
Available options:
search,
enrich,
export
status
enum<string>
Available options:
queued,
running,
completed,
failed,
cancelled,
partially_completed
progress
object
result_count
integer | null
download_url
string<uri> | null

For export jobs, a signed URL valid for 24 hours.

error
object
credits_charged
integer
created_at
string<date-time>
completed_at
string<date-time> | null