View as Markdown

Mandate · API reference

Approval routing

Approver groups a rule's route sends approvals to, with escalation, a wait and what happens if nobody answers.

Related guide: Route approvals

The approver group object

Attributes

idstring
agr_…, or a built-in ID.
objectenum
The type of object. One of approver_group.
namestring
The group's name.
built_inboolean
Whether it's a built-in group.
membersarray of objects
The members, in the order listed.
Show child attributes
personstring
The person ref: user:usr_…, user:owner or approver:lnk_….
kindenum
A console member or an outside approver. One of user, approver.
idstring
The user ID (owner for the account owner) or the approver link ID.
namestring
Their email or display name.
leadstring | null
The lead's person ref (a member), for lead escalation steps.
channels_overridearray of enums | null
The channels to try, in order, for this group's outside approvers.
hoursobject | any | null
The group's business hours, for a route's hours.
Show child attributes
time_zonestring
An IANA time zone, such as America/New_York.
scheduleobject
Keys mon to sun, each a list of up to 4 intervals such as ["09:00", "17:00"].
created_attimestamp | null
When it was created (null for built-ins).
updated_attimestamp | null
When it last changed (null for built-ins).

The approver group object

{
  "id": "owners",
  "object": "approver_group",
  "name": "Owners",
  "built_in": true,
  "members": [
    {
      "person": "user:owner",
      "kind": "user",
      "id": "owner",
      "name": "policy-demo@sandbox.example"
    }
  ],
  "lead": null,
  "channels_override": null,
  "hours": null,
  "created_at": null,
  "updated_at": null
}

Events

Sent to your webhook endpoints when they subscribe:

  • mandate.approval.escalated

Create an approver group

POST/v1/mandate/approver_groups

Creates a group a rule's route can send approvals to. Members are console members with the approver role or above ({ "user_id": "owner" } is the account owner) or outside approvers with an active link. Up to 50 groups, 100 members each. Pro and above.

Parameters

Idempotency-Keystringheader
Retry a create safely: the same key + request returns the stored response (24 h, per caller).
namestringRequired
A name your team reads, such as Finance.
membersarray of objectsRequired
Each member: { user_id } or { approver_link_id }.
Show child attributes
user_idstring
A console member's user ID.
approver_link_idstring
An outside approver's link ID (lnk_…).
leadobject | null
A member who gets lead escalation steps: { user_id } or { approver_link_id }.
Show child attributes
user_idstring
A console member's user ID.
approver_link_idstring
An outside approver's link ID (lnk_…).
hoursobject | any | null
Business hours a route can use with hours; null clears them.
Show child attributes
time_zonestring
An IANA time zone, such as America/New_York.
scheduleobject
Keys mon to sun, each a list of up to 4 intervals such as ["09:00", "17:00"].
channels_overridearray of enums | null
The channels to try, in order, for this group's outside approvers.

Returns

The group. See the approver group object.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/mandate/approver_groups" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Finance",
    "members": [
      {
        "user_id": "owner"
      }
    ],
    "lead": {
      "user_id": "owner"
    },
    "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"
          ]
        ]
      }
    }
  }'

Response 201

{
  "id": "agr_01M6VQBCKVH4458E9B4CE5MR94",
  "object": "approver_group",
  "name": "Finance",
  "built_in": false,
  "members": [
    {
      "person": "user:owner",
      "kind": "user",
      "id": "owner",
      "name": "policy-demo@sandbox.example"
    }
  ],
  "lead": "user:owner",
  "channels_override": null,
  "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"
        ]
      ]
    }
  },
  "created_at": "2026-11-07T19:21:46.363Z",
  "updated_at": "2026-11-07T19:21:46.363Z"
}

Retrieve an approver group

GET/v1/mandate/approver_groups/{id}

Retrieves one group, built-in or yours, with its members and lead.

Parameters

idstringpathRequired
The group's ID (agr_…, owners, admins or all_approvers).

Returns

