View as Markdown

Attest · Guide

Request photos by link

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, 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 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 (an ID card or passport, then a selfie with a head-turn check) and a claim session (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 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 with the case, the items in order, and who gets the link.

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" }
  }'
{
  "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. 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):

TypeCameraGuide on the viewfinder
photoBackNone
selfieFrontAn oval
id_documentBackAn ID-card rectangle, one capture per side. sides is ["front"] or ["front", "back"] (the default)
videoBackNone. 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.

{ "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 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).

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:

FieldValuesLeft out
deliverysend: we send the request. self: link only, nothing is sent and the response carries capture_urlWith a contact, your account's default (send out of the box). With no contact, link only
channelsAny of app_notification, email and text, in any order: which of our messages may goYour 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.
channelsTheir contact is in the appIt isn't
All three (the default)App notification and emailText and email
app_notification, emailApp notification and emailEmail
app_notification, textApp notificationText
email, textText and email (not checked)Text and email
app_notificationApp notificationNothing
emailEmailEmail
textTextText

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 (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:

FieldValues
follow_up_text.enabledtrue or false
follow_up_text.whennot_opened (the default) or not_finished
follow_up_text.after_minutes1 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.

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.

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 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:

deliveryMeaning
{ "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); the email still goes when the request has one
reason: "no_text_consent"On a text: the phone has no consent to text 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:

FieldWhat it sets
capture_sms_templateThe text. It must include {{requester}} and {{link}}; {{what}} and {{expires}} are optional
capture_email_subjectThe 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_bodyThe 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: 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.

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.

DestinationWhat the person getsProof
app_clipiPhone: the Provenance App Clip, nothing to installsoftware until App Attest inside a clip is verified on a device, then hardware
provenance_appThe Provenance app, opened at the capture, with your branding and no sign-inhardware on Android; on iPhone as above
store_listingA store listing, then the installed app opens at the captureThe installed app's
webThis capture page in the browsersoftware
company_appYour 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 ProGrowth and Enterprise
OrderThe default orderYour own order
Destinations on or offAll four onEach one, the browser included
Your own app (company_app)NoYes
Store listingProvenance'sProvenance's or yours, per platform
Require hardware proof (require_tier)Yes. It removes the browserYes
A request's own routingNo: 402 plan_requiredYes

Read the setting and each destination's availability with GET /v1/attest/settings/capture_routing, and change it with 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 -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"] }
  }'

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 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, then 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 givestierrequirement under hardware proofrequirement_reason
A key in the Secure Enclave, StrongBox or the TEE, verifiedhardwaremetnull
No hardware key store, or an attestation that doesn't verifysoftwareunmetdevice_not_hardware_backed
An attestation this deployment doesn't verify yet (App Attest on iPhone today)softwareunmetattestation_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_…">. 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. Subscribe to these webhooks:

EventWhen
attest.capture_request.item_capturedAn item is complete (an ID after its last side). data.item_index names it
attest.capture_request.completedEvery item is in (a guided session: the person sent it), with the result summary
attest.capture_request.expiredThe request closed before every item was in
attest.capture_request.cancelledYou cancelled it, or the person used the stop link (data.cancelled_by)
attest.capture_request.link_resentThe person asked for a new link
attest.capture_request.routing_blockedThe link opened on a phone where nothing in its routing was ready and the browser was off
attest.capture_request.reviewedSomeone 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 the signed result. Read the request with GET /v1/attest/capture_requests/{id}, and download each side's bytes with 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:

FieldValues
methodandroid_key_attestation, app_attest, capture_page (a browser capture, bound to a one-time nonce from our page) or none
root, root_verifiedThe attestation root the chain ends at, and whether it was checked in full against the pinned root and our challenge
key, key_boundThe key's security level, and whether the signing certificate is the attested key's
challengematched, page_nonce or not_checked

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

FieldValues
context.gpspresent, source (device_signed or browser_reported), accuracy_m and mock. Never the coordinates
context.networkThe network's country, region, vpn_or_proxy and hosting_provider. Never the city or the IP address
context.deviceos, os_version, os_attested and time_zone
context.clock_offset_s, context.exifThe device clock against ours, and the photo metadata check
context.unavailableEach missing signal with its reason, for example gps: "permission_denied"
outcome, outcome_reason, policyThe 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. The proof sheet there leaves out each image's context, outcome and rule.

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

To stop a request early, call POST /v1/attest/capture_requests/{id}/cancel; the page says it was cancelled.

Review a capture, or ask again

When a capture rule 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 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 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 -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 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. For a hardware-backed tier, send the person to an app (where the link opens, or your own app in step 6).

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

FieldMeaning
destinationweb, 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
platformios, android, desktop or other
entrylink, qr or store_install. Reported by the client and not verified
requirementnot_required, met or unmet
requirement_reasonWhen 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):

FactMeaning
server_received_atWhen our server received the frame
nonce_to_upload_msTime 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_verifiedphone or email when the link reached the person on that channel; none for a link you delivered
facingThe camera the browser used (user or environment)
virtual_camera_suspectedWhether 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. The person never sees it.

trust says how far each signal goes:

TrustMeaning
attestedInside hardware attestation our server verified (Android's OS version, from the key attestation)
signedInside the bundle the device key signed, as the OS reported it to the app (GPS, time zone, language, model, capture time)
observedSeen by our server on the connection (the network, the OS family from the user agent)
reportedSent 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 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.

FieldMeaning
kindloss, person, business, shipping or other
labelYour own name for it (optional)
addressline1, city, region (an ISO 3166-2 code such as OH), postal_code and country
locationlat and lng. Send address or location, never both
{
  "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 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 factMeaning
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 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:

geocodeMeaning
{ "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, 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 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:

{
  "status": "done",
  "type": "driving_license",
  "confidence": "high",
  "side": "front",
  "country": "US",
  "matches_request": true,
  "model": "document-classifier-http-v1"
}
FieldWhat it says
typeThe document type: one of the kinds a request can accept (passport, driving_license, ...), other_document or not_a_document
confidencehigh, medium or low
sideThe side it looks like: front, back, data_page or unknown
countryThe issuing country (ISO 3166-1 alpha-2) when the model read it, else null
matches_requesttrue 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, matches_request is absent, the rule facts are missing (the rule's "If a fact is missing" setting applies), and the page says nothing:
ReasonWhen
document_classifier_not_configuredThe server has no classifier set up
document_classifier_unavailableThe classifier failed or took more than 2 seconds
document_classifier_budgetThe account reached today's limit
image_unreadableThe image couldn't be read
plan_requiredThe 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. 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 on a device enrolled with your Attest key. Set your app with 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 -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" } }'

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:

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:

SourceTier
The capture page (capture_source: browser)software
Android with StrongBox or the TEE, enrolled with its key attestation chainstrongbox or tee
iPhonesoftware 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), then deleted; delete them sooner with DELETE /v1/attest/capture_requests/{id}/media. The attestations and checks stay. When the person withdrew consent, add reason=consent_withdrawn (the capture release).
  • 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. 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

SymptomCauseFix
409 attest_not_set_upThe key has no account, or the account has no Attest key of its ownCreate an Attest key in the console and use it.
400 capture_type_unavailableA hardware request with a video item, or video from the appUse the browser for video, or photos from the app.
409 capture_contact_blockedThe person used the stop link on an earlier requestReach them another way, or deliver the link yourself.
409 capture_browser_not_allowedThe browser is off for the request (hardware proof required, or web not in its order) and the browser tried to captureContinue in an app.
402 plan_requiredrouting on a create, order or store_listing in a settings write, or saving your app, below GrowthLeave the field out to use the default order, or move to Growth.
400 parameter_invalid on require_tier or routing.orderThe browser is off and no app destination in the order is ready yetRead each destination's availability with GET /v1/attest/settings/capture_routing, or allow the browser.
503 capture_routing_unavailableThe routing setting or the plan couldn't be read; nothing was createdRetry.
409 capture_enrollment_not_allowedThe Provenance app opened a request whose order leaves it and its App Clip out, or the app isn't released hereThe app passes the person on to the request's steps.
409 capture_enrollment_invalidThe app's enrollment was replaced or ended, its challenge was used, or a bundle wasn't signed by its keyThe app enrolls again.
409 capture_request_closedThe request is completed, expired or cancelledCreate a new request.
409 capture_review_not_openThe capture isn't finished, its assessment isn't Review, or it was already decidedRead the assessment; to get new photos, ask again.
409 capture_request_replacedAsk again already made a newer request for this oneWork on the request in details.replaced_by.
delivery.reason plan_send_limitFree doesn't send texts to your customers, or the trial endedChoose a plan, give the request an email, or send the link yourself with "delivery": "self".
delivery.reason sender_not_readyYour own number isn't approved yet, so no text wentGive the request an email, or send the link yourself. Texts go once the carriers approve your number.
delivery.reason no_text_consentThe phone has no consent to text on record, so no text wentRecord your statement for it, or let the person agree in the step (consent to text). The email goes when the request has one.
delivery.reason opted_outThe number replied STOP to our texts; the email was tried next when the request had oneReach the person by email, or send the link yourself.

See also