# Verifications

A merchant's paid check of an intent token, with how the person approved.

Related guide: [Verify agent checkouts](https://provenanceauth.com/docs/authorize/guides/verify-agent-checkout.md)

## Endpoints

- `GET /v1/authorize/verifications/{id}`: [Retrieve a verification](#get-v1-authorize-verifications-id)
- `GET /v1/authorize/verifications/{id}/receipt`: [Get a verification receipt](#get-v1-authorize-verifications-id-receipt)
- `GET /v1/authorize/verifications`: [List verifications](#get-v1-authorize-verifications)
- `POST /v1/authorize/verifications`: [Verify an intent token (paid)](#post-v1-authorize-verifications)

## The merchant verification object

### Attributes

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | enum | yes | Always `verification`. One of `verification`. |
| `id` | string \| null | yes | The check's ID in your decision ledger. |
| `valid` | boolean | yes | Every check passed and your checkout rules allow it. |
| `reason` | string \| null | yes | Why `valid` is false (the verify reasons, including the approval holds `approval_pending`, `approval_denied`, `approval_expired`, `approval_changes_requested` and `option_not_chosen`). Null when valid. |
| `claims` | object | yes | The token's free claims. |
| `approval` | object \| null | yes | How the person approved. |
| `approval.id` | string \| null | no | The approval behind the token, when a person approved this action. |
| `approval.method` | string \| null | no | `device_biometric`, `passkey` or null. |
| `approval.approved_at` | timestamp \| null | no | When the person approved, including after the token was minted. Null while the approval is open. |
| `approval.biometric_bound` | boolean | no | A verified biometric was bound. |
| `approval.biometric_type` | string \| null | no | The biometric's kind, when one was bound. |
| `approval.hardware_attested` | boolean | no | The device's key is hardware-attested. |
| `approval.device_trust_tier` | string \| null | no | The approving device's server-assigned tier. |
| `approval_context` | object \| any \| null | yes | How the person decided the approval (or signed the grant) behind a valid token. Another account's context never shows its IP. Null when no person's approval stands behind it (a biometric bound when the token was minted shows in `approval`). |
| `approval_context.object` | enum | no | The type of object. One of `approval_context`. |
| `approval_context.id` | string | no | Unique identifier for the object (`apc_…`). |
| `approval_context.subject` | object | no | What the person decided. |
| `approval_context.subject.type` | enum | yes | The decided object's type: a cart approval, a step-up approval, a grant, an intent token the person approved with the device's passkey when it was minted, a delegation proposal or a captured item. One of `checkout_approval`, `mandate_approval`, `mandate_grant`, `intent_token`, `delegation_proposal`, `capture_item`. |
| `approval_context.subject.id` | string | yes | Its id (an intent token is its `jti`; a captured item is `capr_…:<index>`). |
| `approval_context.decision` | enum | no | The person's own answer; `captured` for a capture. One of `approved`, `declined`, `captured`. |
| `approval_context.decided_at` | timestamp | no | When the person decided. |
| `approval_context.method` | object | no | How the person decided. |
| `approval_context.method.kind` | enum | yes | A passkey, the Provenance app's device key, the keypad on a confirmation call, a confirmation given outside Provenance, a signed-in console member, or a browser page with no passkey (a decline, a capture page). One of `passkey`, `device_key`, `voice_keypad`, `external`, `console_session`, `browser_session`. |
| `approval_context.method.authenticator` | enum | yes | With a passkey: where it lives, as the browser reported when it was created; null otherwise or when unknown. One of `platform_passkey`, `cross_device_passkey`, `security_key`. |
| `approval_context.method.user_verified` | boolean | yes | True when the assertion's user-verification flag was set (face, fingerprint or the screen lock). |
| `approval_context.method.step_up` | object \| null | yes | What confirmed the customer contact for a new passkey under `step_up_contact`, when it applied. |
| `approval_context.method.step_up.method` | enum | no | `contact_code`: a 6-digit code sent to the customer contact matched. `link_contact`: the person opened the link from the email or text sent to that same contact, so no code was sent. One of `contact_code`, `link_contact`. |
| `approval_context.method.step_up.channel` | enum | no | Where the code went, or which message carried the link. One of `sms`, `email`. |
| `approval_context.method.step_up.verified_at` | timestamp | no | When the code matched, or when the passkey approved through that link. |
| `approval_context.passkey` | object \| null | no | The passkey that decided; null for any other method. |
| `approval_context.passkey.status` | enum | no | `new` when it was younger than the store's minimum age or set up during the approval. One of `new`, `existing`. |
| `approval_context.passkey.age` | object | no | Its age at the decision: whole days, and the minutes past them. |
| `approval_context.passkey.age.days` | integer | no | Whole days. |
| `approval_context.passkey.age.minutes` | integer | no | Minutes past the whole days. |
| `approval_context.passkey.created_during_approval` | boolean | no | Set up on this approval's page. |
| `approval_context.passkey.synced` | boolean \| null | no | A synced (backed-up) passkey; null when the authenticator didn't say. |
| `approval_context.passkey.provider` | string \| null | no | The provider its AAGUID names (the authenticator's own claim); null when unknown. |
| `approval_context.passkey.provider_attested` | enum | no | Always false: the provider is the authenticator's own claim. One of `false`. |
| `approval_context.device` | object \| null | no | The device the person decided on, as it reported itself (or, with the app's device key, as it enrolled). |
| `approval_context.device.os` | string \| null | no | `ios`, `ipados`, `android`, `macos`, `windows`, `linux` or `other`. |
| `approval_context.device.os_version` | string \| null | no | The OS version, for phones (desktop browsers freeze theirs). |
| `approval_context.device.browser` | string \| null | no | `safari`, `chrome`, `edge`, `firefox`, `samsung` or `other`; null in an app. |
| `approval_context.device.source` | enum | no | Where the device facts came from. One of `user_agent`, `app_attestation`. |
| `approval_context.device.verified` | boolean | no | True only when the server verified the device's attestation. |
| `approval_context.device.time_zone` | object \| null | no | The device's time zone, as reported (never verified). |
| `approval_context.device.time_zone.name` | string | no | IANA name (`America/Los_Angeles`). |
| `approval_context.device.time_zone.utc_offset_minutes` | integer | no | Its offset at the decision. |
| `approval_context.device.time_zone.source` | enum | no | Who reported it. One of `browser`, `app`. |
| `approval_context.device.time_zone.verified` | enum | no | Always false. One of `false`. |
| `approval_context.device.locale` | string \| null | no | The language tag (`en-US`). |
| `approval_context.network` | object \| null | no | The connection the decision came from: a provider's estimate of its place, and its flags. |
| `approval_context.network.country` | string \| null | no | ISO 3166-1 alpha-2. |
| `approval_context.network.region` | string \| null | no | ISO 3166-2 (`US-OR`). |
| `approval_context.network.city` | string \| null | no | The city, only while the network city switch is on. |
| `approval_context.network.city_status` | enum | no | Whether the city switch is on. One of `enabled`, `not_enabled`. |
| `approval_context.network.flags` | object | no | What the published lists and the IP lookup say about the network. |
| `approval_context.network.flags.vpn` | boolean | no | A VPN service. |
| `approval_context.network.flags.proxy` | boolean | no | A proxy. |
| `approval_context.network.flags.hosting_provider` | boolean | no | A cloud or hosting provider's range. |
| `approval_context.network.flags.tor` | boolean | no | A Tor exit. |
| `approval_context.network.flags.private_relay` | boolean | no | iCloud Private Relay (a privacy feature, never counted as a VPN). |
| `approval_context.network.asn` | integer \| null | no | The network's AS number, from the IP lookup provider; null without one. |
| `approval_context.network.source` | enum | no | Where the place and flags came from. One of `published_lists`, `ip_intel`. |
| `approval_context.network.ip` | string \| null | no | The address, only while your IP sharing switch is on and the sealed copy is kept; null otherwise. |
| `approval_context.location_match` | enum | no | A cart approval's only: whether where the person approved from matches the billing address the store sent. The same value the `approval.location` rule fact reads: `matches_billing` needs the network region (or city) to agree with nothing contradicting it, a time-zone match alone is never a match; `differs` when a known comparison differs; `unavailable` with its reason in `unavailable.location_match` (no IP lookup, no time zone); `no_billing` when the store sent no address. The distance and the per-field comparisons stay rule facts and are never returned. Absent on other approvals. One of `matches_billing`, `differs`, `unavailable`, `no_billing`. |
| `approval_context.location_match_basis` | array of enums | no | With `location_match`: the inputs that agreed (`matches_billing`) or disagreed (`differs`); empty otherwise. `time_zone_network`: the device's time zone is in another country than the network. |
| `approval_context.browser_details` | object | no | The 3-D Secure browser fields the approval page or embed reported, with the request's User-Agent and Accept headers; null for a decision outside a browser page (the app, a keypad, a console member) or recorded before they were collected. |
| `approval_context.browser_details.screen_width` | integer \| null | yes | The screen's width in CSS pixels (`screen.width`). |
| `approval_context.browser_details.screen_height` | integer \| null | yes | The screen's height in CSS pixels (`screen.height`). |
| `approval_context.browser_details.color_depth` | enum | yes | Bits per pixel (`screen.colorDepth`). One of `1`, `4`, `8`, `15`, `16`, `24`, `30`, `32`, `48`. |
| `approval_context.browser_details.language` | string \| null | yes | The browser's language (`navigator.language`). |
| `approval_context.browser_details.java_enabled` | boolean \| null | yes | Whether Java is enabled (`navigator.javaEnabled()`). |
| `approval_context.browser_details.javascript_enabled` | boolean \| null | yes | Whether JavaScript ran (true when the page sent the block). |
| `approval_context.browser_details.utc_offset_minutes` | integer \| null | yes | Local time minus UTC, in minutes. |
| `approval_context.browser_details.user_agent` | string \| null | yes | The request's `User-Agent` header (at most 2,048 characters). |
| `approval_context.browser_details.accept_header` | string \| null | yes | The request's `Accept` header (at most 2,048 characters). |
| `approval_context.browser_details.source` | enum | yes | Where the fields came from. One of `browser`. |
| `approval_context.browser_details.verified` | enum | yes | Always false: as the browser reported them. One of `false`. |
| `approval_context.billing` | object | no | A cart approval's context only: the full billing address you sent, to your own key and console (never on a webhook); null otherwise. |
| `approval_context.billing.line1` | string \| null | yes | The street line. |
| `approval_context.billing.line2` | string \| null | yes | The second line. |
| `approval_context.billing.city` | string \| null | yes | The city. |
| `approval_context.billing.region` | string \| null | yes | ISO 3166-2 (`US-OR`) where the region table maps it (US, Canada, Australia); else as you sent it. |
| `approval_context.billing.postal_code` | string \| null | yes | The postal code as you sent it. |
| `approval_context.billing.country` | string | yes | ISO 3166-1 alpha-2. |
| `approval_context.billing.source` | enum | yes | Always `merchant`: your store attested it. One of `merchant`. |
| `approval_context.person` | object | no | Who decided, as far as Provenance can say without identifying them. |
| `approval_context.person.pseudonym` | string \| null | no | A per-store pseudonym for the passkey, on cart approvals. |
| `approval_context.person.link` | enum | no | Over a grant's limit: whether the passkey is the grant's own person's. One of `same_person`, `unlinked`, `not_applicable`. |
| `approval_context.external` | object \| null | no | With `method.kind: external`: the confirmation given outside Provenance. |
| `approval_context.external.kind` | enum | no | The kind of outside confirmation. One of `ap2_user_mandate`, `spc`, `platform`. |
| `approval_context.external.issuer` | string \| null | no | Who issued it. |
| `approval_context.external.evidence_hash` | string \| null | no | The hash of the evidence verified. |
| `approval_context.unavailable` | object | no | Each fact that is null and why (`not_collected`, `no_ip`, `ip_intel_not_configured`, `ip_intel_failed`, `network_relayed`, `network_vpn`, `network_hosting`, `network_tor`), keyed by field (`device.time_zone`, `network.country`). |
| `agent` | object \| null | yes | The agent behind the token, as the server recorded it. |
| `agent.id` | string \| null | no | The registered agent's ID. |
| `agent.name` | string \| null | no | The registered agent's name. |
| `agent.integration` | string \| null | no | The integration its client declared. |
| `agent.sdk_version` | string \| null | no | The integration's version. |
| `policy_version` | integer \| null | no | The checkout rules' version, or null for the built-in default. |
| `network_signals` | object | no | What the network knows about a registered, verified agent. Present only then. |

### Example

```json
{
  "object": "verification",
  "id": null,
  "valid": true,
  "reason": null,
  "claims": {
    "iss": "provenance-authorize",
    "jti": "6fc221fd-f4f4-4d4f-bf4d-f13811c26d27",
    "sub": "anon_jmspb4a663zkk44smyukytelel",
    "iat": 1794962297,
    "exp": 1794976697,
    "action_hash": "740a4b41ac1fdc5532ed0c704394573e9303542fa59fe3acb1c73b3dcb63e2d1",
    "payload_hash": "df2a8a3339a1b7adc5ec11027e91af0716faeaeaaa2f8e98276bea02e4dfda46",
    "risk": {
      "score": 30,
      "action": "allow"
    }
  },
  "approval": {
    "id": null,
    "method": null,
    "approved_at": null,
    "biometric_bound": false,
    "biometric_type": null,
    "hardware_attested": false,
    "device_trust_tier": "simulated"
  },
  "approval_context": null,
  "agent": null,
  "policy_version": null
}
```

## Retrieve a verification

`GET /v1/authorize/verifications/{id}`

Returns one of your paid checks from your decision ledger.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The object's ID. |

### Returns

The check.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/mandate/intents" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
    "action_payload": {
      "type": "payment",
      "amount": 1850,
      "currency": "USD",
      "payee": "acct_brindlecote_supplies"
    },
    "agent_session_id": "sess_reference_1",
    "device_id": "dev_00000000000000000000000000000001"
  }' > step.json
export INTENT_TOKEN=$(jq -r '.intent_token' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/verifications" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d "{
    \"intent_token\": \"$INTENT_TOKEN\",
    \"action_payload\": {
      \"type\": \"payment\",
      \"amount\": 1850,
      \"currency\": \"USD\",
      \"payee\": \"acct_brindlecote_supplies\"
    }
  }" > step.json
export VERIFICATION_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/authorize/verifications/$VERIFICATION_ID" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/intents`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
    "action_payload": {
      "type": "payment",
      "amount": 1850,
      "currency": "USD",
      "payee": "acct_brindlecote_supplies"
    },
    "agent_session_id": "sess_reference_1",
    "device_id": "dev_00000000000000000000000000000001"
  }),
})).json();
const intentToken = step1.intent_token;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/verifications`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "intent_token": intentToken,
    "action_payload": {
      "type": "payment",
      "amount": 1850,
      "currency": "USD",
      "payee": "acct_brindlecote_supplies"
    }
  }),
})).json();
const verificationId = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/verifications/${verificationId}`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/intents", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
    "action_payload": {
        "type": "payment",
        "amount": 1850,
        "currency": "USD",
        "payee": "acct_brindlecote_supplies"
    },
    "agent_session_id": "sess_reference_1",
    "device_id": "dev_00000000000000000000000000000001"
}).json()
intent_token = step1["intent_token"]
step2 = httpx.post(f"{api}/v1/authorize/verifications", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "intent_token": intent_token,
    "action_payload": {
        "type": "payment",
        "amount": 1850,
        "currency": "USD",
        "payee": "acct_brindlecote_supplies"
    }
}).json()
verification_id = step2["id"]
data = httpx.get(f"{api}/v1/authorize/verifications/{verification_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```

### Response 200

```json
{
  "object": "verification",
  "id": "mas_01M7P1FE85ZMYCPP9REY1WS27R",
  "valid": true,
  "reason": null,
  "jti": "9adec078-4504-4c82-be33-6e5facadb553",
  "policy_version": null,
  "approval": {
    "biometric_bound": false,
    "hardware_attested": false,
    "device_trust_tier": "simulated"
  },
  "agent_id": null,
  "created_at": "2026-11-18T00:39:00.101Z"
}
```

## Get a verification receipt

`GET /v1/authorize/verifications/{id}/receipt`

Returns a signed receipt for one of your paid checks: an ES256 JWS anyone can verify offline with the published keys, its claims, and a link to the console's Verify a proof page.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The object's ID. |

### Returns

The receipt.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`usage_limit_reached`](https://provenanceauth.com/docs/platform/errors.md#usage_limit_reached)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/mandate/intents" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
    "action_payload": {
      "type": "payment",
      "amount": 1850,
      "currency": "USD",
      "payee": "acct_brindlecote_supplies"
    },
    "agent_session_id": "sess_reference_1",
    "device_id": "dev_00000000000000000000000000000001"
  }' > step.json
