# Approve by phone call

Let people approve your agents' requests on a phone call — Provenance calls their verified phone, reads the request after a key press, and takes the answer on the keypad within your call limit.

Set up phone confirmations: the person opts in, you add `phone_call` to the approval channels, and your policy says which requests a call can approve. Everything above your limit still needs the passkey; the call reads the request and sends the link. See [phone confirmations](https://provenanceauth.com/docs/mandate/concepts/phone-confirmations.md) for how the levels work.

**Before you begin:** an approval rule that sends requests to a person (see [step-up approval](https://provenanceauth.com/docs/mandate/guides/step-up-approval.md)), and a verified phone on the account. Export the sandbox account key:

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
```

## 1. Turn calls on

Calls are off until a person turns them on for their own verified phone, in the console under **Settings → Notifications → Phone call**. They see the opt-in text, choose the call's language (English or Spanish), slower speech and quiet hours, and confirm. An API key can read the setting but can't give a person's consent.

Read the setting with [`GET /v1/account/voice_confirmations`](https://provenanceauth.com/docs/api/account.md#get-v1-account-voice-confirmations):

**curl**

```bash
curl $PROVENANCE_API/v1/account/voice_confirmations \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const res = await fetch(`${process.env.PROVENANCE_API}/v1/account/voice_confirmations`, {
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
});
const settings = await res.json();
```

**Python**

```python
import os
import httpx

api, headers = os.environ["PROVENANCE_API"], {"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}
settings = httpx.get(f"{api}/v1/account/voice_confirmations", headers=headers).json()
```

```json
{
  "object": "voice_confirmation_settings",
  "consent_version": "voice-consent-2026-11-08",
  "locale": "en",
  "slow_speech": false,
  "preference": "first"
}
```

`availability` says whether calls can reach the phone now: `provider_not_configured` when the server has no voice number, `phone_not_verified`, or `voice_not_opted_in`. Approvers turn calls on in the approver portal, and people in the Provenance app under Settings; both use the same settings.

## 2. Add the phone call to the approval channels

Put `phone_call` in the account owner's channels: in the console under **Settings → Notifications → Your notifications**, or in the account default with [`PUT /v1/account/approval_channels`](https://provenanceauth.com/docs/api/account.md#put-v1-account-approval-channels). A call is placed beside the other channels, never instead of them: the text or email with the link still goes out, and with **First that works** email stays the last fallback. Phone calls reach the account owner for now.

**curl**

```bash
curl -X PUT $PROVENANCE_API/v1/account/approval_channels \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "channels": ["phone_call", "text", "email"] }'
```

**Node**

```ts
await fetch(`${process.env.PROVENANCE_API}/v1/account/approval_channels`, {
  method: "PUT",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ channels: ["phone_call", "text", "email"] }),
});
```

**Python**

```python
httpx.put(f"{api}/v1/account/approval_channels", json={"channels": ["phone_call", "text", "email"]}, headers=headers)
```

```json
{ "object": "approval_channels", "mode": "first_available", "channels": ["phone_call", "text", "email"] }
```

With the preference `first`, the call goes out as the request arrives. With `fallback`, it goes out 5 minutes later if the request is still waiting, or right away when nothing but email reached the person.

## 3. Set your call limit

Add a `voice` block to your approval policy with [`PUT /v1/mandate/policies`](https://provenanceauth.com/docs/api/policies.md#put-v1-mandate-policies). This one lets a call approve up to 50.00 USD to a payee the person has paid before, and never a refund:

**curl**

```bash
curl -X PUT $PROVENANCE_API/v1/mandate/policies \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "note": "calls approve small payments",
    "document": {
      "rules": [
        { "id": "payments-need-a-person", "when": [{ "fact": "action_type", "op": "eq", "value": "payment" }], "require": { "approval": true } }
      ],
      "voice": { "voice_max": 5000, "currency": "USD", "voice_requires_known_counterparty": true, "never_voice_action_types": ["refund"] }
    }
  }'
