# Use group sign-off

Route one approval to two to five people outside your account. Each approves on their own link with their own passkey, and the request is approved once enough of them say yes.

*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](https://provenanceauth.com/docs/mandate/guides/approver-network.md) guide, and set a [step-up rule](https://provenanceauth.com/docs/mandate/guides/step-up-approval.md) for the actions that need a yes. Export the account key.

```bash
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:

| Field | Meaning |
| --- | --- |
| `approver_link_ids` | 2 to 5 of your accepted approver links |
| `approvals_needed` | How many must approve, 1 to the group's size; all of them by default |
| `deny_rule` | `any` (default): the first deny ends it. `unreachable`: it ends once too few approvers are left to reach `approvals_needed` |
| `account_approvers` | `true` counts your own people toward `approvals_needed` too |

**curl**

```bash norun
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
  }'
```

**Node**

```ts
const pending = 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 },
  approverLinkIds: ["lnk_01M5WN4D8F2H5K8M1P4R7T0W3Y", "lnk_01M5WN4D8G6J9L2N5Q8S1V4X7Z"],
  approvalsNeeded: 2,
});
```

**Python**

```python
pending = 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},
    approver_link_ids=["lnk_01M5WN4D8F2H5K8M1P4R7T0W3Y", "lnk_01M5WN4D8G6J9L2N5Q8S1V4X7Z"],
    approvals_needed=2,
)
```

```json
{
  "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`](https://provenanceauth.com/docs/api/approver-network.md#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:

| After | The request |
| --- | --- |
| Fewer than `approvals_needed` approve | Stays `pending`; verify answers `approval_pending` with `group` |
| `approvals_needed` approve | `approved`; the other approvers' links show it's done |
| A deny, with `deny_rule: any` | `denied` at once |
| A deny, with `deny_rule: unreachable` | `denied` 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**

```bash norun
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 }
  }'
```

**Node**

```ts
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 } });
```

**Python**

```python
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})
```

```json
{
  "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_invalid` | 400 | Name 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_missing` | 404 | A link isn't yours or isn't accepted yet. |
| `link_revoked` | 403 | A link was revoked or declined. |
| `plan_required` | 402 | Group sign-off is on Pro and up. |
| `approval_routed_to_approver` | 403 | Your own people approve only with `account_approvers: true`. |

## See also

- [Route to an approver](https://provenanceauth.com/docs/mandate/guides/approver-network.md)
- [Batch approvals and the inbox](https://provenanceauth.com/docs/mandate/guides/batch-approvals.md)
- [Ask a person to approve](https://provenanceauth.com/docs/mandate/guides/step-up-approval.md)
