# Confirm an AI app's change

How a change your AI app asks for waits for you, where you confirm or decline it, which changes ask for your passkey and what the app reads back.

When an AI app you connected asks to change something in your business account, the change waits for you. You see what will change and confirm or decline it; the app can only read your answer.

**Before you begin:** connect an AI app to your business account with a write permission ([Connect an MCP client](https://provenanceauth.com/docs/provenance-mcp/connect.md), [Connected apps](https://provenanceauth.com/docs/account/connected-apps.md)).

## How a change waits

1. **The app asks.** A write tool, such as `mandate_pause`, returns Provenance's own preview of the change, a `confirmation_id` and a link. Nothing has changed.
2. **You answer.** You confirm or decline in one of the places below. A request waits 10 minutes, then expires.
3. **The change runs once.** It runs as your connection, with your current role. If the change differs from the one you were shown, nothing is applied.
4. **The app reads the outcome.** It repeats the same call with the `confirmation_id` and gets the request's status ([What the app reads](#what-the-app-reads)).

Repeating the call reads the state of the request; your answer is what applies the change.

## Where you confirm

| Place | When you see it | What you do |
| --- | --- | --- |
| A form in your AI app | Your app shows forms from its tools and the change needs no passkey | Tick **Confirm this change** and submit. A change to several records asks you to type the count. |
| The confirm view in the chat | Your app draws views from its tools | Press **Confirm** or **Decline** on the card. |
| The console | Always | Open the link in the tool's answer, or **Approvals → AI app changes** (every member has it; Home lists waiting changes under Needs you). |

In the console the card says what the app wants to do in one sentence, lists each record on its own line, and has **Confirm** and **Decline**. Only you can open a request your app made; another member, an owner or an admin sees that it isn't available.

## Passkey

On live, three kinds of change ask for your passkey in the same step:

- a change that loosens a control, such as publishing rules, raising a card limit or accepting a held capture
- a change to more than 10 records
- approving a held order, even one

You sign in the console, on Provenance's own page. A form or a view in your AI app can't take the passkey, so they give you the link instead. A one-time code or a recovery code can't stand in for it. With no passkey yet, add one in **Settings → Sign-in & security**, then confirm.

The sandbox never asks for the passkey.

## What the app reads

```json
{
  "object": "write_confirmation",
  "tool": "mandate_pause",
  "summary": "Pause 2 agents.",
  "status": "awaiting_confirmation",
  "confirmation_id": "mcf_01JD7Q2M7S3KX9V4R8N6T5W2A1",
  "confirm_url": "https://app.provenanceauth.com/connect/confirm?c=mcf_01JD7Q2M7S3KX9V4R8N6T5W2A1",
  "passkey_required": false,
  "expires_at": "2026-11-28T15:14:05Z",
  "retry_after_seconds": 5
}
```

| `status` | Meaning | Next step for the app |
| --- | --- | --- |
| `confirmation_required` | The first answer: the preview and the link | Show the link as it is, then repeat the call with `confirmation_id` |
| `awaiting_confirmation` | You haven't answered | Repeat the call after `retry_after_seconds` |
| `applied` | You confirmed and the change ran; `result` has the outcome, per record for several | Report it |
| `failed` | You confirmed and the change's own check refused it; `error_code` says why | Report it |
| `declined` | You said no | Stop |
| `expired` | 10 minutes passed | Call again without `confirmation_id` for a new preview |

`dry_run: true` on any write tool returns the preview alone and stores nothing.

## Write limit

Each connected app may start 10 changes a minute for you (previews and dry runs both count), on top of each API route's own limits. The eleventh in the same minute changes nothing and answers [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded) with `retry_after_seconds`, and the response carries `Retry-After`. Reading a request's outcome with its `confirmation_id` isn't limited, and each connected app has its own count.

## Records

Each answer writes an **MCP action** row in the [audit log](https://provenanceauth.com/docs/account/console.md#change-settings): the tool, the app, how many records, how you confirmed and the outcome. **Approvals → History** lists your own answered requests.

## Errors you might see

The console's confirm calls return these, and a write tool returns the first.

| Code | What happened | What to do |
| --- | --- | --- |
| [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded) | The app started 10 changes in the last minute | Wait `retry_after_seconds`, then ask again |
| [`mcp_confirmation_unavailable`](https://provenanceauth.com/docs/platform/errors.md#mcp_confirmation_unavailable) | The request expired, was already answered, or was made for another member | Ask your AI app to make the change again |
| [`mcp_confirmation_passkey_required`](https://provenanceauth.com/docs/platform/errors.md#mcp_confirmation_passkey_required) | The change needs your passkey | Confirm with your passkey, or add one first |
| [`mcp_confirmation_changed`](https://provenanceauth.com/docs/platform/errors.md#mcp_confirmation_changed) | The change differs from its preview, or the app's access changed | Ask your AI app to make the change again and check the new preview |

## See also

- [Connected apps](https://provenanceauth.com/docs/account/connected-apps.md): who connected which app, and the account's MCP access.
- [Connect an MCP client](https://provenanceauth.com/docs/provenance-mcp/connect.md): add Provenance to Claude, ChatGPT or Cursor.
