View as Markdown

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
  1. Verify with the group
    approver_link_ids + approvals_needed
  2. Each approver decides
    their own link and passkey
  3. Verify again
    valid once enough approve

1. Route the approval to the group

Verify with approver_link_ids instead of approver_link_id when the rule fires:

FieldMeaning
approver_link_ids2 to 5 of your accepted approver links
approvals_neededHow many must approve, 1 to the group's size; all of them by default
deny_ruleany (default): the first deny ends it. unreachable: it ends once too few approvers are left to reach approvals_needed
account_approverstrue counts your own people toward approvals_needed too
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 },
    "approver_link_ids": ["lnk_01M5WN4D8F2H5K8M1P4R7T0W3Y", "lnk_01M5WN4D8G6J9L2N5Q8S1V4X7Z"],
    "approvals_needed": 2
  }'
{
  "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 /v1/mandate/approver_links/route 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:

AfterThe request
Fewer than approvals_needed approveStays pending; verify answers approval_pending with group
approvals_needed approveapproved; the other approvers' links show it's done
A deny, with deny_rule: anydenied at once
A deny, with deny_rule: unreachabledenied once the rest can't reach approvals_needed

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 }
  }'
{
  "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

CodeStatusWhat to do
parameter_invalid400Name 2 to 5 distinct links, set approvals_needed from 1 to the group's size, and don't send approver_link_id beside approver_link_ids.
resource_missing404A link isn't yours or isn't accepted yet.
link_revoked403A link was revoked or declined.
plan_required402Group sign-off is on Pro and up.
approval_routed_to_approver403Your own people approve only with account_approvers: true.

See also