```

**Node**

```ts
await fetch(`${process.env.PROVENANCE_API}/v1/mandate/policies`, {
  method: "PUT",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    note: "calls approve small payments",
    document: {
      rules: [{ id: "payments-need-a-person", when: [{ fact: "action_type", op: "eq", value: "payment" }], require: { approval: true } }],
      voice: { voice_max: 5000, currency: "USD", voice_requires_known_counterparty: true, never_voice_action_types: ["refund"] },
    },
  }),
});
```

**Python**

```python
httpx.put(f"{api}/v1/mandate/policies", headers=headers, json={
    "note": "calls approve small payments",
    "document": {
        "rules": [{"id": "payments-need-a-person", "when": [{"fact": "action_type", "op": "eq", "value": "payment"}], "require": {"approval": True}}],
        "voice": {"voice_max": 5000, "currency": "USD", "voice_requires_known_counterparty": True, "never_voice_action_types": ["refund"]},
    },
})
```

```json
{
  "object": "policy_version",
  "domain": "intent",
  "active": true,
  "note": "calls approve small payments"
}
```

Pass the counterparty as `payee` and the amount and currency in the verify `context`, so the call can read them and check them against the limit. To keep calls from approving for one agent, add a rule that denies when `agent_id` is that agent and `approval.method` is `voice_keypad`.

## 4. What the person hears

1. "This is an automated call from Provenance for you. Saltmarsh Bakery sent a request that needs your answer. Press 1 to hear it." Nothing else is read until they press 1.
2. "Your agent wants to pay the March invoice for eighteen dollars with Saltmarsh Bakery. This request expires at 3:45 PM. Press 1 to approve. Press 2 to decline. Press 9 to hear it again."
3. Within your limit, 1 approves. Above it, the call says "To approve, open the link we've just sent and use your passkey" and texts the link.

A machine hears only that a request is waiting. Calls stop as soon as the request is decided anywhere, and an unanswered call is tried again 5 and 15 minutes after the first, at most three times, never in the person's quiet hours. When the server offers a call-back number, a person who missed the call can ring it, and Provenance calls their verified phone back; nothing is approved on an inbound call.

## 5. Verify, then read how it was approved

Verify again as in [step-up approval](https://provenanceauth.com/docs/mandate/guides/step-up-approval.md). The approval shows `approval_channel: "voice"`, its `voice_level` and `approval_method` (`voice_keypad` or `passkey`), and the decision's receipt says `approval_channel: "voice"` with `biometric_bound: false`.

## 6. Remove the rule

When you're done testing, return the sandbox account to the default policy with [`DELETE /v1/mandate/policies`](https://provenanceauth.com/docs/api/policies.md#delete-v1-mandate-policies):

**curl**

```bash
curl -X DELETE $PROVENANCE_API/v1/mandate/policies \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
await fetch(`${process.env.PROVENANCE_API}/v1/mandate/policies`, {
  method: "DELETE",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
});
```

**Python**

```python
httpx.delete(f"{api}/v1/mandate/policies", headers=headers)
```

```json
{ "object": "policy", "domain": "intent", "is_default": true }
```

## Call minutes

A call confirmation is one `confirmation`, metered when the first call goes out; retries are free. The first minute of the first call is included. Each further started minute is billed by the number's country:

| Destination | Per minute |
| --- | --- |
| US and Canada | 5¢ |
| Elsewhere | 15¢ |

Destinations where a call minute costs more are not called; the request goes to the next channel. A call that reaches voicemail still bills its minutes. On Free, calls count within the trial's API calls, with 10 call minutes, US and Canada only. See [plans and usage](https://provenanceauth.com/docs/account/plans-and-usage.md#call-minutes).

## Errors you might see

| Symptom | Cause | Fix |
| --- | --- | --- |
| `403` [`dashboard_session_required`](https://provenanceauth.com/docs/platform/errors.md#dashboard_session_required) turning calls on | An API key can't give a person's consent | Turn calls on in the console. |
| `400` [`voice_phone_not_verified`](https://provenanceauth.com/docs/platform/errors.md#voice_phone_not_verified) | No verified phone | Add and verify a phone first. |
| `400` [`voice_destination_blocked`](https://provenanceauth.com/docs/platform/errors.md#voice_destination_blocked) | Calls to this number aren't offered | Use the app, a text or email. |
| `503` [`voice_confirmations_not_configured`](https://provenanceauth.com/docs/platform/errors.md#voice_confirmations_not_configured) | The server has no voice number, or calls are off | Use another channel; on your own server, set the Twilio voice number. |
| The person pressed 1 and the request is still pending | The request needed the passkey | They open the link the call texted and approve with their passkey. |

## See also

- [Phone confirmations](https://provenanceauth.com/docs/mandate/concepts/phone-confirmations.md)
- [Step-up approval](https://provenanceauth.com/docs/mandate/guides/step-up-approval.md)
- [Approver network](https://provenanceauth.com/docs/mandate/guides/approver-network.md)
- [Policies](https://provenanceauth.com/docs/concepts/policies.md)
