# Request photos by link

Send a branded link that asks someone for photos, a selfie, a photo of their ID or a short video, taken live with their phone camera, and get each one back as an attestation.

A capture request asks someone outside your company for photos, a selfie, a photo of an ID or a short video. Provenance texts or emails them a link to a capture page with your branding. They take each item live with their camera, and you get each one back as an attestation on the case, with a webhook as it lands.

In the [capture-to-verify path](https://provenanceauth.com/docs/attest/quickstart.md), this guide is the capture step by link, for people outside your app.

No app is needed on their side, and you host nothing. The page takes live camera frames only: there is no upload button, so a photo from the library can't be used.

With the [capture release](https://provenanceauth.com/docs/attest/guides/capture-release.md) on, the page asks the person to agree to the Terms of Service before the camera opens, records the answer, and tells you when they choose **Not now**.

For onboarding and claims there are two guided sessions with fixed steps: an [ID session](https://provenanceauth.com/docs/attest/guides/id-capture-sessions.md) (an ID card or passport, then a selfie with a head-turn check) and a [claim session](https://provenanceauth.com/docs/attest/guides/claim-capture-sessions.md) (up to 20 photos and 3 videos). This guide covers requests with your own item list; both use the same link, page and webhooks.

**Before you begin:** set `PROVENANCE_API` as on [Sandbox and keys](https://provenanceauth.com/docs/get-started/sandbox.md) and create an Attest key in the console (Developers → API keys). Capture requests need an `attest` key on an account with its own Attest key. In the sandbox, the published key `prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x` is set up for you.

## 1. Create the request

Send [`POST /v1/attest/capture_requests`](https://provenanceauth.com/docs/api/capture-requests.md#post-v1-attest-capture-requests) with the case, the items in order, and who gets the link.

**curl**

```bash
export PROVENANCE_KEY=prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x
curl -X POST $PROVENANCE_API/v1/attest/capture_requests \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "case_id": "CLM-1042",
    "items": [
      { "type": "selfie", "label": "Your face" },
      { "type": "id_document", "label": "Your ID", "instructions": "Lay it flat on a dark surface." },
      { "type": "photo", "instructions": "The damage, from a step back." }
    ],
    "contact": { "phone": "+14155550123" }
  }'
```

**Node**

```ts
import { Provenance } from "@provenanceauth/sdk";

const prov = new Provenance({ apiKey: process.env.PROVENANCE_KEY!, baseUrl: process.env.PROVENANCE_API });
const request = await prov.attest.captureRequests.create({
  caseId: "CLM-1042",
  items: [
    { type: "selfie", label: "Your face" },
    { type: "id_document", label: "Your ID", instructions: "Lay it flat on a dark surface." },
    { type: "photo", instructions: "The damage, from a step back." },
  ],
  contact: { phone: "+14155550123" },
});
console.log(request.id, request.delivery);
```

**Python**

```python
import os
from provenanceauth import Provenance

prov = Provenance(os.environ["PROVENANCE_KEY"], base_url=os.environ["PROVENANCE_API"])
request = prov.attest.capture_requests.create(
    case_id="CLM-1042",
    items=[
        {"type": "selfie", "label": "Your face"},
        {"type": "id_document", "label": "Your ID", "instructions": "Lay it flat on a dark surface."},
        {"type": "photo", "instructions": "The damage, from a step back."},
    ],
    contact={"phone": "+14155550123"},
)
print(request["id"], request["delivery"])
```

```json
{
  "id": "capr_01M5W16JW5SGV0JZMPWSYPB55V",
  "object": "capture_request",
  "status": "pending",
  "case_id": "CLM-1042",
  "items": [
    { "object": "capture_item", "index": 0, "type": "selfie", "label": "Your face", "status": "waiting", "attestation_ids": [], "tier": null },
    { "object": "capture_item", "index": 1, "type": "id_document", "label": "Your ID", "sides": ["front", "back"], "status": "waiting", "attestation_ids": [], "tier": null },
    { "object": "capture_item", "index": 2, "type": "photo", "label": null, "status": "waiting", "attestation_ids": [], "tier": null }
  ],
  "contact": { "phone": "+14•••23" },
  "delivery": { "channel": "text", "delivered": true, "sender": "custom", "test": true },
  "channels": ["app_notification", "email", "text"],
  "deliveries": [{ "recipient": "•••• 0123", "channel": "text", "channel_reason": "default", "status": "sent", "sent_at": "2026-10-25T11:58:12.877Z", "test": true, "sender": "custom" }],
  "expires_at": "2026-10-27T11:58:12.876Z",
  "resends_left": 3
}
```

The example is shortened. The sandbox records texts and sends none, so `delivery` carries `"test": true` and you can [read the text back](https://provenanceauth.com/docs/messaging/test-texts.md). In live the same delivery has no `test`. Each item takes a `type`, and optionally a `label` (up to 60 characters) and plain-text `instructions` (up to 200):

| Type | Camera | Guide on the viewfinder |
| --- | --- | --- |
| `photo` | Back | None |
| `selfie` | Front | An oval |
| `id_document` | Back | An ID-card rectangle, one capture per side. `sides` is `["front"]` or `["front", "back"]` (the default) |
| `video` | Back | None. Records up to `max_duration_s` (5–60 seconds, default 30); `min_duration_s` sets a floor |

### Photos until they're done

For damage photos you rarely know how many the person needs. Send a `photo` item with `"until_done": true` and the person keeps adding photos, then taps **Done**. The link and the page show no count: the page says "Take as many photos as you need, then tap Done", and after each photo, how many were sent.

```json
{ "type": "photo", "label": "Capture images of the damage for your claim", "until_done": true }
```

The item takes at least one photo. The server caps it at 50 (`max_count`, 2 to 50, lowers the cap; the person never sees it) and refuses a photo past the cap. Done on the last open item completes the request, as the last photo of any other item does.

The item comes back with `"until_done": true`, `min_count` 1, `max_count` and an `attestation_ids` entry for every photo; the console's Captures panel shows every one. A [claim session](https://provenanceauth.com/docs/attest/guides/claim-capture-sessions.md) takes the same choice as `"photos": { "until_done": true }`, and New request's Claim session sets it with **Photos: Until they're done**. Keep the label general (what the photos are for, not which part to shoot): the person decides what to show.

A request holds 1 to 10 items. It stays open for `expires_in` seconds (default 48 hours, up to 7 days); `link_expires_in` limits each link (default: the whole request). Add up to 20 `metadata` pairs of your own; they come back on the request and its webhooks. A `person` pair names the person in the console's Captures list (the console's New request sets it from its Person field).

## 2. Choose how the link travels

`contact` takes a phone (E.164), an email, or both; give both when you have them.

It also takes the person's `name` as you hold it (`"name": "Maya Chen"`, 1 to 100 characters). Your reads of the request, your Captures list and your account export show it in full. It is kept sealed, never shown on the person's page or sent in a webhook, and cleared with the contact 30 days after the request ends. A name alone is no contact to send to, so it goes with a link-only request too.

Two more fields say what we send:

| Field | Values | Left out |
| --- | --- | --- |
| `delivery` | `send`: we send the request. `self`: link only, nothing is sent and the response carries `capture_url` | With a contact, your account's default (`send` out of the box). With no contact, link only |
| `channels` | Any of `app_notification`, `email` and `text`, in any order: which of our messages may go | Your account's default, all three out of the box |

- **What goes.** The person gets two messages when you give both contacts: the app notification and the email when their contact is one they verified in the Provenance app, the text and the email otherwise. With a phone only, the notification or the text; with an email only, the email, and the notification beside it when they have the app.
- **Each message goes on its own.** One that fails doesn't stop the other, and nothing replaces it: a text that couldn't go isn't sent again as an email. The request counts as sent when at least one message went.
- **A channel you leave out is skipped.** With `["email"]` only the email goes; with `["email", "text"]` the text and the email, and we don't check for the app; with `["app_notification"]` nothing goes unless the person has the app. When nothing can go, the request is still created and `deliveries` holds one `not_sent` entry with `channel_excluded`.

| `channels` | Their contact is in the app | It isn't |
| --- | --- | --- |
| All three (the default) | App notification and email | Text and email |
| `app_notification`, `email` | App notification and email | Email |
| `app_notification`, `text` | App notification | Text |
| `email`, `text` | Text and email (not checked) | Text and email |
| `app_notification` | App notification | Nothing |
| `email` | Email | Email |
| `text` | Text | Text |

A message goes only to a contact you gave: an email-only request sends no text.

- **A list that can reach none of the contacts is refused**, such as `["text"]` with only an email: `400 parameter_invalid` on `channels`. The older names `sms` and `app_push` are refused too.

Set the defaults for every new request in **Settings › Reminders** › **Delivery**, or with [`PUT /v1/account/reminders`](https://provenanceauth.com/docs/api/account.md#put-v1-account-reminders) (`delivery`, `channels`). With a default of link only, a request that gives a contact must say `"delivery": "send"`.

**The follow-up text.** After an app notification, a text follows when the request isn't opened within 5 minutes. At night it waits until quiet hours end. Change it on the request with `follow_up_text`, or set your default in Settings:

| Field | Values |
| --- | --- |
| `follow_up_text.enabled` | `true` or `false` |
| `follow_up_text.when` | `not_opened` (the default) or `not_finished` |
| `follow_up_text.after_minutes` | 1 to 1440, shorter than `expires_in` |

While it waits, `deliveries` holds one more `text` entry with `channel_reason: "follow_up"` and `status: "scheduled"`. It ends `sent`, or `cancelled` when the request was opened first. See [the follow-up text](https://provenanceauth.com/docs/messaging/reminders.md#11-the-follow-up-text).

**Reminders.** Each reminder goes the way the first message did, on the request's `channels`: the notification or the text, with the email, counted once, and a notification gets its own follow-up text. Give the request its own automatic reminders with `reminders` (`{ "enabled": true, "after": ["24h", "72h"] }`, the shape of your capture schedule in Settings; keys left out take your saved values). The request returns what's tracked as `reminders.schedule`. See [a request's own schedule](https://provenanceauth.com/docs/messaging/reminders.md#set-a-requests-own-schedule).

`deliveries` lists each message with the masked contact it went to and its own `status` (`sent` or `not_sent` with a `reason`); a text or an email that went carries `sender`, `custom` from [your own number](https://provenanceauth.com/docs/messaging/sending-numbers.md) or domain and `default` from Provenance's. The request's timeline has one `sent` line per message. The single `delivery` is the first message that went (the app notification, then the text, then the email), or the first one's refusal:

| `delivery` | Meaning |
| --- | --- |
| `{ "channel": "text", "delivered": true }` | The text was accepted by the provider |
| `{ "channel": "app_notification", "delivered": true }` | The person got it in the Provenance app |
| `reason: "channel_excluded"` | Your `channels` left out every way to reach the contact, so nothing was sent |
| `reason: "channel_not_configured"` | No SMS or email provider is configured on this server, so nothing was sent |
| `reason: "plan_send_limit"` | On a text: Free doesn't send texts to your customers; the email still goes when the request has one. On an email: the trial ended. `upgrade_url` says where to choose a plan |
| `reason: "sender_not_ready"` | On a text: your own number isn't approved yet ([sending numbers](https://provenanceauth.com/docs/messaging/sending-numbers.md)); the email still goes when the request has one |
| `reason: "no_text_consent"` | On a text: the phone has no [consent to text](https://provenanceauth.com/docs/messaging/text-consent.md#10-when-a-text-goes) on record; the email still goes when the request has one |
| `reason: "self_delivery"` | You asked to deliver the link yourself |

To show the link in your own app or message, send `"delivery": "self"` (or leave out both `contact` and `delivery`). The response then carries `capture_url`, and nothing is sent or counted.

The text reads "Quillstack needs a selfie, a photo of your ID and a photo from your phone camera", then the link. The name is your branding name, and what is asked for is written from the items.

On Pro and up you can set your own wording in Settings → Branding, or with [`PUT /v1/account/notify_template`](https://provenanceauth.com/docs/api/account.md#put-v1-account-notify-template):

| Field | What it sets |
| --- | --- |
| `capture_sms_template` | The text. It must include `{{requester}}` and `{{link}}`; `{{what}}` and `{{expires}}` are optional |
| `capture_email_subject` | The email subject, with `{{requester}}`. Unset, it says what the request is: `Verify your ID for {company}`, or `Photos of the damage for {company}` |
| `capture_email_body` | The email intro, plain text without links |

Every email carries a "Stop these emails" link. Using it cancels the request and blocks that contact for your account.

## 3. What the person sees

The link opens our capture page on your console domain, with your [branding](https://provenanceauth.com/docs/mandate/guides/approver-network.md): your name, logo, colours and help link. The steps, the camera controls, the security line and "Powered by Provenance" are the same on every page.

1. Your name, what you need ("Quillstack needs a selfie and a photo of your ID"), the step list, and **Start**.
2. For each step, the count ("1 of 2"), a live viewfinder with its guide and one line over it from the item (its `instructions`, or "Fit the front of your ID in the frame"), the shutter, and "Signed in this browser" under it. When your account has an app link for captures, the page adds "Open in the Quillstack app to sign with this phone's hardware" (your app's name), which opens your app; it never blocks the web capture. Then **Use photo** or **Retake**. A video step has **Record**, a timer that stops at the limit, then **Use video** or **Retake**.
3. **Done** and what was sent ("2 photos sent").

"Powered by Provenance" sits at the foot of every screen, and the theme switch is in the menu at the top.

On a computer, the page shows a QR code first so the person can switch to their phone, with "Use this computer's camera" below it when the browser is on.

### Where the link opens

A browser capture can't prove which device took the photo, so a link opens an app first and the browser last. The texted link is always the same web address; what it opens depends on the request's routing and the person's phone.

| Destination | What the person gets | Proof |
| --- | --- | --- |
| `app_clip` | iPhone: the Provenance App Clip, nothing to install | `software` until App Attest inside a clip is verified on a device, then `hardware` |
| `provenance_app` | The Provenance app, opened at the capture, with your branding and no sign-in | `hardware` on Android; on iPhone as above |
| `store_listing` | A store listing, then the installed app opens at the capture | The installed app's |
| `web` | This capture page in the browser | `software` |
| `company_app` | Your own app with our capture component (step 6) | Your device's enrolled tier |

The default order is the App Clip, the Provenance app, a store listing, then the browser. A destination that isn't ready is skipped, so a deployment where none of ours is released yet opens every link in the browser.

When an install is offered, the browser is one quiet line under the button ("Can't install? Continue in browser"). When the browser is the only step, the page is the page above. On a computer, the QR code comes first.

|  | Free and Pro | Growth and Enterprise |
| --- | --- | --- |
| Order | The default order | Your own order |
| Destinations on or off | All four on | Each one, the browser included |
| Your own app (`company_app`) | No | Yes |
| Store listing | Provenance's | Provenance's or yours, per platform |
| Require hardware proof (`require_tier`) | Yes. It removes the browser | Yes |
| A request's own `routing` | No: `402 plan_required` | Yes |

Read the setting and each destination's availability with [`GET /v1/attest/settings/capture_routing`](https://provenanceauth.com/docs/api/account.md#get-v1-attest-settings-capture-routing), and change it with [`PUT /v1/attest/settings/capture_routing`](https://provenanceauth.com/docs/api/account.md#put-v1-attest-settings-capture-routing) or in Settings → Capture links. On Free and Pro a write takes `require_tier` only; `order` or `store_listing` returns `402 plan_required` naming the field, and nothing is saved. On Growth and Enterprise, override the setting for one request with `routing`:

**curl**

```bash norun
curl -X POST $PROVENANCE_API/v1/attest/capture_requests \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "case_id": "ONB-48229",
    "session_type": "id",
    "contact": { "phone": "+14155550132" },
    "require_tier": "hardware",
    "routing": { "order": ["app_clip", "provenance_app", "store_listing"] }
  }'
```

**Node**

```ts
await prov.attest.captureRequests.create({
  caseId: "ONB-48229",
  sessionType: "id",
  contact: { phone: "+14155550132" },
  requireTier: "hardware",
  routing: { order: ["app_clip", "provenance_app", "store_listing"] },
});
```

**Python**

```python
prov.attest.capture_requests.create(
    case_id="ONB-48229",
    session_type="id",
    contact={"phone": "+14155550132"},
    require_tier="hardware",
    routing={"order": ["app_clip", "provenance_app", "store_listing"]},
)
```

The routing is stored on the request when it is created, as `routing`. Its `source` says where the order came from: this request, your account setting or the default. A later settings or plan change doesn't move a link that is already out.

**The browser off.** Leaving `web` out of the order (Growth and Enterprise) or sending `require_tier: "hardware"` (any plan) turns the browser off for that request. The page then hands the person to an app and takes no capture; the browser capture routes, and the web embed for that request, return `409` `capture_browser_not_allowed`.

At least one destination in the order must be ready, or the create returns `400` with each destination's availability. When the phone runs the app but can't give hardware proof, the capture still goes through and the result says the requirement was unmet, with a reason.

**In the Provenance app.** When the link opens the Provenance app, the capture runs there with your branding, the [release sheet](https://provenanceauth.com/docs/attest/guides/capture-release.md) over the first step, and your `redirect_url` at the end. Nobody signs in.

The app enrolls the phone for that one request: it attests a new key over a challenge ([`POST /v1/attest/capture_enrollments/challenge`](https://provenanceauth.com/docs/api/capture-requests.md#post-v1-attest-capture-enrollments-challenge), then [`POST /v1/attest/capture_enrollments`](https://provenanceauth.com/docs/api/capture-requests.md#post-v1-attest-capture-enrollments), the link token in the body), and every capture it sends is signed by that key. The server assigns the tier from the attestation and checks that the attested app is the Provenance app.

The enrollment names one capture and never the phone: the item stores no device id, a new enrollment replaces the old one, and the key and its attestation are deleted when the request completes, is declined, is cancelled or expires.

| What the phone gives | `tier` | `requirement` under hardware proof | `requirement_reason` |
| --- | --- | --- | --- |
| A key in the Secure Enclave, StrongBox or the TEE, verified | `hardware` | `met` | `null` |
| No hardware key store, or an attestation that doesn't verify | `software` | `unmet` | `device_not_hardware_backed` |
| An attestation this deployment doesn't verify yet (App Attest on iPhone today) | `software` | `unmet` | `attestation_unverified` |

The capture goes ahead in every case, and the person sees nothing about proof. Each item and the `result` say `destination: "provenance_app"`.

**Nobody could start.** If the link opens on a phone where nothing in the order is ready and the browser is off, the page says the request needs the app and that it isn't available for this phone yet. The request records `routing.blocked` with the platform, and `attest.capture_request.routing_blocked` fires once per platform. It stays pending until it expires; cancel it and send one with a different routing.

The link opens in one browser at a time: a second device sees "This link is already open on another device" until 30 minutes pass without activity. If the camera is blocked, the page shows how to allow it and suggests asking you for another way.

When the link expires while the request is open, the person can ask for a new one (3 per request, one a minute) on the same channel.

### Inside your own product

To run the same steps in your app instead of on the capture page, mint an embed token with `widget: "capture"` and the request's ID as `object_id`, and render [`<provenance-capture capture-request="capr_…">`](https://provenanceauth.com/docs/embeds.md). It shows the same steps, guides and shutter nonces, asks for the location the same way, has no upload path, and records `software` tier on your carrier. While a browser has the link open, the component waits (`409` `capture_link_in_use`), so one surface captures at a time.

## 4. Get the captures back

Each side the person takes becomes an attestation on your `case_id`, under your Attest carrier, so it shows in the console's Attest pages and in [`GET /v1/attest/claims/{id}/provenance`](https://provenanceauth.com/docs/api/claims.md#get-v1-attest-claims-id-provenance). Subscribe to these [webhooks](https://provenanceauth.com/docs/integrate/webhooks.md):

| Event | When |
| --- | --- |
| `attest.capture_request.item_captured` | An item is complete (an ID after its last side). `data.item_index` names it |
| `attest.capture_request.completed` | Every item is in (a guided session: the person sent it), with the `result` summary |
| `attest.capture_request.expired` | The request closed before every item was in |
| `attest.capture_request.cancelled` | You cancelled it, or the person used the stop link (`data.cancelled_by`) |
| `attest.capture_request.link_resent` | The person asked for a new link |
| `attest.capture_request.routing_blocked` | The link opened on a phone where nothing in its routing was ready and the browser was off |
| `attest.capture_request.reviewed` | Someone on your team accepted or rejected a capture that was Review (`data.review`) |

Payloads carry the capture request object with each shot's checks, never the photos or the contact. Once completed, the object's `result` gives what the checks found (`checks`) and [`GET /v1/attest/capture_requests/{id}/result`](https://provenanceauth.com/docs/api/capture-requests.md#get-v1-attest-capture-requests-id-result) the signed result. Read the request with [`GET /v1/attest/capture_requests/{id}`](https://provenanceauth.com/docs/api/capture-requests.md#get-v1-attest-capture-requests-id), and download each side's bytes with [`GET /v1/attest/capture_requests/{id}/items/{index}/media`](https://provenanceauth.com/docs/api/capture-requests.md#get-v1-attest-capture-requests-id-items-index-media) (`?side=1` for the back of an ID). The SHA-256 of those bytes is the attestation's `sensor_hash`.

Each image in the signed result carries `chain`, how its capture key was proven, from what our server verified when the key was enrolled:

| Field | Values |
| --- | --- |
| `method` | `android_key_attestation`, `app_attest`, `capture_page` (a browser capture, bound to a one-time nonce from our page) or `none` |
| `root`, `root_verified` | The attestation root the chain ends at, and whether it was checked in full against the pinned root and our challenge |
| `key`, `key_bound` | The key's security level, and whether the signing certificate is the attested key's |
| `challenge` | `matched`, `page_nonce` or `not_checked` |

Each image in the signed result also carries what was recorded with it, raw and coarse:

| Field | Values |
| --- | --- |
| `context.gps` | `present`, `source` (`device_signed` or `browser_reported`), `accuracy_m` and `mock`. Never the coordinates |
| `context.network` | The network's `country`, `region`, `vpn_or_proxy` and `hosting_provider`. Never the city or the IP address |
| `context.device` | `os`, `os_version`, `os_attested` and `time_zone` |
| `context.clock_offset_s`, `context.exif` | The device clock against ours, and the photo metadata check |
| `context.unavailable` | Each missing signal with its reason, for example `gps: "permission_denied"` |
| `outcome`, `outcome_reason`, `policy` | The shot's outcome and the capture rule that decided it. A comparison with a reference address appears only as an `actual` value here |

The result's own `outcome` is its worst shot's. An image recorded before these signals existed has none of these fields, so its result reads as it always did. The signature covers them all.

To show the same check to your staff, see [capture result in your admin](https://provenanceauth.com/docs/embeds/capture-result.md#view-proof). The proof sheet there leaves out each image's context, outcome and rule.

**curl**

```bash norun
curl $PROVENANCE_API/v1/attest/capture_requests/capr_01M5W16JW5SGV0JZMPWSYPB55V \
  -H "Authorization: Bearer $PROVENANCE_KEY"
curl "$PROVENANCE_API/v1/attest/capture_requests/capr_01M5W16JW5SGV0JZMPWSYPB55V/items/1/media?side=0" \
  -H "Authorization: Bearer $PROVENANCE_KEY" -o id-front.jpg
```

**Node**

```ts
const done = await prov.attest.captureRequests.get("capr_01M5W16JW5SGV0JZMPWSYPB55V");
console.log(done.status, done.items.map((i) => [i.type, i.tier, i.attestationIds]));
```

**Python**

```python
done = prov.attest.capture_requests.get("capr_01M5W16JW5SGV0JZMPWSYPB55V")
print(done["status"], [(i["type"], i["tier"], i["attestation_ids"]) for i in done["items"]])
```

To stop a request early, call [`POST /v1/attest/capture_requests/{id}/cancel`](https://provenanceauth.com/docs/api/capture-requests.md#post-v1-attest-capture-requests-id-cancel); the page says it was cancelled.

### Review a capture, or ask again

When a [capture rule](https://provenanceauth.com/docs/attest/guides/capture-rules.md) sends a shot to Review, someone on your team decides it. In the console, open the capture under Attest › Captures (the Needs review tab): the photo is blurred until Reveal photo, and the drawer shows the checks, the capture facts and the proof. **Accept capture** and **Reject capture** appear only while the capture is Review; **Ask again** sends the person a new link for the same photos.

From your server, call [`POST /v1/attest/capture_requests/{id}/review`](https://provenanceauth.com/docs/api/capture-requests.md#post-v1-attest-capture-requests-id-review) with `decision: "accept"` or `"reject"` and an optional `note`. It works once, only on a completed request whose assessment is Review; anything else is `409` `capture_review_not_open`. The decision is stored as `review` on the request and its assessment, beside the rules' own `outcome`, which never changes, and `attest.capture_request.reviewed` tells your webhook.

[`POST /v1/attest/capture_requests/{id}/ask_again`](https://provenanceauth.com/docs/api/capture-requests.md#post-v1-attest-capture-requests-id-ask-again) creates a new request for the same items to the same person, through the same checks and first send as any new request. The new one carries `replaces`, the old one `replaced_by`. An open request is cancelled first, so the person holds one live link.

**curl**

```bash norun
curl -X POST $PROVENANCE_API/v1/attest/capture_requests/capr_01M5W16JW5SGV0JZMPWSYPB55V/review \
  -H "Authorization: Bearer $PROVENANCE_KEY" -H "Content-Type: application/json" \
  -d '{ "decision": "accept", "note": "Glare over the number; the rest reads clearly." }'
curl -X POST $PROVENANCE_API/v1/attest/capture_requests/capr_01M5W16JW5SGV0JZMPWSYPB55V/ask_again \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

### The page's theme

The capture page and your approval pages open dark unless you choose light in Settings › Branding, and people can switch it unless you turn that off. Your logo and colours show in both themes; emails keep their own look. The page reads it as `theme` (`page_theme`, `theme_switch`) and [`PUT /v1/account/branding`](https://provenanceauth.com/docs/api/account.md#put-v1-account-branding) sets it.

## 5. Read the tier and the capture facts

A capture on the page is a browser capture, so every item reports `capture_source: "browser"` and the `software` tier, and its attestation scores `no_manifest` (60, `partial`), as with the [capture embed](https://provenanceauth.com/docs/embeds.md). For a hardware-backed tier, send the person to an app ([where the link opens](#where-the-link-opens), or your own app in step 6).

Each item, the `result` and the webhooks say where the capture happened:

| Field | Meaning |
| --- | --- |
| `destination` | `web`, `company_app`, `provenance_app` or `app_clip`, decided by our server from the route used and the attested app, never from what the client says. The `result` says `mixed` when items differ |
| `platform` | `ios`, `android`, `desktop` or `other` |
| `entry` | `link`, `qr` or `store_install`. Reported by the client and not verified |
| `requirement` | `not_required`, `met` or `unmet` |
| `requirement_reason` | When `unmet`: `device_not_hardware_backed` (no hardware key store, or the attestation didn't verify) or `attestation_unverified` (this deployment doesn't verify the platform's attestation yet, the iPhone case today) |

The list takes `destination=` as a filter.

What a browser capture records on the attestation (`capture_facts`):

| Fact | Meaning |
| --- | --- |
| `server_received_at` | When our server received the frame |
| `nonce_to_upload_ms` | Time from the shutter nonce to the upload. The page asks for a single-use nonce (valid 120 seconds) right before each shot, so a frame can't be prepared ahead of time |
| `contact_verified` | `phone` or `email` when the link reached the person on that channel; `none` for a link you delivered |
| `facing` | The camera the browser used (`user` or `environment`) |
| `virtual_camera_suspected` | Whether the camera's name matched a known virtual camera. It is reported as a fact and doesn't change the risk score |

The page asks for the browser's location once each time it opens, before the camera starts, and sends it with each shot as `browser_reported` (unsigned). Declining never blocks the capture: the shot says `permission_denied`, and the page doesn't ask again until it is opened again. `<provenance-capture capture-request>` asks the same way.

### Where and on what each shot was taken

Each shot's checks carry a `context`: the network the upload came from, the device's OS, version, model, time zone and language, the GPS with its source and accuracy, the device clock against ours, and whether the photo's own metadata agrees. The same context is on the webhooks and on [`GET /v1/attest/capture_requests/{id}/context`](https://provenanceauth.com/docs/api/capture-requests.md#get-v1-attest-capture-requests-id-context). The person never sees it.

`trust` says how far each signal goes:

| Trust | Meaning |
| --- | --- |
| `attested` | Inside hardware attestation our server verified (Android's OS version, from the key attestation) |
| `signed` | Inside the bundle the device key signed, as the OS reported it to the app (GPS, time zone, language, model, capture time) |
| `observed` | Seen by our server on the connection (the network, the OS family from the user agent) |
| `reported` | Sent by the browser, unsigned (the page's location, time zone, language and clock) |

The network's country and ISO 3166-2 region come from the server's IP lookup when one is set up. A relayed, VPN, proxy, cloud or Tor network gives its flags and no place. The city name is read only when the server's network city switch is on; it is off by default. The IP address is never in the context.

A signal that is missing says why in `unavailable`, for example `gps: "permission_denied"` when the person declined the location prompt, `network_country: "ip_intel_not_configured"` on a server without an IP lookup, or `network_city: "city_not_enabled"`. The [reason codes](https://provenanceauth.com/docs/platform/reason-codes.md) list them all. GPS coordinates and the city name follow your capture retention: when the images are deleted, they are cleared and the rest stays. GPS says where the device reported it was when the photo was taken; the network says where its connection appears to be.

The capture page, `<provenance-capture capture-request>` and the native capture screen tell the person before the camera opens: "Your location, time zone and network are recorded with these photos."

### Compare shots with an address

**Availability:** every plan, Free included (Pro and above until 2026-11-18).

Send up to five `reference_addresses` on create: one of each kind and up to two `other`.

| Field | Meaning |
| --- | --- |
| `kind` | `loss`, `person`, `business`, `shipping` or `other` |
| `label` | Your own name for it (optional) |
| `address` | `line1`, `city`, `region` (an ISO 3166-2 code such as `OH`), `postal_code` and `country` |
| `location` | `lat` and `lng`. Send `address` or `location`, never both |

```json
{
  "case_id": "CLM-20419",
  "session_type": "claim",
  "reference_addresses": [
    { "kind": "loss", "location": { "lat": 40.0712, "lng": -82.8113 } },
    { "kind": "business", "label": "Registered office", "address": { "line1": "4 Quay St", "city": "Saltmarsh", "region": "OH", "postal_code": "43002", "country": "US" } }
  ]
}
```

A claim session with no `loss` reference takes the claim's loss location when one is stored: send `loss_location` on [`POST /v1/attest/attestations`](https://provenanceauth.com/docs/api/claims.md#post-v1-attest-attestations) for the same claim id first.

Each shot is compared with every reference when it lands. The comparisons are rule facts with units, named per reference (`<ref>` is `loss_address`, `business_address` and so on):

| Rule fact | Meaning |
| --- | --- |
| `capture.distance_km.<ref>` | Distance from the shot's GPS fix, in km |
| `capture.min_distance_km.<ref>` | The distance less the fix's accuracy and, for a geocoded address, how far its point may be from the place: the distance the evidence supports at least |
| `capture.timezone_matches.<ref>` | The device's UTC offset is the one in use at the reference at that moment |
| `capture.timezone_country_matches.<ref>` | The device's time zone is in the reference's country |
| `capture.network_country_matches.<ref>` | The network's country is the reference's |
| `capture.network_region_matches.<ref>` | The network's ISO 3166-2 region is the reference's |
| `capture.network_city_matches.<ref>` | The network's city is the reference's (only with the network city switch on) |

The console's request drawer shows them under each shot, and [capture rules](https://provenanceauth.com/docs/attest/guides/capture-rules.md) read them to approve, review or reject each shot. The request object and the webhooks carry the raw facts (`reference_addresses` and each shot's `context`), and a comparison appears there only inside the deciding rule's `policy`.

The request reads each reference back without its text or points: its kind, form, country, region, the one time zone in use there and its `geocode`. A region that spans zones, such as Indiana, has a null `time_zone` unless the address was geocoded. The text and the points are sealed and deleted with the images; the comparisons stay.

Distances need a point on both sides. Coordinates always have one. An address gets one from the geocoder, which places it from the postal code, city, region and country; the street line is never sent. Its `geocode` says how it went:

| `geocode` | Meaning |
| --- | --- |
| `{ "status": "ok", "precision": "postal_code" }` | Placed at the postal code's center (`city` when only the city matched). `capture.min_distance_km.<ref>` subtracts 5 km for a postal code and 15 km for a city |
| `{ "status": "unavailable", "reason": "geocode_not_found" }` | The geocoder found no such place. Check the postal code, city and country |
| `{ "status": "unavailable", "reason": "geocode_failed" }` | The geocoder didn't answer in time. A later request with the same address tries again |
| `{ "status": "unavailable", "reason": "geocoder_not_configured" }` | This server has no geocoder |

Without a point, the address's distances read the same reason. Its country, region and zone comparisons still run. A geocoded address also takes the time zone at its point, so a region that spans zones gets a zone comparison. The same address on a later request in your account reuses the point while an earlier request still keeps it, so it's placed once.

Places come from OpenStreetMap: © OpenStreetMap contributors.

A comparison that can't be made is never guessed. It is absent with a [reason code](https://provenanceauth.com/docs/platform/reason-codes.md), such as `zone_ambiguous` or `permission_denied`.

### Checks on every shot

Every photo is checked on the server as it lands, and the checks are on the item (`checks`, one per shot). They say what the photo appears to be (with a confidence), whether it's usable or a retake would help, one clear face on a selfie when the face detector is set up, and synthetic-media screening when that is set up.

A check that couldn't run says `not_run` with the reason. The [ID session guide](https://provenanceauth.com/docs/attest/guides/id-capture-sessions.md#3-read-the-checks) has the full table and each check's limits.

### Document type

**Availability:** Pro and up, on a server with the document classifier set up.

Each ID shot is also typed: what kind of document is in the frame, how sure the classifier is, the side it looks like and, when the model reads it, the issuing country. The shot's checks carry it as `document`:

```json
{
  "status": "done",
  "type": "driving_license",
  "confidence": "high",
  "side": "front",
  "country": "US",
  "matches_request": true,
  "model": "document-classifier-http-v1"
}
```

| Field | What it says |
| --- | --- |
| `type` | The document type: one of the kinds a request can accept (`passport`, `driving_license`, ...), `other_document` or `not_a_document` |
| `confidence` | `high`, `medium` or `low` |
| `side` | The side it looks like: `front`, `back`, `data_page` or `unknown` |
| `country` | The issuing country (ISO 3166-1 alpha-2) when the model read it, else `null` |
| `matches_request` | `true` when the type is one of the request's `accepted_documents` with `medium` or `high` confidence |

The Captures drawer and the result embed show it as one line, such as "Document · Driver's license (US) · high". A shot the request doesn't accept adds `document_not_accepted` to the session's review reasons.

When a shot isn't an accepted kind, the capture page tells the person once ("This doesn't look like a driver's license or passport. You can retake it.") and lets them retake it or keep it. The page reads only whether it matches, never the type, the country or the confidence.

To act on it, use the capture rule facts `capture.document_type` and `capture.document_accepted`: for example, send `capture.document_accepted` equal to `false` to Review.

What it doesn't do:

- It says what kind of document is in the frame. It doesn't say the document is genuine, unexpired, unaltered or the person's.
- It keeps no personal field: no name, number or date. A machine-readable zone the classifier reads is used only to type the document, then dropped.
- It never guesses. When it can't answer, the check is `not_run` with a [reason code](https://provenanceauth.com/docs/platform/reason-codes.md), `matches_request` is absent, the rule facts are missing (the rule's "If a fact is missing" setting applies), and the page says nothing:

| Reason | When |
| --- | --- |
| `document_classifier_not_configured` | The server has no classifier set up |
| `document_classifier_unavailable` | The classifier failed or took more than 2 seconds |
| `document_classifier_budget` | The account reached today's limit |
| `image_unreadable` | The image couldn't be read |
| `plan_required` | The account is on Free |

### Video on the chunk chain

A video item records in 2-second chunks. Before the first one, the page opens a capture session and gets a server nonce. As each chunk is cut, the page sends `sha256(previous ‖ sha256(chunk))`, starting from that nonce, and our server timestamps the arrival. At the end the page sends the whole file (webm or mp4, whichever the browser records, up to 50 MB).

The server splits the file by the chunk lengths and recomputes the chain. A file that isn't the concatenation of those chunks, or a chain from another seed, scores `frame_hash_mismatch`.

Chunks that arrive bunched, late or out of step with the reported length score `liveness_check_failed`, the timing checks of [video attestation](https://provenanceauth.com/docs/attest/concepts/video-attestation.md). A recording made before the session can't produce hashes that arrived as it was recorded. The item's attestation has `capture_type: "video"` and the manifest of chunk hashes with their arrival times.

## 6. Hand off to your app

**Availability:** Growth and up. Clearing the setting (`link_url: null`) works on every plan.

A browser capture is always the `software` tier. For a hardware-signed capture in your own brand, send the person to your own app, which captures with the [native capture SDK](https://provenanceauth.com/docs/attest/guides/native-sdk.md) on a device enrolled with your Attest key. Set your app with [`PUT /v1/attest/settings/capture_app`](https://provenanceauth.com/docs/api/account.md#put-v1-attest-settings-capture-app): an https universal or app link on your own domain, the app's name, and its store links. On Free and Pro the call returns `402 plan_required`.

An app saved on Pro before this moved to Growth stays on your account and readable, and isn't used: your links follow the default order until you're on Growth, when it applies again with nothing re-entered.

**curl**

```bash norun
curl -X PUT $PROVENANCE_API/v1/attest/settings/capture_app \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "link_url": "https://app.quillstack.example/capture", "name": "Quillstack", "store_urls": { "ios": "https://apps.apple.com/app/id1234567890" } }'
```

**Node**

```ts
await prov.account.setCaptureApp({ linkUrl: "https://app.quillstack.example/capture", name: "Quillstack", storeUrls: { ios: "https://apps.apple.com/app/id1234567890" } });
```

**Python**

```python
prov.account.set_capture_app(link_url="https://app.quillstack.example/capture", name="Quillstack", store_urls={"ios": "https://apps.apple.com/app/id1234567890"})
```

Saving your app changes no order. Place it: switch its row on in Settings → Capture links, or name `company_app` in `order` (your account setting or a request's `routing`). Where it comes first, the capture page shows **Continue in Quillstack**, with "Don't have Quillstack?" under it leading to the next destination. The button opens your link with `?capture_token=…` appended. Leave `web` out of the order, or send `"require_tier": "hardware"`, to take no capture in the browser.

**When your app isn't installed.** A web page can't tell whether an app is installed, so the page never guesses: the quiet line under the button is the way on. If the person taps **Continue** anyway and your app is absent, the phone opens your link in the browser.

That page is yours. Serve a page there that sends the person to your store listing, or back to the same capture link, which then offers the next destination. The `capture_token` in the query is the link's token: the capture link is `{your console origin}/capture/{capture_token}`.

In the app, pass the token to the camera. It asks the server for the item's nonce, signs the capture with it, and submits the bundle and the file:

```tsx
import { ProvenanceCamera, fetchCaptureRequest } from "@provenanceauth/react-native";
import * as FileSystem from "expo-file-system";

const request = await fetchCaptureRequest(captureToken, { baseUrl: process.env.PROVENANCE_API! });

<ProvenanceCamera
  captureRequestToken={captureToken}
  captureItemIndex={0}
  baseUrl={process.env.PROVENANCE_API!}
  readFileBase64={(uri) => FileSystem.readAsStringAsync(uri, { encoding: "base64" })}
  onAttest={(r) => console.log(r.captureRequest?.item.tier)}
/>
```

The tier comes from the server's record of the device, never from the app:

| Source | Tier |
| --- | --- |
| The capture page (`capture_source: browser`) | `software` |
| Android with StrongBox or the TEE, enrolled with its key attestation chain | `strongbox` or `tee` |
| iPhone | `software` until App Attest verification is on for your deployment, then `sep` |

On a `require_tier: "hardware"` request, each item reports `tier_requirement_met`. A capture that comes back `software` still completes, with `tier_requirement_met: false`, so you decide what to do with it. Video from the app is not available yet; a `hardware` request with a `video` item returns `400` `capture_type_unavailable`.

## Limitations

- A capture request proves who received the link, that each photo was taken live in our page, and when. Checking that an ID document is genuine, reading it and matching a face to it stay with your identity provider, on the same image.
- Creating a request is free. A completed request counts as one verified capture, however many items it holds; an expired or cancelled one is free. On Free each text counts toward the trial's texts.
- Images are encrypted and kept for your retention window (30 days by default, 1 to 365 in the console or with [`PUT /v1/attest/settings/capture_retention`](https://provenanceauth.com/docs/api/account.md#put-v1-attest-settings-capture-retention)), then deleted; delete them sooner with [`DELETE /v1/attest/capture_requests/{id}/media`](https://provenanceauth.com/docs/api/capture-requests.md#delete-v1-attest-capture-requests-id-media). The attestations and checks stay. When the person withdrew consent, add `reason=consent_withdrawn` ([the capture release](https://provenanceauth.com/docs/attest/guides/capture-release.md#7-when-a-person-withdraws-consent)).
- The console calls the list **Captures**. Name it in your own words ("Claim photos", up to 24 characters) on the list or with [`PUT /v1/attest/settings/capture_list`](https://provenanceauth.com/docs/api/account.md#put-v1-attest-settings-capture-list). The name is used for the page head and the menu only; the API keeps its own names.
- Provenance's own live demos only: a demo's images are deleted when the visitor's demo session ends, at most 30 minutes after it starts, and `images_deleted_at` reads that time (`session_end`). Your account's requests always follow your retention window.

## Errors you might see

| Symptom | Cause | Fix |
| --- | --- | --- |
| `409` [`attest_not_set_up`](https://provenanceauth.com/docs/platform/errors.md#attest_not_set_up) | The key has no account, or the account has no Attest key of its own | Create an Attest key in the console and use it. |
| `400` [`capture_type_unavailable`](https://provenanceauth.com/docs/platform/errors.md#capture_type_unavailable) | A `hardware` request with a `video` item, or video from the app | Use the browser for video, or photos from the app. |
| `409` [`capture_contact_blocked`](https://provenanceauth.com/docs/platform/errors.md#capture_contact_blocked) | The person used the stop link on an earlier request | Reach them another way, or deliver the link yourself. |
| `409` [`capture_browser_not_allowed`](https://provenanceauth.com/docs/platform/errors.md#capture_browser_not_allowed) | The browser is off for the request (hardware proof required, or `web` not in its order) and the browser tried to capture | Continue in an app. |
| `402` [`plan_required`](https://provenanceauth.com/docs/platform/errors.md#plan_required) | `routing` on a create, `order` or `store_listing` in a settings write, or saving your app, below Growth | Leave the field out to use the default order, or move to Growth. |
| `400` [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid) on `require_tier` or `routing.order` | The browser is off and no app destination in the order is ready yet | Read each destination's availability with `GET /v1/attest/settings/capture_routing`, or allow the browser. |
| `503` [`capture_routing_unavailable`](https://provenanceauth.com/docs/platform/errors.md#capture_routing_unavailable) | The routing setting or the plan couldn't be read; nothing was created | Retry. |
| `409` [`capture_enrollment_not_allowed`](https://provenanceauth.com/docs/platform/errors.md#capture_enrollment_not_allowed) | The Provenance app opened a request whose order leaves it and its App Clip out, or the app isn't released here | The app passes the person on to the request's steps. |
| `409` [`capture_enrollment_invalid`](https://provenanceauth.com/docs/platform/errors.md#capture_enrollment_invalid) | The app's enrollment was replaced or ended, its challenge was used, or a bundle wasn't signed by its key | The app enrolls again. |
| `409` [`capture_request_closed`](https://provenanceauth.com/docs/platform/errors.md#capture_request_closed) | The request is completed, expired or cancelled | Create a new request. |
| `409` [`capture_review_not_open`](https://provenanceauth.com/docs/platform/errors.md#capture_review_not_open) | The capture isn't finished, its assessment isn't Review, or it was already decided | Read the assessment; to get new photos, ask again. |
| `409` [`capture_request_replaced`](https://provenanceauth.com/docs/platform/errors.md#capture_request_replaced) | Ask again already made a newer request for this one | Work on the request in `details.replaced_by`. |
| `delivery.reason` `plan_send_limit` | Free doesn't send texts to your customers, or the trial ended | Choose a plan, give the request an email, or send the link yourself with `"delivery": "self"`. |
| `delivery.reason` `sender_not_ready` | Your own number isn't approved yet, so no text went | Give the request an email, or send the link yourself. Texts go once the carriers approve your number. |
| `delivery.reason` `no_text_consent` | The phone has no consent to text on record, so no text went | Record your statement for it, or let the person agree in the step ([consent to text](https://provenanceauth.com/docs/messaging/text-consent.md)). The email goes when the request has one. |
| `delivery.reason` `opted_out` | The number replied STOP to our texts; the email was tried next when the request had one | Reach the person by email, or send the link yourself. |

## See also

- [Capture rules](https://provenanceauth.com/docs/attest/guides/capture-rules.md), to approve, review or reject each shot
- [Reminders](https://provenanceauth.com/docs/messaging/reminders.md), to send a pending request to the person again
- [Sign ID photos in your own camera screen](https://provenanceauth.com/docs/attest/guides/id-capture-sessions.md#sign-the-photos-in-your-own-camera-screen), for the hardware tier in your own app
- [Webhooks](https://provenanceauth.com/docs/integrate/webhooks.md)
- [Risk scoring](https://provenanceauth.com/docs/attest/concepts/risk-scoring.md)
- [Video attestation](https://provenanceauth.com/docs/attest/concepts/video-attestation.md)
- [Approver network](https://provenanceauth.com/docs/mandate/guides/approver-network.md), where the branding is set