The group. See the approver group object.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/mandate/approver_groups/owners" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "id": "owners",
  "object": "approver_group",
  "name": "Owners",
  "built_in": true,
  "members": [
    {
      "person": "user:owner",
      "kind": "user",
      "id": "owner",
      "name": "policy-demo@sandbox.example"
    }
  ],
  "lead": null,
  "channels_override": null,
  "hours": null,
  "created_at": null,
  "updated_at": null
}

Update an approver group

PATCH/v1/mandate/approver_groups/{id}

Changes the name, members, lead or channels. Open requests keep the route they started with; new requests use the change. Built-in groups can't be edited.

Parameters

idstringpathRequired
The group's ID.
namestring
The group's name.
membersarray of objects
The whole member list: { user_id } or { approver_link_id } each.
leadobject | null
A member, or null for no lead.
hoursobject | any | null
Business hours a route can use with hours; null clears them.
Show child attributes
time_zonestring
An IANA time zone, such as America/New_York.
scheduleobject
Keys mon to sun, each a list of up to 4 intervals such as ["09:00", "17:00"].
channels_overridearray of enums | null
The channels for outside approvers.

Returns

The updated group. See the approver group object.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/mandate/approver_groups" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Research desk", "members": [{ "user_id": "owner" }] }' > step.json
export GROUP_ID=$(jq -r '.id' step.json)
curl -X PATCH "$PROVENANCE_API/v1/mandate/approver_groups/$GROUP_ID" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Research", "lead": { "user_id": "owner" } }'
curl -s -X DELETE "$PROVENANCE_API/v1/mandate/approver_groups/$GROUP_ID" \
  -H "Authorization: Bearer $PROVENANCE_KEY" > /dev/null

Response 200

{
  "id": "agr_01M6VQBCKZ7R6VZCFGXXSQHT1D",
  "object": "approver_group",
  "name": "Research",
  "built_in": false,
  "members": [
    {
      "person": "user:owner",
      "kind": "user",
      "id": "owner",
      "name": "policy-demo@sandbox.example"
    }
  ],
  "lead": "user:owner",
  "channels_override": null,
  "hours": null,
  "created_at": "2026-11-07T19:21:46.367Z",
  "updated_at": "2026-11-07T19:21:46.367Z"
}

Set Away and a backup

PUT/v1/mandate/settings/approver_availability

Sets a person's Away and backup. A console member sets their own (leave out the person); owners, admins and API keys can set anyone's. A backup who is also away is refused. Send away_until: null with no backup to clear it.

Parameters

user_idstring
The member (owner for the account owner); leave out for yourself.
approver_link_idstring
Or an outside approver, by their link ID (lnk_…).
away_untiltimestamp | nullRequired
When they are back; null when they are here.
backupobject | null
Who gets their requests meanwhile: { user_id } or { approver_link_id }.
Show child attributes
user_idstring
A console member's user ID.
approver_link_idstring
An outside approver's link ID (lnk_…).

Returns

The person's Away and backup.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X PUT "$PROVENANCE_API/v1/mandate/settings/approver_availability" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "user_id": "owner", "away_until": "2030-01-05T00:00:00Z" }'
curl -s -X PUT "$PROVENANCE_API/v1/mandate/settings/approver_availability" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "user_id": "owner", "away_until": null }' > /dev/null

Response 200

{
  "id": "user:owner",
  "object": "approver_availability",
  "person": "user:owner",
  "name": "policy-demo@sandbox.example",
  "away": true,
  "away_until": "2030-01-05T00:00:00Z",
  "backup": null,
  "backup_name": null,
  "updated_at": "2026-11-07T19:21:46.376Z"
}

List approver groups

GET/v1/mandate/approver_groups

Lists the built-in groups (owners, admins, all approvers) first, then yours, with their members.

Parameters

No parameters.

Returns

