> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xpander.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Approvals on governance records

> A change to a governance record that a rule names waits until an approver decides, with a reason.

An approval rule holds a change to a governance record, such as moving an AI system to **Approved** or accepting a risk. The record keeps its old value until an approver decides. The person who asked never decides their own change, and every decision keeps its approver, reason and conditions on the record.

Screenshots show sample data.

Approvals on records are part of AI governance: they appear only in organizations that have AI governance (the `governanceCore` entitlement). Without it, the records pages and the API routes below answer 403.

## Add a rule

Owners and admins manage rules. Members see the list but no controls.

1. Open [Policies](https://platform.xpander.ai/governance/policies) (**Platform > AI governance > Policies**) and go to **Approval rules**.
2. Click **New rule**.
3. Choose the **Record type**, the **Change** (**Status change** with the **To status**, or **Accept a risk**) and the **Approvers** (people, groups, or both).
4. Click **Add rule**.

![New approval rule dialog with Record type AI System, Change Status change, To status In review and the approver Maya Cohen](https://mintcdn.com/xpanderai-099931d1/beXKpG6v3hsRnyPu/images/run/governance-approvals/new-rule.png?fit=max\&auto=format\&n=beXKpG6v3hsRnyPu\&q=85\&s=88a4c6ebfc6ebb57c8eedd4fc6caf40d)

![Approval rules section listing Status to Approved, Accept a risk and Status to In review with their approvers and On or Off](https://mintcdn.com/xpanderai-099931d1/beXKpG6v3hsRnyPu/images/run/governance-approvals/rules-list.png?fit=max\&auto=format\&n=beXKpG6v3hsRnyPu\&q=85\&s=9c05bc0c0bb9f0cf86e574ac6aa0f7d4)

Each row has a **...** menu with **Edit approvers**, **Turn off** or **Turn on**, and **Delete**. Deleting a rule cancels its pending requests; decided ones stay on their records.

## What the requester sees

A change that a rule names does not apply. The record keeps its value and shows a grey line: "Waiting for approval: *change*. Asked by *name*."

The requester sees **Cancel request** and never an **Approve** or **Reject** button: "You asked for this change. Another approver decides." This holds everywhere: in the app, in Slack, in Microsoft Teams and in the API (403), also when the requester is on the approver list. When the requester is the only approver, the request goes to the organization's owners and admins instead. Owners and admins can decide any request except their own, for example when its approvers are away.

A change that no rule names applies at once, as before.

![A record with the grey lines Waiting for approval: Status to Approved. Asked by you. and You asked for this change. Another approver decides., and Cancel request](https://mintcdn.com/xpanderai-099931d1/beXKpG6v3hsRnyPu/images/run/governance-approvals/requester-pending.png?fit=max\&auto=format\&n=beXKpG6v3hsRnyPu\&q=85\&s=4ad90626ee17a2ab9cfc598ca560482b)

## Decide

Each approver gets the request within about a minute, in the app inbox, by email, in Slack and in Microsoft Teams (when your organization connected Teams). A request names the record, the change and who asked.

| Where | How to decide |
| - | - |
| App | **Settings > Approvals** lists **Record changes waiting for you**; a row opens the record. On the record, **Approve** or **Reject**. The bell item opens the record too. |
| Slack | The message has **Approve**, **Reject** and **Open in xpander**. A tap opens a window with a required **Reason**; the decision is made as your linked xpander account. If your Slack account is not linked, the answer has a link to connect it. |
| Microsoft Teams | The card in your Teams chat with xpander has a **Reason** field, **Approve**, **Reject** and **Open in xpander**. Write the reason, then tap; the decision is made as your linked xpander account, and the card then names the record, the change and the decision. If your Teams account is not linked, the answer tells you how to link it. |
| Email | The email names the change and links to the record in the app. |

A reason is required to approve and to reject; **Approve** stays disabled while it is empty. The first decision wins. A second approver sees "Already decided by *name*." Once a request is decided, the other approvers' notices close.

![Settings > Approvals with an agent action under Waiting for you and two rows under Record changes waiting for you](https://mintcdn.com/xpanderai-099931d1/beXKpG6v3hsRnyPu/images/run/governance-approvals/approvals-inbox.png?fit=max\&auto=format\&n=beXKpG6v3hsRnyPu\&q=85\&s=230f46a3c8b205118e936b4aa876bdaf)

![Approve change dialog with a Reason, a condition with owner Omer Katz and due date 12/15/2026](https://mintcdn.com/xpanderai-099931d1/beXKpG6v3hsRnyPu/images/run/governance-approvals/approve-dialog.png?fit=max\&auto=format\&n=beXKpG6v3hsRnyPu\&q=85\&s=56c778ecc794b47c95efb1abc01a4943)

![Slack message: Omer Katz asks to change Claims triage assistant: status to Approved, with Approve, Reject and Open in xpander](https://mintcdn.com/xpanderai-099931d1/beXKpG6v3hsRnyPu/images/run/governance-approvals/slack-request.png?fit=max\&auto=format\&n=beXKpG6v3hsRnyPu\&q=85\&s=de10cb38059025ef9c2a4b7bbd6dc5dc)

![Slack window Approve change with the record and change, a required Reason and To add conditions, use Open in xpander](https://mintcdn.com/xpanderai-099931d1/beXKpG6v3hsRnyPu/images/run/governance-approvals/slack-reason.png?fit=max\&auto=format\&n=beXKpG6v3hsRnyPu\&q=85\&s=6ba5318fb2329bef0284b1ba075f3a87)

## Conditions

An approval can carry zero or more conditions, each with text and, optionally, an owner and a due date. To add conditions, approve in the app; Slack and Teams take the reason only.

## Decision history

The record's **Decisions** tab lists every request: the change, who asked, who decided and when, the outcome, the reason, and the conditions with their owners and due dates. A request cancelled by its requester reads "Cancelled by the requester"; one cancelled because its rule was deleted says so. An approved change is saved as a new version of the record with the change source `approval`, so the record's history shows it.

![The record's Decisions tab: Status to Approved, Approved by Dana Levi, the reason and the condition with its owner and due date](https://mintcdn.com/xpanderai-099931d1/beXKpG6v3hsRnyPu/images/run/governance-approvals/decisions.png?fit=max\&auto=format\&n=beXKpG6v3hsRnyPu\&q=85\&s=0b53c72a674ba09739cf472ae9f69e6c)

## When an agent asks for the change

An agent can ask for a gated change for you in chat or in Slack, for example "accept the risk on RSK-0003". It asks as you, so the same rules apply:

1. The agent says the change waits for an approver, and its run pauses. The record keeps its value.
2. When an approver decides, the run continues in the same conversation within about a minute.
3. The agent tells you the outcome, who decided and the reason, and passes on any conditions. A rejected change is never applied.

This works only when the platform knows who you are: a run started by a schedule, a webhook or an API key that names no person cannot ask.

## Action approvals: Requester can approve

Approvals on records are separate from approvals on an agent's actions ([Approvals](https://docs.xpander.ai/use/approvals.md)). For those, an approval rule has **Requester can approve**:

* **On**: whoever starts the run approves their own call.
* **Off**: they never decide their own request, and the people named on the rule (or the organization's admins) decide.

A schedule or webhook has no caller, so name an approver on the rule for those runs.

An action approval can also reach approvers in Microsoft Teams: on the rule, check **Microsoft Teams** under **Where to ask**. The Teams card works as described in [Decide](#decide).

## API

The v1 routes take an xpander API key in `x-api-key`. Every call that acts as a person takes a personal API key: deciding, asking for a gated change (the record `PATCH`), cancelling, and listing with `assigned_to_me=true`. The organization API key gets `403` with `approval_needs_person` on these calls.

| Route | What it does |
| - | - |
| `GET /v1/governance/approvals/rules` | List the rules; filter `record_type_id` |
| `POST /v1/governance/approvals/rules` | Create a rule (owners and admins) |
| `PATCH /v1/governance/approvals/rules/{rule_id}` | Change approvers or turn a rule on or off |
| `DELETE /v1/governance/approvals/rules/{rule_id}` | Delete a rule; its pending requests are cancelled |
| `PATCH /v1/governance/records/{record_id}` | Change a record; a gated change answers `202` with the request |
| `GET /v1/governance/approvals/requests` | List requests; filters `record_id`, `state`, `assigned_to_me`, `limit` |
| `GET /v1/governance/approvals/requests/{request_id}` | Read one request with its decision |
| `POST /v1/governance/approvals/requests/{request_id}/approve` | Approve with a reason and conditions |
| `POST /v1/governance/approvals/requests/{request_id}/reject` | Reject with a reason |
| `POST /v1/governance/approvals/requests/{request_id}/cancel` | Cancel your own pending request |
| `GET /v1/governance/records/{record_id}/approvals` | The record's requests and decisions |

> [accordion] List rules
>
> ```bash theme={"dark"}
> curl "https://api.xpander.ai/v1/governance/approvals/rules" \
>   -H "x-api-key: YOUR_API_KEY"
> ```

> [accordion] Create a rule
>
> ```bash theme={"dark"}
> curl -X POST "https://api.xpander.ai/v1/governance/approvals/rules" \
>   -H "x-api-key: YOUR_API_KEY" -H "Content-Type: application/json" \
>   -d '{"record_type_id": "RECORD_TYPE_ID", "kind": "status_change", "to_value": "approved", "approver_user_ids": ["USER_ID"], "approver_group_ids": [], "enabled": true}'
> ```

> [accordion] Change a rule
>
> ```bash theme={"dark"}
> curl -X PATCH "https://api.xpander.ai/v1/governance/approvals/rules/RULE_ID" \
>   -H "x-api-key: YOUR_API_KEY" -H "Content-Type: application/json" \
>   -d '{"enabled": false}'
> ```

> [accordion] Delete a rule
>
> ```bash theme={"dark"}
> curl -X DELETE "https://api.xpander.ai/v1/governance/approvals/rules/RULE_ID" \
>   -H "x-api-key: YOUR_API_KEY"
> ```

> [accordion] Ask for a gated change
>
> ```bash theme={"dark"}
> curl -X PATCH "https://api.xpander.ai/v1/governance/records/RECORD_ID" \
>   -H "x-api-key: YOUR_PERSONAL_API_KEY" -H "Content-Type: application/json" \
>   -d '{"status": "approved"}'
> ```
>
> A gated change answers `202` with `request_id`, `state: "pending"` and "This change waits for an approver's decision."

> [accordion] List the requests waiting for you
>
> ```bash theme={"dark"}
> curl "https://api.xpander.ai/v1/governance/approvals/requests?assigned_to_me=true&state=pending" \
>   -H "x-api-key: YOUR_PERSONAL_API_KEY"
> ```

> [accordion] Read a request
>
> ```bash theme={"dark"}
> curl "https://api.xpander.ai/v1/governance/approvals/requests/REQUEST_ID" \
>   -H "x-api-key: YOUR_PERSONAL_API_KEY"
> ```

> [accordion] Approve with a condition
>
> ```bash theme={"dark"}
> curl -X POST "https://api.xpander.ai/v1/governance/approvals/requests/REQUEST_ID/approve" \
>   -H "x-api-key: YOUR_PERSONAL_API_KEY" -H "Content-Type: application/json" \
>   -d '{"reason": "The model card and the DPIA are attached.", "conditions": [{"text": "Review in 90 days", "owner_id": "USER_ID", "due_date": "2027-03-01"}]}'
> ```
>
> The requester gets `403`. A `409` means the request is already decided, or the record changed after the request (it was archived or got a new version): then nothing applies and the request stays pending, so reject it and ask again.

> [accordion] Reject
>
> ```bash theme={"dark"}
> curl -X POST "https://api.xpander.ai/v1/governance/approvals/requests/REQUEST_ID/reject" \
>   -H "x-api-key: YOUR_PERSONAL_API_KEY" -H "Content-Type: application/json" \
>   -d '{"reason": "The bias test results are missing."}'
> ```

> [accordion] Cancel your request
>
> ```bash theme={"dark"}
> curl -X POST "https://api.xpander.ai/v1/governance/approvals/requests/REQUEST_ID/cancel" \
>   -H "x-api-key: YOUR_PERSONAL_API_KEY"
> ```

> [accordion] A record's decisions
>
> ```bash theme={"dark"}
> curl "https://api.xpander.ai/v1/governance/records/RECORD_ID/approvals" \
>   -H "x-api-key: YOUR_API_KEY"
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.