Mandate · Guide
Use group sign-off
Available on Pro, Growth and Enterprise
Use group sign-off when an action needs a yes from more than one person, such as an agency director and the client's finance lead. You route one approval to 2 to 5 approver links. Each approver gets their own link and passkey check, and the request is approved once approvals_needed of them approve.
Every surface shows the progress, "1 of 2 approved", with the display names of those who have decided. Nothing else about an approver is shown.
Before you begin: invite each approver and wait for them to accept, as in the approver network guide, and set a step-up rule for the actions that need a yes. Export the account key.
export PROVENANCE_API=https://sandbox-api.provenanceauth.com
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
- Verify with the groupapprover_link_ids + approvals_needed
- Each approver decidestheir own link and passkey
- Verify againvalid once enough approve
1. Route the approval to the group
Verify with approver_link_ids instead of approver_link_id when the rule fires:
| Field | Meaning |
|---|---|
approver_ | 2 to 5 of your accepted approver links |
approvals_ | How many must approve, 1 to the group's size; all of them by default |
deny_ | any (default): the first deny ends it. unreachable: it ends once too few approvers are left to reach approvals_ |
account_ | true counts your own people toward approvals_ too |
{
"object": "mandate_assessment",
"valid": false,
"reason": "approval_pending",
"approval_id": "appr_01M5WN5E9H3K6M9P2R5T8W1Y4A",
"approvals_needed": 2,
"approvals_received": 0,
"group": { "approvals_needed": 2, "approvals_received": 0, "deny_rule": "any", "approvers": 2, "decided": [] },
"deliveries": [
{ "approver_link_id": "lnk_01M5WN4D8F2H5K8M1P4R7T0W3Y", "delivery": { "channel": "email", "delivered": true } },
{ "approver_link_id": "lnk_01M5WN4D8G6J9L2N5Q8S1V4X7Z", "delivery": { "channel": "text", "delivered": true } }
]
}
Each link's grant and each approver's own limits apply, as they do for one approver: an amount above any member's ceiling routes nothing (approver_ceiling_exceeded).
To route without a verify call, send the same fields to POST / with the agent's intent_token.
2. Each approver decides
Each approver opens their own link and approves with their own passkey. Their decision is its own ledger row with their approver_id, and it meters as one approver decision. The page shows who has decided so far:
| After | The request |
|---|---|
Fewer than approvals_ approve | Stays pending; verify answers approval_ with group |
approvals_ approve | approved; the other approvers' links show it's done |
A deny, with deny_ | denied at once |
A deny, with deny_ | denied once the rest can't reach approvals_ |
Expiry, resends and the send limit apply to each approver on their own.
3. Verify again
The same verify call returns valid once the group approved:
curl -s $PROVENANCE_API/v1/mandate/assessments \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"intent_token": "'"$INTENT_TOKEN"'",
"action_description": "Approve the Q4 media buy: $9,000 to Brindlecote Media",
"action_payload": { "type": "payment", "amount": 9000, "payee": "acct_brindlecote_media" },
"context": { "action_type": "payment", "transaction_amount": 9000 }
}'
const approved = await prov.mandate.assessments.create({ intentToken, actionDescription: "Approve the Q4 media buy: $9,000 to Brindlecote Media", actionPayload: { type: "payment", amount: 9000, payee: "acct_brindlecote_media" }, context: { actionType: "payment", transactionAmount: 9000 } });
approved = prov.mandate.assessments.create(intent_token=intent_token, action_description="Approve the Q4 media buy: $9,000 to Brindlecote Media",
action_payload={"type": "payment", "amount": 9000, "payee": "acct_brindlecote_media"},
context={"action_type": "payment", "transaction_amount": 9000})
{
"object": "mandate_assessment",
"valid": true,
"approval_id": "appr_01M5WN5E9H3K6M9P2R5T8W1Y4A"
}
Mix your own people with outside approvers
With account_approvers: true, your own people count toward approvals_needed once. They decide in the console or the approval embed as today; the outside approvers decide on their links. Without it, your people can only withdraw the request with a deny (approval_routed_to_approver on an approve).
A policy can read the group's size at verify as approval.group_size.
Errors you might see
| Code | Status | What to do |
|---|---|---|
parameter_ | 400 | Name 2 to 5 distinct links, set approvals_ from 1 to the group's size, and don't send approver_ beside approver_. |
resource_ | 404 | A link isn't yours or isn't accepted yet. |
link_ | 403 | A link was revoked or declined. |
plan_ | 402 | Group sign-off is on Pro and up. |
approval_ | 403 | Your own people approve only with account_. |