The groups.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/mandate/approver_groups" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "object": "list",
  "data": [
    {
      "id": "owners",
      "object": "approver_group",
      "name": "Owners",
      "built_in": true,
      "members": [
        {
          "person": "user:owner",
          "kind": "user",
          "id": "owner",
          "name": "policy-demo@sandbox.example"
        }
      ],
      "lead": null,
      "channels_override": null,
      "hours": null,
      "created_at": null,
      "updated_at": null
    },
    {
      "id": "admins",
      "object": "approver_group",
      "name": "Admins",
      "built_in": true,
      "members": [],
      "lead": null,
      "channels_override": null,
      "hours": null,
      "created_at": null,
      "updated_at": null
    },
    {
      "id": "all_approvers",
      "object": "approver_group",
      "name": "All approvers",
      "built_in": true,
      "members": [
        {
          "person": "user:owner",
          "kind": "user",
          "id": "owner",
          "name": "policy-demo@sandbox.example"
        }
      ],
      "lead": null,
      "channels_override": null,
      "hours": null,
      "created_at": null,
      "updated_at": null
    },
    {
      "id": "agr_01M6VQBCKVH4458E9B4CE5MR94",
      "object": "approver_group",
      "name": "Finance",
      "built_in": false,
      "members": [
        {
          "person": "user:owner",
          "kind": "user",
          "id": "owner",
          "name": "policy-demo@sandbox.example"
        }
      ],
      "lead": "user:owner",
      "channels_override": null,
      "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"
            ]
          ]
        }
      },
      "created_at": "2026-11-07T19:21:46.363Z",
      "updated_at": "2026-11-07T19:21:46.363Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

List approval routes

GET/v1/mandate/approval_routes

Lists every rule of your active policy that asks for a person, with its route in plain words. Edit a route by saving the policy (PUT /v1/mandate/policies).

Parameters

No parameters.

Returns

The approval rules and their routes.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X PUT "$PROVENANCE_API/v1/mandate/policies" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "note": "big sales go to the owners",
    "document": {
      "rules": [
        {
          "id": "big-sales",
          "when": [
            {
              "fact": "transaction_amount",
              "op": "gt",
              "value": 10000
            }
          ],
          "require": {
            "approval": true,
            "route": {
              "to": "group:owners",
              "wait": "4h",
              "escalate": [
                {
                  "after": "30m",
                  "to": "group:admins"
                }
              ],
              "if_unanswered": "decline"
            }
          }
        }
      ]
    }
  }' > /dev/null
curl "$PROVENANCE_API/v1/mandate/approval_routes" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
curl -s -X DELETE "$PROVENANCE_API/v1/mandate/policies" \
  -H "Authorization: Bearer $PROVENANCE_KEY" > /dev/null

Response 200

{
  "object": "list",
  "data": [
    {
      "id": "rul_01M7MY20KZHKVEY0HGRF107BE2",
      "object": "approval_route",
      "rule_id": "rul_01M7MY20KZHKVEY0HGRF107BE2",
      "conditions": "Amount over 10,000",
      "summary": "Amount over 10,000 → Owners · after 30 min → Admins · waits 4 h · if nobody answers: decline",
      "approvers": 1,
      "route": {
        "to": "group:owners",
        "escalate": [
          {
            "after": "30m",
            "to": "group:admins"
          }
        ],
        "wait": "4h",
        "if_unanswered": "decline"
      },
      "policy_version": 3
    }
  ],
  "has_more": false,
  "next_cursor": null
}

List Away and backups

GET/v1/mandate/settings/approver_availability

Lists who is away and their backups. Owners and admins see everyone; other members see their own.

Parameters

No parameters.

Returns

The people with Away or a backup set.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/mandate/settings/approver_availability" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "object": "list",
  "data": [],
  "has_more": false,
  "next_cursor": null
}

Delete an approver group

DELETE/v1/mandate/approver_groups/{id}

Deletes a group no rule in your active policy routes to. Open requests keep their route.

Parameters

idstringpathRequired
The group's ID.

Returns

The deleted group.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/mandate/approver_groups" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Night desk", "members": [{ "user_id": "owner" }] }' > step.json
export GROUP_ID=$(jq -r '.id' step.json)
curl -X DELETE "$PROVENANCE_API/v1/mandate/approver_groups/$GROUP_ID" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "id": "agr_01M6VQBCM9E7X1K5BSH5PNFN0X",
  "object": "approver_group",
  "deleted": true
}

Was this page helpful? Send us feedback

LLM? Read llms.txt.