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

# Confirm Action

> Approve a pending action

## Overview

Approves a pending action and runs exactly what was shown on its card. Confirming twice does nothing the second time. Only the person the action is for, or an admin, can confirm it.

> [!NOTE]
>
> Changes data, so it needs a key that isn't read-only.

Operation name: `action.confirm`.

## Authorization

**x-api-key** `string` *required*

Your Composer API key

## Headers

**Content-Type** `string` *required*

Must be set to application/json

## Body

**token** `string` *required*

The action's token, from List Pending Actions.

```json Example theme={null}
"token": "pa_8f7e6d5c"
```

```json Example Request theme={null}
{
  "token": "pa_8f7e6d5c"
}
```

***

## Response

**confirmed** `boolean`

True when the action ran.

**summary** `string`

What was done.

**result** `object`

The action's result.

```json Example Success Response theme={null}
{
  "confirmed": true,
  "summary": "Email Dana about Thursday's service",
  "result": {}
}
```

***

## Example cURL

```bash cURL theme={null}
curl --request POST 'https://composer.personal.ai/lab/api/v1/op/action.confirm' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <your-api-key>' \
--data '{"token": "pa_8f7e6d5c"}'
```

***

## Error Codes

| Code | Description |
| - | - |
| 400 | The body doesn't match the fields above, or the operation failed. The response body says why. |
| 401 | Missing or invalid API key |
| 403 | This key isn't allowed to call this operation (for example, a read-only key) |


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