> ## Documentation Index
> Fetch the complete documentation index at: https://docs.seekout.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Contact jobs

> Retrieve contacts for up to 500 people in one durable job, with a free estimate first.

`POST /v1/contact-retrieval-jobs` retrieves contacts for up to 500 people in one bounded, durable job. You get a free estimate first if you want one, then a job id to read or a webhook to receive.

## Estimate before you spend

Send the same body with `quote_only: true` and nothing is persisted, nothing is held, and nothing is charged. The answer prices the work for each component after deduplication, so it is the figure to show a user before they commit.

```json theme={null}
{
  "items": 2,
  "components": 3,
  "lines": [
    { "meter": "contact_email.v1", "units": 2 },
    { "meter": "contact_phone.v1", "units": 1 }
  ],
  "omitted": { "duplicates": 0, "not_servable": 0, "not_found": 0 }
}
```

Each line also carries the amounts for that meter, and the quote carries the estimated hold, in microunits. Current rates are available to signed-in accounts under [Pricing](https://console.seekout.io/console/pricing) in the console.

An estimate is an estimate: a person whose contacts your organization already holds costs nothing when the job actually runs, and a channel the provider cannot answer is never charged.

## Create the job

Without `quote_only` the same request creates the job. It answers `202` with a `Job` once acceptance is durable. The hold is taken inline, so a `402` arrives synchronously and no job exists.

```bash theme={null}
curl --request POST "https://developer-api.seekout.io/v1/contact-retrieval-jobs" \
  --header "Authorization: Bearer $SEEKOUT_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: $(uuidgen)" \
  --data '{
    "items": [
      { "candidate": { "source": "public", "key": "example_profile_key" }, "channels": ["email"] },
      { "candidate": { "source": "public", "key": "example_second_profile_key" }, "channels": ["email", "phone"] }
    ]
  }'
```

The answer is the job. `reserved_microunits` is what is held against your balance while it runs. `charged_microunits` grows only as components are delivered, and whatever is not delivered is released.

```http theme={null}
HTTP/1.1 202 Accepted

{
  "job_id": "01JEXAMPLEJOB0000000000000",
  "type": "contact_retrieval",
  "status": "queued",
  "counts": { "requested": 3, "delivered": 0, "pending": 3 },
  "result_available": false,
  "result_url": "/v1/job-results/01JEXAMPLEJOB0000000000000"
}
```

## What a job bounds

| Bound | Value | Over it |
| - | - | - |
| Items per job | 500 | `422`. Send fewer rows |
| Running jobs per organization | 2 | `429` `contact_job_concurrency_cap` with `Retry-After` |
| Job lifetime | 30 minutes | The job ends `expired`; delivered components are charged and the rest are released |
| Result retention | 7 days | `409` `result_set_expired`. Create the job again |

Rows are deduplicated for each person and channel before anything is priced or held, and the answer reports what it dropped in `omitted.duplicates`. Asking for the same pair twice never pays twice.

## Map results back to your rows

Give any item a `client_reference` (1 to 128 visible ASCII characters, unique within the request), such as your own candidate id. The result then carries `rows`: one entry per request item, in request order, with your reference, an `outcome`, and for each channel the `item_index` in `items` that holds the values and the charge. A row that repeats a person points at the same item and names the first row in `shared_with_row`, so it is never charged again.

```json theme={null}
"rows": [
  {
    "row_index": 0,
    "client_reference": "ats-candidate-123",
    "candidate": { "source": "public", "key": "example_profile_key" },
    "outcome": "mapped",
    "channels": [
      { "channel": "email", "status": "delivered", "item_index": 0, "shared_with_row": null }
    ]
  },
  {
    "row_index": 1,
    "client_reference": "ats-candidate-456",
    "candidate": { "source": "public", "key": "example_profile_key" },
    "outcome": "mapped",
    "channels": [
      { "channel": "email", "status": "delivered", "item_index": 0, "shared_with_row": 0 }
    ]
  }
]
```

Sending any reference also makes an unknown person a `not_found` row with no charge instead of a `404` for the whole job, and reports the count in `omitted.not_found`. A job where nobody resolves is still a `404`. Changing a reference under the same `Idempotency-Key` is a `409` conflict. References are for your joins only: they never change who is matched or what is charged.

## Read the job

* `GET /v1/jobs` lists your own jobs, newest first, filterable by `type` and `status` and paged with `cursor` and `limit`.
* `GET /v1/jobs/{job_id}` is one job: its status, counts, reserved and charged microunits, and whether a result is available yet.
* `GET /v1/job-results/{job_id}` is the items: one entry for each person and channel with its values, `reused`, its own charge, and the `receipt_id` its charge settled on. Reading it again never charges.
* `POST /v1/jobs/{job_id}/cancel` stops what has not started. Delivered components settle and everything else is released.

Every pending single-person retrieval is readable through the same two reads, using the `job_id` its `202` carried. See [contacts](https://docs.seekout.com/developer-platform/guides/contacts.md).

## Job statuses

| Status | Meaning | Result readable |
| - | - | - |
| `queued` | Accepted and funded; not started yet | No |
| `running` | Components are with the provider | No |
| `completed` | Every component resolved | Yes |
| `partial` | Some components resolved and some did not | Yes |
| `failed` | No component could be delivered | No |
| `cancelling` | A cancel was requested and is converging | No |
| `cancelled` | Cancelled; delivered components were charged | Yes |
| `expired` | The 30-minute deadline passed | Yes |

> [!NOTE]
>
> A result read before the job ends is a `409`. `GET /v1/job-results/{job_id}` answers `409` `job_not_finished` until the job is terminal. It never returns a half-built page. A job id belonging to another workspace is `404` `job_not_found`, exactly as an absent one is, so a job id is never a way to learn what exists.

Estimates are free, and so are all four reads and the cancel. Only delivered components charge. See [credits](https://docs.seekout.com/developer-platform/credits.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.