Mandate · Guide
Approve by phone call
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 for how the levels work.
Before you begin: an approval rule that sends requests to a person (see step-up approval), and a verified phone on the account. Export the sandbox account key:
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 /:
curl $PROVENANCE_API/v1/account/voice_confirmations \
-H "Authorization: Bearer $PROVENANCE_KEY"
const res = await fetch(`${process.env.PROVENANCE_API}/v1/account/voice_confirmations`, {
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
});
const settings = await res.json();
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()
{
"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 /. 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 -X PUT $PROVENANCE_API/v1/account/approval_channels \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "channels": ["phone_call", "text", "email"] }'
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"] }),
});
httpx.put(f"{api}/v1/account/approval_channels", json={"channels": ["phone_call", "text", "email"]}, headers=headers)
{ "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 /. This one lets a call approve up to 50.00 USD to a payee the person has paid before, and never a refund:
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"] }
}
}'
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"] },
},
}),
});
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"]},
},
})
{
"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
- "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.
- "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."
- 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. 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 /:
curl -X DELETE $PROVENANCE_API/v1/mandate/policies \
-H "Authorization: Bearer $PROVENANCE_KEY"
await fetch(`${process.env.PROVENANCE_API}/v1/mandate/policies`, {
method: "DELETE",
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
});
httpx.delete(f"{api}/v1/mandate/policies", headers=headers)
{ "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.
Errors you might see
| Symptom | Cause | Fix |
|---|---|---|
403 dashboard_ turning calls on | An API key can't give a person's consent | Turn calls on in the console. |
400 voice_ | No verified phone | Add and verify a phone first. |
400 voice_ | Calls to this number aren't offered | Use the app, a text or email. |
503 voice_ | 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. |