# Approver network

People outside your account who approve with their own passkey.

Related guide: [Approver network](https://provenanceauth.com/docs/mandate/guides/approver-network.md)

## Endpoints

- `POST /v1/mandate/approver_links`: [Invite an approver](#post-v1-mandate-approver-links)
- `GET /v1/mandate/approver_links`: [List approver links](#get-v1-mandate-approver-links)
- `DELETE /v1/mandate/approver_links/{id}`: [Revoke an approver link](#delete-v1-mandate-approver-links-id)
- `POST /v1/mandate/approver_links/route`: [Route an approval to someone new](#post-v1-mandate-approver-links-route)
- `POST /v1/mandate/approver_links/{id}/approvals`: [Route an approval to an approver](#post-v1-mandate-approver-links-id-approvals)

## The approver link object

### Attributes

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Unique identifier for the object. |
| `object` | enum | yes | The type of object. One of `approver_link`. |
| `status` | string | no | The object's current status. |
| `approver_display_name` | any \| null | no | The approver's display name, once they accept. |
| `grant` | object | no | What the integrator will ask the approver to approve. |
| `grant.action_types` | array of strings | yes | The action types allowed. |
| `grant.max_amount` | integer | yes | The largest amount allowed per action. |
| `grant.products` | array of strings | no | The products enabled for the account. |
| `invited_at` | string | no | When the invite was sent. |
| `accepted_at` | any \| null | no | When the approver accepted. |
| `revoked_at` | any \| null | no | When it was revoked; null if it isn't. |
| `invite_url` | string | no | The invite page, if you deliver the invite yourself. |
| `channels` | array of enums \| any \| null | no | The channels the invite may use, fixed when it was created; null under `delivery: self` and on invites made before these fields. |
| `follow_up_text` | object \| any \| null | no | The follow-up text in force on the invite; null under `delivery: self` and on older invites. |
| `follow_up_text.enabled` | boolean | no | Whether a follow-up text goes after a notification. |
| `follow_up_text.when` | enum | no | `not_opened`: the request has not been opened through any link or the notification. `not_finished`: the capture is not complete, or the cart is not approved or declined; opening does not stop it. One of `not_opened`, `not_finished`. |
| `follow_up_text.after_minutes` | integer | no | The wait in minutes, counted from the notification. |
| `delivery` | object \| any \| null | no | The first message that went, or the first one's refusal (`{ channel: "self", delivered: false, reason: "self_delivery" }` under `delivery: self`); null on older invites. |
| `delivery.channel` | enum | no | The channel that sent the link (or was tried first); `self` when you deliver it. A routed approval and an approver invite report `text` and `app_notification` (the person's Provenance app); `sms` is not sent any more. One of `text`, `email`, `self`, `app_notification`, `webpush`, `sms`. |
| `delivery.delivered` | boolean | no | Whether the link was sent. |
| `delivery.reason` | enum | no | Why it wasn't sent: no sender is configured for the channel, the approver's phone isn't verified, the approver's quiet hours apply, the send failed, the account is on Free (no texts to approvers) or its trial ended (the request still reaches the approver portal), or you deliver the link yourself. On a text also: the number stopped texts from you (`opted_out`), or your own number is not approved yet (`sender_not_ready`), or no consent to text is on record for the phone (`no_text_consent`); the email goes in its place when the approver has one. On the live demos' own accounts only: the contact is no open allowed contact (`contact_not_allowed`), or demo texts are paused or at the day's ceiling (`demo_unavailable`). One of `channel_not_configured`, `phone_not_verified`, `quiet_hours`, `send_failed`, `plan_send_limit`, `self_delivery`, `channel_excluded`, `opted_out`, `sender_not_ready`, `no_text_consent`, `contact_not_allowed`, `demo_unavailable`. |
| `delivery.sender` | enum | no | On an email, `custom` when it went from your verified address, else `default`. On a text, `custom`: it left your own approved number (`default` only on a deployment with the own-number rule off). One of `custom`, `default`. |
| `delivery.upgrade_url` | string | no | With `plan_send_limit`, where to upgrade. |
| `delivery.test` | enum | no | In the sandbox, a text the test provider recorded and never sent (test mode). Absent on live. One of `true`. |
| `deliveries` | array of objects | no | One entry per message of the invite's send, the follow-up text among them; empty under `delivery: self`. |
| `deliveries.recipient` | string | yes | The masked contact you gave (`•••• 0132`, `d•••@mail.example`). An app notification shows the request's phone when it has one, else its email. Blank once the contacts are purged. |
| `deliveries.channel` | enum | yes | The channel the message used. One of `app_notification`, `email`, `text`. |
| `deliveries.channel_reason` | enum | yes | Why that channel: `default`, the request's own plan; `follow_up`, the text after an app notification that was not opened (or not finished) within your wait. One of `default`, `follow_up`. |
| `deliveries.status` | enum | yes | Whether a provider took the message. A follow-up text is `scheduled` while it waits, then `sent`, `not_sent` (it was due and could not go) or `cancelled` (it was not needed). One of `sent`, `not_sent`, `scheduled`, `cancelled`. |
| `deliveries.sent_at` | timestamp | no | With `sent`: when it went. |
| `deliveries.reason` | string | no | With `not_sent`: why (`channel_not_configured`, `send_failed`, `plan_send_limit`, `opted_out`, `sender_not_ready`, `no_text_consent` (no consent to text on record for the phone; a follow-up text is then never scheduled), or `channel_excluded` when `channels` left out every way to reach the contact). With a cancelled follow-up: `opened` (opened first), `request_closed` (finished, declined, cancelled, stopped, or Not now on the capture terms), `expired` (the request ended before the text was due), `replaced` (a newer send took its place) or `paused`. |
| `deliveries.when` | enum | no | A follow-up text's trigger, from the request's `follow_up_text.when`. One of `not_opened`, `not_finished`. |
| `deliveries.scheduled_for` | timestamp | no | While a follow-up waits: when it is due (the notification plus your wait, or the end of quiet hours on the person's side when held). |
| `deliveries.held_until_quiet_end` | boolean | no | A waiting follow-up held for the night: `scheduled_for` is the end of quiet hours (8 am unless you widened them). |
| `deliveries.quiet_hours` | object | no | With `held_until_quiet_end`: the time zone quiet hours were read on, and where it came from, as on a held reminder. `scheduled_for` is the end of quiet hours in this zone. |
| `deliveries.quiet_hours.time_zone` | string | yes | An IANA time zone. |
| `deliveries.quiet_hours.source` | enum | yes | `account`: your `default_time_zone`. `country`: the number's country has one time zone. `unknown`: the hours that are daytime across the number's whole country. One of `person`, `group`, `account`, `country`, `unknown`. |
| `deliveries.test` | boolean | no | In the sandbox, a text recorded by the test provider and never sent. |
| `deliveries.sender` | enum | no | With `sent`, on a text or an email: who it was from. `custom` is your own approved number or sending domain; `default` is Provenance's. Absent on an app notification and on a message that did not go. One of `custom`, `default`. |
| `deliveries.consent_id` | string | no | With `sent`, on a text: the consent record (`tcon_…`) the text went under, which `GET /v1/account/text_consents/{id}` reads. Absent under your statement for everyone, in test mode and with the consent line off. |
| `contact` | object | no | On the invite's create and on the list, when the invite went to a phone: the consent to text in force for it. Never the phone itself. |
| `contact.text_consent` | object | no | The consent to text in force for the request's phone, read when the request is read: a consent recorded later shows on the next read. Present only when the request has a phone. |
| `contact.text_consent.status` | enum | yes | `active`: a text from your company may go to this phone. `none`: no consent on record, so a text to it reads `no_text_consent`. One of `active`, `none`. |
| `contact.text_consent.source` | enum | no | With `active`: how the person agreed. `step`, the opt-in step before a request; `box`, the consent box on your own form; `keyword`, a START reply; `statement` or `import`, your statement for this phone; `everyone`, your statement for everyone you text. One of `step`, `box`, `keyword`, `statement`, `import`, `everyone`. |
| `contact.text_consent.granted_at` | timestamp | no | With `active`: when the consent was recorded (for `everyone`, when you made the statement). |
| `contact.text_consent.withdrawn_at` | timestamp | no | With `none`: when the phone's latest consent was withdrawn (STOP, the person, you or the provider). Absent when there never was one. |
| `deleted` | boolean | no | Always true for a deleted object. |
| `integrator_name` | string | no | The integrator that sent the invite. |
| `consent` | object | no | The consent text the approver accepts. |
| `consent.draft` | boolean | yes | Whether the consent text is a draft. |
| `consent.version` | string | yes | The version number. |
| `consent.marker` | string | yes | The DRAFT marker shown with the consent text. |
| `consent.summary` | string | yes | A one-line summary. |
| `consent.doc` | string | no | The full consent text. |
| `consent_version` | string \| null | no | The version of the consent text accepted. |
| `message` | string | no | A human-readable message. |
| `policy` | object | no | The policy. |
| `policy.max_amount` | integer | yes | The largest amount allowed per action. |
| `policy.quiet_hours` | object | yes | Hours, in UTC, when approvals wait. |
| `policy.quiet_hours.start` | integer | yes | The start. |
| `policy.quiet_hours.end` | integer | yes | The hour quiet hours end. |
| `available` | boolean | no | Whether it's available. |
| `prefill_email` | string | no | The email to fill in on the enrollment widget. |
| `ask_app` | boolean | no | Present (true) when the invite asks the approver to approve with the Provenance app. |
| `app` | object | no | In the list: the approver's Provenance app (installed, whether notifications reach it, the best server-assigned phone tier). Nothing else about their phones. |
| `app.installed` | boolean | no | A phone is enrolled. |
| `app.notifications` | enum | no | Whether requests reach it as a notification. One of `on`, `off`, `unavailable`. |
| `app.device_tier` | enum | no | The best phone tier. One of `sep`, `strongbox`, `tee`, `software`. |

### Example

```json
{
  "id": "lnk_01M7FJYW6FGTAHS7EH5D5SRHSF",
  "object": "approver_link",
  "status": "invited",
  "approver_display_name": null,
  "grant": {
    "action_types": [
      "payment"
    ],
    "max_amount": 1000
  },
  "invited_at": "2026-11-15T12:29:50.671Z",
  "accepted_at": null,
  "revoked_at": null,
  "channels": [
    "app_notification",
    "email",
    "text"
  ],
  "follow_up_text": {
    "enabled": true,
    "when": "not_opened",
    "after_minutes": 5
  },
  "delivery": {
    "channel": "email",
    "delivered": false,
    "reason": "channel_not_configured"
  },
  "deliveries": [
    {
      "recipient": "a•••@example.com",
      "channel": "email",
      "channel_reason": "default",
      "status": "not_sent",
      "reason": "channel_not_configured"
    }
  ],
  "app": {
    "installed": false,
    "notifications": "off",
    "device_tier": null
  }
}
```

## Events

Sent to your [webhook endpoints](https://provenanceauth.com/docs/integrate/webhooks.md) when they subscribe:

- `mandate.approval_link.resent`
- `mandate.approval_link.resend_requested`
- `mandate.approver_link.follow_up_sent`
- `mandate.approver_link.follow_up_not_sent`

## Invite an approver

`POST /v1/mandate/approver_links`

Invites a person you already know, by phone, email or both, to approve with their own passkey. It goes like any request: the app notification or the text, with the email, then a follow-up text ([how](https://provenanceauth.com/docs/mandate/guides/approver-network.md#how-the-invite-reaches-them)). `delivery: "self"` sends nothing. A console session needs an admin with a recent step-up.

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). |
| `contact` | body | object \| string | yes | Who the invite goes to: `{ phone, email }` (one or both, the same rule as every request), or one string holding an email or an E.164 phone. Required, with `delivery: self` too. |
| `contact.phone` | body | string | no | An E.164 phone number (`+14155550132`). Spaces are removed; nothing else is guessed. |
| `contact.email` | body | string | no | An email address, compared in lower case. |
| `contact.text_consent` | body | object | no | With `phone`: your statement that the person at this phone agreed to your texts, recorded with the request (the same record as `POST /v1/account/text_consents`). Needs the consent mode `company` (409 `text_consent_mode_mismatch` otherwise) and the Pro plan or higher. Read on capture requests, checkout approvals and checkout assessments; refused on an approver invite. |
| `contact.text_consent.method` | body | enum | yes | How the person agreed. One of `sign_up_form`, `in_app`, `in_person`, `customer_list`. |
| `contact.text_consent.obtained_at` | body | timestamp | yes | When they agreed; not in the future. |
| `contact.text_consent.evidence_url` | body | string | no | An `https` link to how they agreed. Stored, never fetched. |
| `delivery` | body | enum | no | `send`: Provenance sends the request on the channels `channels` allows. `self`: link only. Nothing is sent and the response returns the link for you to pass on. Left out, a request with no contact is link only and any other takes your account's default (`send` out of the box). With a default of link only, a request that gives a contact must say `send`. One of `send`, `self`. |
| `channels` | body | array of enums | no | Which of Provenance's messages may go, in any order: `app_notification` (the person's Provenance app, when the contact matches one person there), `email` and `text`. Left out, your account's default (all three out of the box). With all three, the person gets the app notification and the email when their contact matches, and the text and the email otherwise; a narrower list sends only what it names (the text goes in the notification's place only with `text`, the email beside either only with `email`). Each message is reported on its own in `deliveries`. A list that can reach none of the contacts is refused, as are `sms` and `app_push`. |
| `follow_up_text` | body | object | no | The follow-up text after the invite's app notification. An invite has no expiry, so any wait from 1 to 1440 minutes is accepted. On a live deployment it is Pro and above (`402 plan_required` on Free); in the sandbox it works on every plan. Refused beside `delivery: "self"`. |
| `follow_up_text.enabled` | body | boolean | no | `false` sends no follow-up text. |
| `follow_up_text.when` | body | enum | no | `not_opened` (the default) or `not_finished`. One of `not_opened`, `not_finished`. |
| `follow_up_text.after_minutes` | body | integer | no | A whole number of minutes from 1 to 1440, counted from the notification. On a create it must be shorter than the request's `expires_in` (`400 parameter_invalid` on `follow_up_text.after_minutes`); a longer wait from your default is kept, and the text is skipped as `expired` if the request ends first. |
| `grant` | body | object | no | What the integrator will ask the approver to approve. |
| `grant.action_types` | body | array of strings | no | The action types allowed. |
| `grant.max_amount` | body | number | no | The largest amount allowed per action. |
| `grant.products` | body | array of strings | no | The products enabled for the account. |
| `ask_app` | body | boolean | no | The invite page says "{Company} asks you to approve with the Provenance app", with the store links once they're live. |

### Returns

The invite, with the delivery in force (`channels`, `follow_up_text`) and each message in `deliveries`. See [the approver link object](#object).

### Errors

- [`approver_network_disabled`](https://provenanceauth.com/docs/platform/errors.md#approver_network_disabled)
- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_role`](https://provenanceauth.com/docs/platform/errors.md#insufficient_role)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`invite_declined`](https://provenanceauth.com/docs/platform/errors.md#invite_declined)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`plan_required`](https://provenanceauth.com/docs/platform/errors.md#plan_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`recent_two_factor_required`](https://provenanceauth.com/docs/platform/errors.md#recent_two_factor_required)
- [`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 PUT "$PROVENANCE_API/v1/account/text_consent" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "mode": "company", "everyone": null }' > /dev/null
curl -X POST "$PROVENANCE_API/v1/mandate/approver_links" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contact": {
      "phone": "+14155550148",
      "email": "dana@example.com"
    },
    "grant": {
      "max_amount": 1000,
      "action_types": [
        "payment"
      ]
    }
  }'
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/text_consent`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "mode": "company", "everyone": null }),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approver_links`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "contact": {
      "phone": "+14155550148",
      "email": "dana@example.com"
    },
    "grant": {
      "max_amount": 1000,
      "action_types": [
        "payment"
      ]
    }
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.put(f"{api}/v1/account/text_consent", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "mode": "company",
    "everyone": None
}).json()
data = httpx.post(f"{api}/v1/mandate/approver_links", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "contact": {
        "phone": "+14155550148",
        "email": "dana@example.com"
    },
    "grant": {
        "max_amount": 1000,
        "action_types": [
            "payment"
        ]
    }
}).json()
```

### Response 201

```json
{
  "id": "lnk_01M7FJYW6X5S4P0ZWYJNV8KH53",
  "object": "approver_link",
  "status": "invited",
  "invite_url": "http://localhost:5173/approver/invite/XxSI1ZYMjWoppt6XWkrLnnfzXLX6tpFVlyzwsCb-a3o",
  "channels": [
    "app_notification",
    "email",
    "text"
  ],
  "follow_up_text": {
    "enabled": true,
    "when": "not_opened",
    "after_minutes": 5
  },
  "delivery": {
    "channel": "text",
    "delivered": true,
    "test": true
  },
  "deliveries": [
    {
      "recipient": "•••• 0148",
      "channel": "text",
      "channel_reason": "default",
      "status": "sent",
      "sent_at": "2026-11-15T12:29:50.686Z",
      "test": true
    },
    {
      "recipient": "d•••@example.com",
      "channel": "email",
      "channel_reason": "default",
      "status": "not_sent",
      "reason": "channel_not_configured"
    }
  ],
  "contact": {
    "text_consent": {
      "status": "none"
    }
  }
}
```

## List approver links

`GET /v1/mandate/approver_links`

Lists the approvers you've invited, with each link's status and the approver's display name.

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

### Parameters

No parameters.

### Returns

Your approver links.

### 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)

### Request

**curl**

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

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approver_links`, {
  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/mandate/approver_links", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```

### Response 200

```json
{
  "object": "list",
  "data": [
    {
      "id": "lnk_01M7FJYW6FGTAHS7EH5D5SRHSF",
      "object": "approver_link",
      "status": "invited",
      "approver_display_name": null,
      "grant": {
        "action_types": [
          "payment"
        ],
        "max_amount": 1000
      },
      "invited_at": "2026-11-15T12:29:50.671Z",
      "accepted_at": null,
      "revoked_at": null,
      "channels": [
        "app_notification",
        "email",
        "text"
      ],
      "follow_up_text": {
        "enabled": true,
        "when": "not_opened",
        "after_minutes": 5
      },
      "delivery": {
        "channel": "email",
        "delivered": false,
        "reason": "channel_not_configured"
      },
      "deliveries": [
        {
          "recipient": "a•••@example.com",
          "channel": "email",
          "channel_reason": "default",
          "status": "not_sent",
          "reason": "channel_not_configured"
        }
      ],
      "app": {
        "installed": false,
        "notifications": "off",
        "device_tier": null
      }
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

## Revoke an approver link

`DELETE /v1/mandate/approver_links/{id}`

Revokes a link. Pending approvals on it expire, and routing to it fails with link_revoked.

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

### Parameters

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

### Returns

The link, now revoked. See [the approver link object](#object).

### 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/approver_links" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "contact": "riley@example.com", "grant": { "max_amount": 1000 } }' > step.json
export LINK_ID=$(jq -r '.id' step.json)
curl -X DELETE "$PROVENANCE_API/v1/mandate/approver_links/$LINK_ID" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approver_links`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "contact": "riley@example.com", "grant": { "max_amount": 1000 } }),
})).json();
const linkId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approver_links/${linkId}`, {
  method: "DELETE",
  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/approver_links", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "contact": "riley@example.com",
    "grant": {
        "max_amount": 1000
    }
}).json()
link_id = step1["id"]
data = httpx.delete(f"{api}/v1/mandate/approver_links/{link_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```

### Response 200

```json
{
  "id": "lnk_01M6VQBCWWDVJTSY9YHZ6MNK86",
  "object": "approver_link",
  "deleted": true
}
```

## Route an approval to someone new

`POST /v1/mandate/approver_links/route`

Routes an approval to a person who has no approver link yet: one message, and they set up a passkey on Approve ([first-time approvers](https://provenanceauth.com/docs/mandate/guides/approver-network.md#first-time-approvers-and-credential-age)). Or send `approver_link_ids` to route it to a group ([more than one approver](https://provenanceauth.com/docs/mandate/guides/group-approvals.md)).

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `contact` | body | string | no | An email or E.164 phone number you already hold. Required unless you send `approver_link_ids`. |
| `approver_link_ids` | body | array of strings | no | Group sign-off: the accepted approver links to route to (with `intent_token`). |
| `approvals_needed` | body | integer | no | With `approver_link_ids`: how many must approve (default: all). |
| `deny_rule` | body | enum | no | With `approver_link_ids`: `any` (default) ends it at the first deny; `unreachable` once approval can't happen. One of `any`, `unreachable`. |
| `grant` | body | object | no | The scope, as on an invite (`action_types`, `max_amount`, `products`). |
| `intent_token` | body | string | no | The agent's intent token (preferred; the approval binds to it). |
| `jti` | body | string | no | A bare jti (unbound; never satisfies verify). |
| `action_description` | body | string | yes | Must be the action the intent token was authorized for. |
| `amount` | body | number | no | The amount. |
| `approval_expires_in` | body | integer | no | The approval's expiry in seconds. |
| `link_expires_in` | body | integer | no | How long each single-use link works. |
| `reminders` | body | object | no | For a routed approval: its automatic reminders (the `approval` schedule's shape). Left out, your account's schedule. |
| `reminders.enabled` | body | boolean | no | `true` tracks this request on the schedule (Pro and above on a live deployment: `402 plan_required` on `reminders.enabled` below Pro, nothing created; every plan in the sandbox); `false` sends it no automatic reminder (one by hand or by API is still allowed). |
| `reminders.after` | body | array of strings | no | Up to three offsets from the request's creation (`10m`, `24h`, `3d`), increasing, each at least the minimum gap after the one before, at most 7 days. Errors use the Settings messages on `reminders.after`. |
| `channels` | body | object | no | Which messages may go (`app_notification`, `email`, `text`); one message goes. Left out, your account's default. |
| `delivery` | body | enum | no | `send`, or `self`: send nothing; the response carries `approve_url`. Left out, your account's default. One of `send`, `self`. |
| `context` | body | object | no | Details shown to the approver. |

### Returns

The approval, routed to the new contact. `link_status` is `invited` until they set up a passkey.

### Errors

- [`approval_already_open`](https://provenanceauth.com/docs/platform/errors.md#approval_already_open)
- [`approver_network_disabled`](https://provenanceauth.com/docs/platform/errors.md#approver_network_disabled)
- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`intent_token_foreign`](https://provenanceauth.com/docs/platform/errors.md#intent_token_foreign)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`invite_declined`](https://provenanceauth.com/docs/platform/errors.md#invite_declined)
- [`link_revoked`](https://provenanceauth.com/docs/platform/errors.md#link_revoked)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`plan_required`](https://provenanceauth.com/docs/platform/errors.md#plan_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 -X POST "$PROVENANCE_API/v1/mandate/approver_links/route" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contact": "ana@northside.example",
    "jti": "jti_route_ana_1",
    "action_description": "Pay invoice INV-2041: $850.00 to Brindlecote Supplies",
    "amount": 850
  }'
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approver_links/route`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "contact": "ana@northside.example",
    "jti": "jti_route_ana_1",
    "action_description": "Pay invoice INV-2041: $850.00 to Brindlecote Supplies",
    "amount": 850
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/mandate/approver_links/route", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "contact": "ana@northside.example",
    "jti": "jti_route_ana_1",
    "action_description": "Pay invoice INV-2041: $850.00 to Brindlecote Supplies",
    "amount": 850
}).json()
```

### Response 200

```json
{
  "id": "appr_01M6VQBCWZCWXTHF8K9A7CCKNP",
  "object": "approval",
  "approver_link_id": "lnk_01M6VQBCWZNXAQTSVRXSYE2KZX",
  "status": "pending",
  "bound": false,
  "requires_biometric": true,
  "effective_max_amount": null,
  "exceeds_ceiling": false,
  "deferred_quiet_hours": false,
  "expires_at": "2026-11-07T19:31:46.655Z",
  "delivery": {
    "channel": "email",
    "delivered": false,
    "reason": "channel_not_configured"
  },
  "link_expires_at": "2026-11-07T19:31:46.655Z",
  "link_status": "invited"
}
```

## Route an approval to an approver

`POST /v1/mandate/approver_links/{id}/approvals`

Sends an approval to an approver who accepted your invite and texts them a single-use link. With `intent_token`, the approval binds to that token's action and payload, and verify returns `valid` once they approve. The `jti` form is unbound and never satisfies verify. See [approver network](https://provenanceauth.com/docs/mandate/guides/approver-network.md).

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). |
| `id` | path | string | yes | The object's ID. |
| `intent_token` | body | string | no | The agent's intent token, issued to your account. The approval covers its action and payload only. |
| `jti` | body | string | no | Unbound form: a bare token ID. The approval reaches the approver but never satisfies verify. |
| `action_description` | body | string | yes | The human-readable action, exactly as authorized. With `intent_token`, it must match the token's action. |
| `amount` | body | number | no | The amount, checked against the link's ceiling. |
| `needs_biometric` | body | boolean | no | Require the approver's passkey. |
| `approval_expires_in` | body | integer | no | The expiry of an approval this call opens, in seconds: 60 to 7 days, and never past the intent token's expiry. Defaults to the account default, then the server's. |
| `link_expires_in` | body | integer | no | How long each single-use link to the approver works, in seconds: at least 60, capped at the approval. Defaults to the whole approval window; a resend issues a new link for the same time. |
| `reminders` | body | object | no | For a routed approval: its automatic reminders (the `approval` schedule's shape). Left out, your account's schedule. |
| `reminders.enabled` | body | boolean | no | `true` tracks this request on the schedule (Pro and above on a live deployment: `402 plan_required` on `reminders.enabled` below Pro, nothing created; every plan in the sandbox); `false` sends it no automatic reminder (one by hand or by API is still allowed). |
| `reminders.after` | body | array of strings | no | Up to three offsets from the request's creation (`10m`, `24h`, `3d`), increasing, each at least the minimum gap after the one before, at most 7 days. Errors use the Settings messages on `reminders.after`. |
| `channels` | body | object | no | For a routed approval: which messages may go (`app_notification`, `email`, `text`). They narrow the approver's own order (their Provenance app, then their channels, then a text when they have a phone, then email), and one message goes. Left out, your account's default. |
| `delivery` | body | enum | no | `send`, or `self`: send nothing; the response carries `approve_url` for you to show in your own app. The approver still approves with their own passkey. `self` needs an approver link. Left out, your account's default. One of `send`, `self`. |
| `context` | body | object | no | Details shown to the approver. |

### Returns

The approval, now waiting for the approver, with the limits that apply and its delivery.

### Errors

- [`approval_already_open`](https://provenanceauth.com/docs/platform/errors.md#approval_already_open)
- [`approver_unauthenticated`](https://provenanceauth.com/docs/platform/errors.md#approver_unauthenticated)
- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`intent_token_foreign`](https://provenanceauth.com/docs/platform/errors.md#intent_token_foreign)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`link_revoked`](https://provenanceauth.com/docs/platform/errors.md#link_revoked)
- [`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)
- [`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 -X POST "$PROVENANCE_API/v1/mandate/approver_links/lnk_01M5Q2H4DXP9F05T994KREYCNS/approvals" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "intent_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI3Zjc5YTg4NS01ZmM3In0.c2lnbmF0dXJl",
    "action_description": "Pay invoice INV-2041: $850.00 to Brindlecote Supplies",
    "amount": 850,
    "needs_biometric": true,
    "approval_expires_in": 3600
  }'
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approver_links/lnk_01M5Q2H4DXP9F05T994KREYCNS/approvals`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "intent_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI3Zjc5YTg4NS01ZmM3In0.c2lnbmF0dXJl",
    "action_description": "Pay invoice INV-2041: $850.00 to Brindlecote Supplies",
    "amount": 850,
    "needs_biometric": true,
    "approval_expires_in": 3600
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/mandate/approver_links/lnk_01M5Q2H4DXP9F05T994KREYCNS/approvals", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "intent_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI3Zjc5YTg4NS01ZmM3In0.c2lnbmF0dXJl",
    "action_description": "Pay invoice INV-2041: $850.00 to Brindlecote Supplies",
    "amount": 850,
    "needs_biometric": True,
    "approval_expires_in": 3600
}).json()
```

### Response 200

```json
{
  "id": "appr_01M5R0C09DQ4X7N2W8K5T3VB6M",
  "object": "approval",
  "approver_link_id": "lnk_01M5R0C09BPYX1PE6YR5WP772V",
  "status": "pending",
  "bound": true,
  "requires_biometric": true,
  "effective_max_amount": 5000,
  "exceeds_ceiling": false,
  "deferred_quiet_hours": false,
  "delivery": {
    "channel": "text",
    "delivered": true,
    "sender": "default"
  },
  "expires_at": "2026-10-24T22:41:44.130Z"
}
```