export INTENT_TOKEN=$(jq -r '.intent_token' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/verifications" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d "{
    \"intent_token\": \"$INTENT_TOKEN\",
    \"action_payload\": {
      \"type\": \"payment\",
      \"amount\": 1850,
      \"currency\": \"USD\",
      \"payee\": \"acct_brindlecote_supplies\"
    }
  }" > step.json
export VERIFICATION_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/authorize/verifications/$VERIFICATION_ID/receipt" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/intents`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
    "action_payload": {
      "type": "payment",
      "amount": 1850,
      "currency": "USD",
      "payee": "acct_brindlecote_supplies"
    },
    "agent_session_id": "sess_reference_1",
    "device_id": "dev_00000000000000000000000000000001"
  }),
})).json();
const intentToken = step1.intent_token;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/verifications`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "intent_token": intentToken,
    "action_payload": {
      "type": "payment",
      "amount": 1850,
      "currency": "USD",
      "payee": "acct_brindlecote_supplies"
    }
  }),
})).json();
const verificationId = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/verifications/${verificationId}/receipt`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/intents", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
    "action_payload": {
        "type": "payment",
        "amount": 1850,
        "currency": "USD",
        "payee": "acct_brindlecote_supplies"
    },
    "agent_session_id": "sess_reference_1",
    "device_id": "dev_00000000000000000000000000000001"
}).json()
intent_token = step1["intent_token"]
step2 = httpx.post(f"{api}/v1/authorize/verifications", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "intent_token": intent_token,
    "action_payload": {
        "type": "payment",
        "amount": 1850,
        "currency": "USD",
        "payee": "acct_brindlecote_supplies"
    }
}).json()
verification_id = step2["id"]
data = httpx.get(f"{api}/v1/authorize/verifications/{verification_id}/receipt", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```

### Response 200

```json
{
  "object": "receipt",
  "id": "rcpt_7b8dd827b5d344a27cf3643b78b0a588",
  "claims": {
    "receipt_id": "rcpt_7b8dd827b5d344a27cf3643b78b0a588",
    "decision_id": "dec_01M6VQBCG3V5SYKYRQ04T9YG91",
    "kind": "verify",
    "jti": "a827980c-3727-43c1-a801-0bf49243cf69",
    "agent_session_id": "sess_reference_1",
    "agent_id": null,
    "approver_id": null,
    "device_id": "dev_00000000000000000000000000000001",
    "result": "valid",
    "reason": null,
    "matched_rule_id": null,
    "policy_version": null,
    "mandate_id": null,
    "biometric_bound": false,
    "record_hash": "281f168424e270be191629ec01f113d575c48410950eeeb5c892393e07862609",
    "prev_hash": "9b940e048d7ad620a554e64df694438bd39a6eaf78e01c28597a2881afbb9762",
    "decided_at": "2026-11-07T19:21:46.243Z",
    "iss": "http://localhost:3000"
  },
  "token": "eyJhbGciOiJFUzI1NiIsInR5cCI6InByb3ZlbmFuY2UtcmVjZWlwdCtqd3QiLCJraWQiOiJmNzY1YTk5YWQwNTQzZDk5In0.eyJyZWNlaXB0X2lkIjoicmNwdF83YjhkZDgyN2I1ZDM0NGEyN2NmMzY0M2I3OGIwYTU4OCIsImRlY2lzaW9uX2lkIjoiZGVjXzAxTTZWUUJDRzNWNVNZS1lSUTA0VDlZRzkxIiwia2luZCI6InZlcmlmeSIsImp0aSI6ImE4Mjc5ODBjLTM3MjctNDNjMS1hODAxLTBiZjQ5MjQzY2Y2OSIsImFnZW50X3Nlc3Npb25faWQiOiJzZXNzX3JlZmVyZW5jZV8xIiwiYWdlbnRfaWQiOm51bGwsImFwcHJvdmVyX2lkIjpudWxsLCJkZXZpY2VfaWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDEiLCJyZXN1bHQiOiJ2YWxpZCIsInJlYXNvbiI6bnVsbCwibWF0Y2hlZF9ydWxlX2lkIjpudWxsLCJwb2xpY3lfdmVyc2lvbiI6bnVsbCwibWFuZGF0ZV9pZCI6bnVsbCwiYmlvbWV0cmljX2JvdW5kIjpmYWxzZSwicmVjb3JkX2hhc2giOiIyODFmMTY4NDI0ZTI3MGJlMTkxNjI5ZWMwMWYxMTNkNTc1YzQ4NDEwOTUwZWVlYjVjODkyMzkzZTA3ODYyNjA5IiwicHJldl9oYXNoIjoiOWI5NDBlMDQ4ZDdhZDYyMGE1NTRlNjRkZjY5NDQzOGJkMzlhNmVhZjc4ZTAxYzI4NTk3YTI4ODFhZmJiOTc2MiIsImRlY2lkZWRfYXQiOiIyMDI2LTExLTA3VDE5OjIxOjQ2LjI0M1oiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjMwMDAifQ.5jQwuXC2yhjpxabgFiMSbD6PXuRTjNlQMJVPODDKajv9TONM3PIeaLZ0aT_BuvLT5zVO7DuMzebD9OXfxA_Juw",
  "verify_url": "http://localhost:5173/developers/verify?receipt=eyJhbGciOiJFUzI1NiIsInR5cCI6InByb3ZlbmFuY2UtcmVjZWlwdCtqd3QiLCJraWQiOiJmNzY1YTk5YWQwNTQzZDk5In0.eyJyZWNlaXB0X2lkIjoicmNwdF83YjhkZDgyN2I1ZDM0NGEyN2NmMzY0M2I3OGIwYTU4OCIsImRlY2lzaW9uX2lkIjoiZGVjXzAxTTZWUUJDRzNWNVNZS1lSUTA0VDlZRzkxIiwia2luZCI6InZlcmlmeSIsImp0aSI6ImE4Mjc5ODBjLTM3MjctNDNjMS1hODAxLTBiZjQ5MjQzY2Y2OSIsImFnZW50X3Nlc3Npb25faWQiOiJzZXNzX3JlZmVyZW5jZV8xIiwiYWdlbnRfaWQiOm51bGwsImFwcHJvdmVyX2lkIjpudWxsLCJkZXZpY2VfaWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDEiLCJyZXN1bHQiOiJ2YWxpZCIsInJlYXNvbiI6bnVsbCwibWF0Y2hlZF9ydWxlX2lkIjpudWxsLCJwb2xpY3lfdmVyc2lvbiI6bnVsbCwibWFuZGF0ZV9pZCI6bnVsbCwiYmlvbWV0cmljX2JvdW5kIjpmYWxzZSwicmVjb3JkX2hhc2giOiIyODFmMTY4NDI0ZTI3MGJlMTkxNjI5ZWMwMWYxMTNkNTc1YzQ4NDEwOTUwZWVlYjVjODkyMzkzZTA3ODYyNjA5IiwicHJldl9oYXNoIjoiOWI5NDBlMDQ4ZDdhZDYyMGE1NTRlNjRkZjY5NDQzOGJkMzlhNmVhZjc4ZTAxYzI4NTk3YTI4ODFhZmJiOTc2MiIsImRlY2lkZWRfYXQiOiIyMDI2LTExLTA3VDE5OjIxOjQ2LjI0M1oiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjMwMDAifQ.5jQwuXC2yhjpxabgFiMSbD6PXuRTjNlQMJVPODDKajv9TONM3PIeaLZ0aT_BuvLT5zVO7DuMzebD9OXfxA_Juw"
}
```

## List verifications

`GET /v1/authorize/verifications`

Lists your account's paid checks, newest first.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `cursor` | query | string | no | Opaque; pass a response's `next_cursor` back to get the next page. |
| `limit` | query | integer | no | Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid. |

### Returns

A list of checks.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/authorize/verifications" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/verifications`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/authorize/verifications", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```

### Response 200

```json
{
  "object": "list",
  "data": [],
  "has_more": false,
  "next_cursor": null
}
```

## Verify an intent token (paid)

`POST /v1/authorize/verifications`

A merchant's check of an intent token: every check the free verify makes, your checkout rules, and how the person approved (the method, the biometric, the device tier, the agent), read by the token's ID. Without `action_description`, the exact `action_payload` binding stands in for it. See [approval holds](https://provenanceauth.com/docs/authorize/guides/verify-tokens.md#approval-holds).

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | string | no | Retry a create safely: the same key + request returns the stored response (24 h, per caller). |
| `intent_token` | body | string | yes | The token the agent presented. |
| `action_description` | body | string | no | The action the token was minted for, if you know it. |
| `action_payload` | body | any | no | The exact payload (for a checkout, your `checkoutBinding` of the order). Required without `action_description`. |
| `context` | body | object | no | Facts your checkout rules read. |

### Returns

The check. `valid` is false with a `reason` when a check fails. See [the merchant verification object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`usage_limit_reached`](https://provenanceauth.com/docs/platform/errors.md#usage_limit_reached)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl -s -X POST "$PROVENANCE_API/v1/mandate/intents" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
    "action_payload": {
      "type": "payment",
      "amount": 1850,
      "currency": "USD",
      "payee": "acct_brindlecote_supplies"
    },
    "agent_session_id": "sess_reference_1",
    "device_id": "dev_00000000000000000000000000000001"
  }' > step.json
export INTENT_TOKEN=$(jq -r '.intent_token' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/verifications" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d "{
    \"intent_token\": \"$INTENT_TOKEN\",
    \"action_description\": \"Pay invoice INV-2041: \$1,850.00 to Brindlecote Supplies\",
    \"action_payload\": {
      \"type\": \"payment\",
      \"amount\": 1850,
      \"currency\": \"USD\",
      \"payee\": \"acct_brindlecote_supplies\"
    }
  }"
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/intents`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    "action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
    "action_payload": {
      "type": "payment",
      "amount": 1850,
      "currency": "USD",
      "payee": "acct_brindlecote_supplies"
    },
    "agent_session_id": "sess_reference_1",
    "device_id": "dev_00000000000000000000000000000001"
  }),
})).json();
const intentToken = step1.intent_token;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/verifications`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    "intent_token": intentToken,
    "action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
    "action_payload": {
      "type": "payment",
      "amount": 1850,
      "currency": "USD",
      "payee": "acct_brindlecote_supplies"
    }
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/intents", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
    "action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
    "action_payload": {
        "type": "payment",
        "amount": 1850,
        "currency": "USD",
        "payee": "acct_brindlecote_supplies"
    },
    "agent_session_id": "sess_reference_1",
    "device_id": "dev_00000000000000000000000000000001"
}).json()
intent_token = step1["intent_token"]
data = httpx.post(f"{api}/v1/authorize/verifications", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
    "intent_token": intent_token,
    "action_description": "Pay invoice INV-2041: $1,850.00 to Brindlecote Supplies",
    "action_payload": {
        "type": "payment",
        "amount": 1850,
        "currency": "USD",
        "payee": "acct_brindlecote_supplies"
    }
}).json()
```

### Response 200

```json
{
  "object": "verification",
  "id": null,
  "valid": true,
  "reason": null,
  "claims": {
    "iss": "provenance-authorize",
    "jti": "6fc221fd-f4f4-4d4f-bf4d-f13811c26d27",
    "sub": "anon_jmspb4a663zkk44smyukytelel",
    "iat": 1794962297,
    "exp": 1794976697,
    "action_hash": "740a4b41ac1fdc5532ed0c704394573e9303542fa59fe3acb1c73b3dcb63e2d1",
    "payload_hash": "df2a8a3339a1b7adc5ec11027e91af0716faeaeaaa2f8e98276bea02e4dfda46",
    "risk": {
      "score": 30,
      "action": "allow"
    }
  },
  "approval": {
    "id": null,
    "method": null,
    "approved_at": null,
    "biometric_bound": false,
    "biometric_type": null,
    "hardware_attested": false,
    "device_trust_tier": "simulated"
  },
  "approval_context": null,
  "agent": null,
  "policy_version": null
}
```
