Mandate · Guide
Route approvals
Available on Pro, Growth and Enterprise
A policy rule decides when a person must approve. A route on that rule decides who gets the request, who it goes to next when nobody answers, how long it stays open, and what happens at the end. Sales over 10,000 go to Finance, after 30 minutes the Finance lead gets it too, after 2 hours the owners, and if nobody answers it's declined.
A route only chooses who approves and how long to wait. It never removes a requirement: a rule that needs two people still needs two people, and a biometric rule still needs a biometric.
Before you begin: add your team in Settings → Team & roles (people who approve need the approver role or above), and invite any outside approvers as in the approver network guide. Export the account key.
export PROVENANCE_API=https://sandbox-api.provenanceauth.com
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
- A rule matchesrequire: { approval, route }
- The route deliversthe group first, then each escalation step
- Someone decidesor the wait ends: expire, decline or approve_below
1. Create a group
A group is a named list of people: console members with the approver role or above, and outside approvers with an active link, named by their approver link id. { "user_id": "owner" } is the account owner. The lead is a member who gets lead escalation steps.
curl -s $PROVENANCE_API/v1/mandate/approver_groups \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Finance",
"members": [{ "user_id": "usr_01M6ANA" }, { "user_id": "usr_01M6BEN" }, { "approver_link_id": "lnk_01M6MAYA9K2X7R4T5W8Q3N6P1Z" }],
"lead": { "user_id": "usr_01M6BEN" }
}'
const finance = await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approver_groups`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
name: "Finance",
members: [{ user_id: "usr_01M6ANA" }, { user_id: "usr_01M6BEN" }, { approver_link_id: "lnk_01M6MAYA9K2X7R4T5W8Q3N6P1Z" }],
lead: { user_id: "usr_01M6BEN" },
}),
}).then((r) => r.json());
finance = httpx.post(f"{api}/v1/mandate/approver_groups", headers={"Authorization": f"Bearer {key}"}, json={
"name": "Finance",
"members": [{"user_id": "usr_01M6ANA"}, {"user_id": "usr_01M6BEN"}, {"approver_link_id": "lnk_01M6MAYA9K2X7R4T5W8Q3N6P1Z"}],
"lead": {"user_id": "usr_01M6BEN"},
}).json()
{
"id": "agr_01M6FIN4N7C3QK2W8R5T1Y6H9D",
"object": "approver_group",
"name": "Finance",
"built_in": false,
"members": [
{ "person": "user:usr_01M6ANA", "kind": "user", "id": "usr_01M6ANA", "name": "ana@brindlecote.example" },
{ "person": "user:usr_01M6BEN", "kind": "user", "id": "usr_01M6BEN", "name": "ben@brindlecote.example" },
{ "person": "approver:lnk_01M6MAYA9K2X7R4T5W8Q3N6P1Z", "kind": "approver", "id": "lnk_01M6MAYA9K2X7R4T5W8Q3N6P1Z", "name": "Maya" }
],
"lead": "user:usr_01M6BEN",
"channels_override": null
}
Three built-in groups always exist and follow your team's roles: the owners, the admins, and everyone who can approve today (all_approvers). List them all with GET /:
curl -s $PROVENANCE_API/v1/mandate/approver_groups -H "Authorization: Bearer $PROVENANCE_KEY"
const groups = await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approver_groups`, {
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
}).then((r) => r.json());
groups = httpx.get(f"{api}/v1/mandate/approver_groups", headers={"Authorization": f"Bearer {key}"}).json()
{
"object": "list",
"data": [
{ "id": "owners", "object": "approver_group", "name": "Owners", "built_in": true },
{ "id": "admins", "object": "approver_group", "name": "Admins", "built_in": true },
{ "id": "all_approvers", "object": "approver_group", "name": "All approvers", "built_in": true }
],
"has_more": false
}
An account holds up to 50 groups of up to 100 people. A group a rule routes to can't be deleted (approver_group_in_use).
2. Add a route to the rule
Put route on the rule's require, beside approval: true:
{
"id": "big-sales",
"when": [{ "fact": "transaction_amount", "op": "gt", "value": 10000 }],
"require": {
"approval": true,
"approvers": 2,
"route": {
"to": "group:agr_01M6FIN4N7C3QK2W8R5T1Y6H9D",
"approvers_from": "distinct_people",
"escalate": [
{ "after": "30m", "to": "lead" },
{ "after": "2h", "to": "group:owners" }
],
"wait": "4h",
"if_unanswered": "decline"
}
}
}
| Field | Meaning |
|---|---|
to | Who gets it first: group:agr_, group:owners, group:admins, group:all_, user:usr_ (user:owner for the account owner), approver:lnk_ (an outside approver's link) or a role (role:owners, role:admins, role:policy_, role:approvers) |
approvers_ | distinct_ (default): each person counts once toward approvers, however many sessions they use. any: each approving decision counts by who made it. A console decision counts the person, not the session, so one person still counts once, and on a routed approval any counts the same way as distinct_ |
escalate | Up to 5 steps, each { after, to }. after is measured from when the request first reached someone; to is a target or lead (the to group's lead) |
wait | How long the request stays open, 1m to 7d. It never outlives the intent token or the grant it would approve |
if_ | expire, decline or approve_. Left out, the account's approval expiry default applies; an account that hasn't chosen one expires the request |
approve_ | With approve_: the amount it approves at or under |
Save the policy with PUT / as you would any change; it becomes a new version. The save checks the route: each escalation step must fall inside wait, lead needs a group with a lead, and every group, member and approver must exist on your account. A problem answers route_invalid with error.param naming the field, such as rules.0.require.route.escalate.0.after.
Rules are read top to bottom and the first match wins, so put "custom studies → Research" above "sales over 10,000 → Finance".
Send it through ordered steps
Instead of to and escalate, a route can be a chain: require.route.steps, 1 to 5 steps in order, each with its own people, how many of them must approve, and how long it waits. Admins first, and if nobody answers in 4 hours, the owner. A one-step chain to one person or the owner is on every plan; longer chains are on Pro and above.
{
"id": "invoices",
"label": "Invoices over $2,000",
"when": [{ "fact": "action_type", "op": "eq", "value": "pay_invoice" }, { "fact": "transaction_amount", "op": "gt", "value": 2000 }],
"require": {
"approval": true,
"route": {
"steps": [
{ "to": ["group:agr_finance01"], "mode": "n_of_m", "n": 2, "after": "4h" },
{ "to": ["role:owners"], "after": "1d" }
]
}
}
}
| Step field | Meaning |
|---|---|
to | 1 to 10 targets, each once |
mode | any (the default): one approval is enough. n_: n of them (2 to 10, at most the people in the step). everyone: every person in the step |
after | How long this step waits before the next one starts, such as 30m, 2h or 1d |
The chain waits the sum of its steps, between 1 minute and 7 days. A chain takes the place of a route's escalation steps, its overall wait and the rule's approver count, delivers to everyone in a step at once (assign: "all"), and may leave out to: it is the first step's first target.
| Target | Who it reaches |
|---|---|
user:usr_, user:owner | One console member, or the account owner |
group:agr_ | An approver group |
role:owners | The owner |
role:admins | Every admin |
role:policy_ | Everyone with Manage policies |
role:approvers | Everyone who may approve |
approver:lnk_ | An outside approver |
Roles always resolve to whoever holds them when the request goes out, so a chain never names a person who left. Simulate the rule with at to see each step and when it fires, as in step 3.
3. Watch it route
When the rule matches, verify answers approval_pending with a routing block: who has it, the next step, and when the wait ends.
{
"object": "mandate_assessment",
"valid": false,
"reason": "approval_pending",
"approval_id": "appr_01M6R0UT3D4P9X2K7M5Q8W1Z3A",
"approvals_needed": 2,
"approvals_received": 0,
"routing": {
"object": "approval_routing",
"label": "Finance",
"targets": ["user:usr_01M6ANA", "user:usr_01M6BEN", "approver:lnk_01M6MAYA9K2X7R4T5W8Q3N6P1Z"],
"escalation_step": 0,
"next_step": { "step": 1, "label": "Finance lead", "at": "2026-10-30T15:30:00.000Z" },
"wait_ends_at": "2026-10-30T19:00:00.000Z",
"if_unanswered": "decline",
"unanswered_outcome": "decline",
"timeline": [{ "at": "2026-10-30T15:00:00.000Z", "kind": "routed", "step": 0, "text": "Routed to Finance" }]
}
}
The request goes only to the route's people: the console inbox, plus email when your email provider is set up. Outside approvers get it on their own channels and decide with their passkey. Each escalation step adds people, and earlier recipients keep it. Nobody gets it twice. Every step sends the mandate.approval.escalated webhook, and the timeline reads "Escalated to Finance lead after 30 min".
4. Decide
Only the people the request has reached can decide it. Anyone else gets approval_not_routed_to_you. An owner can still decide it, recorded as override: true on their approval. A server holding your API key can withdraw it with a deny, but can't approve it.
With approvers: 2, two different people on the route must approve. The agent's next verify answers valid, and its ledger row records the route's group and step.
In the console inbox, the Routed to me and My groups filters (GET /v1/mandate/approvals?routed=me or routed=my_groups) show what's waiting for you.
5. Choose what happens if nobody answers
A rule that leaves out if_unanswered takes the account's approval expiry default; an account that hasn't chosen one expires the request.
if_unanswered | At the end of the wait |
|---|---|
expire | The request expires, as without a route (approval_) |
decline | It's declined with decline_ (verify answers approval_) |
approve_ | It's approved when the amount is at most approve_, recorded as decided_. Otherwise it's declined |
approve_below is allowed only on a rule that asks for one person and nothing more. A rule that needs two approvers, a biometric, a hardware tier, a passkey of a minimum age, or a policy webhook can't use it, and the save says so. A request with no known amount, or with another person required (such as a deal's buyer or seller person), is declined instead.
The scheduler runs every minute, so a step fires at most a minute late. If it stops, requests still settle at the end of their wait.
Set the account's expiry default
A rule that leaves out if_unanswered, and a chain whose last step runs out, take the account's approval expiry default, set with PUT /v1/account/policies/settings:
approval_expiry_default | At the end of the chain |
|---|---|
decline | The request is declined (decline_) |
escalate_ | The owner gets it for one more day, never past 7 days in all |
approve_ | It's approved at or under approve_, otherwise declined. A chain with more than one approval needed is declined instead |
hold | It stays open up to 7 days, then expires |
An account that hasn't chosen keeps the earlier behaviour: the request expires and never goes ahead, and the settings read expire with is_default: true.
curl -s -X PUT $PROVENANCE_API/v1/account/policies/settings \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "approval_expiry_default": "escalate_owner" }'
const settings = await (
await fetch(`${process.env.PROVENANCE_API}/v1/account/policies/settings`, {
method: "PUT",
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ approval_expiry_default: "escalate_owner" }),
})
).json();
import os, httpx
api, key = os.environ["PROVENANCE_API"], os.environ["PROVENANCE_KEY"]
settings = httpx.put(f"{api}/v1/account/policies/settings", headers={"Authorization": f"Bearer {key}"},
json={"approval_expiry_default": "escalate_owner"}).json()
{
"object": "policy_settings",
"approval_expiry_default": "escalate_owner",
"approve_below_amount": null,
"is_default": false,
"can_manage": true
}
DELETE /v1/account/policies/settings removes the choice again:
curl -s -X DELETE $PROVENANCE_API/v1/account/policies/settings \
-H "Authorization: Bearer $PROVENANCE_KEY"
await fetch(`${process.env.PROVENANCE_API}/v1/account/policies/settings`, {
method: "DELETE",
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
});
httpx.delete(f"{api}/v1/account/policies/settings", headers={"Authorization": f"Bearer {key}"})
{
"object": "policy_settings",
"approval_expiry_default": "expire",
"is_default": true
}
6. Set business hours
Give a group a weekly schedule in one time zone, then point the route at it with hours. Outside those hours, outside_hours: "hold" keeps the request until the group opens (when the wait reaches that far), and "escalate" (the default) sends it to the next step at once.
{
"name": "Finance",
"members": [{ "user_id": "usr_01M6ANA" }],
"hours": { "time_zone": "America/New_York", "schedule": { "mon": [["09:00", "17:00"]], "tue": [["09:00", "17:00"]], "wed": [["09:00", "17:00"]], "thu": [["09:00", "17:00"]], "fri": [["09:00", "17:00"]] } }
}
"route": { "to": "group:agr_01M6FIN4N7C3QK2W8R5T1Y6H9D", "hours": "agr_01M6FIN4N7C3QK2W8R5T1Y6H9D", "outside_hours": "hold", "wait": "3d" }
A held request shows escalation_step: -1 and held_until. Escalation steps count from when it reaches the group. Times follow the zone's own daylight saving.
7. Cover for people who are away
Each person can set Away until a date, with a backup, in Settings → My availability (/settings/availability, also linked from Approvals) or with PUT /. Owners and admins can set anyone's.
curl -s -X PUT $PROVENANCE_API/v1/mandate/settings/approver_availability \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "user_id": "usr_01M6ANA", "away_until": "2026-11-10T00:00:00Z", "backup": { "user_id": "usr_01M6BEN" } }'
await fetch(`${process.env.PROVENANCE_API}/v1/mandate/settings/approver_availability`, {
method: "PUT",
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ user_id: "usr_01M6ANA", away_until: "2026-11-10T00:00:00Z", backup: { user_id: "usr_01M6BEN" } }),
});
httpx.put(f"{api}/v1/mandate/settings/approver_availability", headers={"Authorization": f"Bearer {key}"},
json={"user_id": "usr_01M6ANA", "away_until": "2026-11-10T00:00:00Z", "backup": {"user_id": "usr_01M6BEN"}})
{
"id": "user:usr_01M6ANA",
"object": "approver_availability",
"person": "user:usr_01M6ANA",
"away": true,
"away_until": "2026-11-10T00:00:00.000Z",
"backup": "user:usr_01M6BEN"
}
A request routed to someone away goes to their backup instead. When the backup is away too, it goes to the group's lead, then on to the next escalation step. Away is read each time a request is delivered, so it applies to open requests' later steps as well. Send "away_until": null to come back.
8. Spread the load
assign: "round_robin" sends each new request to one member of the group in turn; "least_pending" sends it to the member with the fewest open routed requests. The rest of the group joins at the first escalation step, so give the route at least one step. Both need approvers: 1.
Give outside approvers an account
An outside approver is someone outside your account, invited by email or phone with POST /, who approves with their own passkey. A chain names them as approver:lnk_…. From the console, inviting one needs an admin with a recent step-up.
An approval link alone takes no seat. To also give the person an account on your organization, invite them with POST /v1/org/users/invite and { "role": "approver", "outside_approver": true }; that account takes a seat, and past your seats the invite answers 402 seat_limit_reached. Check the change first with GET /v1/account/policies/approvers/seat_preview:
curl -s $PROVENANCE_API/v1/account/policies/approvers/seat_preview \
-H "Authorization: Bearer $PROVENANCE_KEY"
const preview = await (
await fetch(`${process.env.PROVENANCE_API}/v1/account/policies/approvers/seat_preview`, {
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
})
).json();
preview = httpx.get(f"{api}/v1/account/policies/approvers/seat_preview", headers={"Authorization": f"Bearer {key}"}).json()
{
"object": "approver_seat_preview",
"link_only": { "seat_change": 0 },
"with_account": { "seat_change": 1 }
}
with_account also says the seats in use after the invite, your limit, whether you'd need another seat, its price on your billing interval and where to buy one.
Who can change policies
The Manage policies permission lets a console member change policies, approver groups and the approval expiry default. Owners always have it, an owner can grant it to admins, and everyone else sees policies read-only. A developer's change in live mode is held for approval instead (developer changes in live mode).
Each change also needs a passkey or authenticator check from the last 10 minutes; an API key is exempt from both and needs the policy's product scope instead (scopes). GET /v1/account/policies/managers lists the owner and admins:
curl -s $PROVENANCE_API/v1/account/policies/managers \
-H "Authorization: Bearer $PROVENANCE_KEY"
const managers = await (
await fetch(`${process.env.PROVENANCE_API}/v1/account/policies/managers`, {
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
})
).json();
managers = httpx.get(f"{api}/v1/account/policies/managers", headers={"Authorization": f"Bearer {key}"}).json()
{
"object": "list",
"data": [
{ "id": "owner", "object": "policy_manager", "role": "owner", "manage_policies": true, "can_change": false }
]
}
The owner grants or removes it for an admin in Settings → Team & roles, or with PUT /v1/account/policies/managers/{user_id} and { "manage_policies": true } from their own console session; an API key can't.
| Who | Policies, approver groups, expiry default |
|---|---|
| Owner | Changes, with a recent step-up |
| Admin with Manage policies | Changes, with a recent step-up |
| Admin without Manage policies | Read only (403 manage_) |
| Developer | In live, held for an owner or an admin with Manage policies to approve; in sandbox, read only (403 manage_) |
| Analyst, approver | Read only (403 manage_) |
| API key | Changes (scope-gated as usual) |
Manage it in the console
Owners and admins manage everything on this page in Rules → Approval routes (/policies/approval-routes):
- Groups: members, the lead and business hours.
- Routes: each approval rule with its route in plain words, such as "Amount over 10,000 → Finance, 2 people · after 30 min → Finance lead · waits 4 h · if nobody answers: decline". Editing a route saves a new policy version. GET
/returns the same words.v1/ mandate/ approval_ routes - Test a request: pick a sample or paste an order to see which rule matches, who gets it now, when each step fires and what happens at the end, before you save. It's POST
/withv1/ mandate/ policies/ simulate order, which answersroutingfrom the same code a live request uses. Nothing is sent. - Away: everyone sets their own Away and backup here.
In Approvals, Routed to me and My groups narrow the inbox, and each routed request shows who has it, the next step, the time left and its timeline.
Route on what's in the order
When an action is an order, the policy can read it as order.* facts:
| Fact | Type | Meaning |
|---|---|---|
order. | Number | The total in major units: a cart total of 1200000 (minor units, USD) reads as 12000 |
order. | String | ISO 4217, upper case |
order. | Number | The quantities added up |
order. | List | The SKUs in the cart; read with contains or contains_ |
order. | List | The cart lines' category values |
customer. | String | The customer's company, when known |
customer. | Number | The customer's rating, on agent-to-agent deals |
order., order. | String, Boolean | The agent that placed it |
order. | String | checkout (a cart bound to your store), intent (a cart in an intent) or deal |
An intent is an order when its action_payload is a cart: order_id, an integer total in minor units, currency and items, as checkoutBinding builds it. The facts are read only when your policy names one, so other verifies record exactly what they did before.
{ "id": "custom-studies", "when": [{ "fact": "order.categories", "op": "contains", "value": "custom_study" }], "require": { "approval": true, "route": { "to": "group:agr_01M6RES3A8C7Q2K4W9R5T1Y6HD" } } }
Errors you might see
| Code | Status | What to do |
|---|---|---|
route_ | 400 | Fix the field error. names: a step outside wait, a missing wait, approve_ on a rule that needs more than one person, or a group, member or approver that doesn't exist. |
approval_ | 403 | The request hasn't reached you. Leave it to the people in routing., or ask an owner. |
approver_ | 409 | Change the rules in error. first, then delete the group. |
approver_ | 409 | Delete a group you don't route to. |
plan_ | 402 | Approval routing is on Pro and above. |
parameter_ | 400 | On Away: a backup who is away too, or a person who isn't on your account. |
policy_ | 400 | A chain breaks a rule, such as n above the people in the step, or escalate beside steps. |
seat_ | 402 | Giving an outside approver an account would go past your seats. |
manage_ | 403 | Your console role can't change policies. Ask the owner for Manage policies. |
recent_ | 401 or 403 | Confirm with your passkey or authenticator, then retry. |
See also
- Approver network
- Plans and usage, for approver seats
- Reminders, to send a pending approval to everyone it waits for again
- Ask a person to approve
- Use group sign-off
- Policies