---
title: "Confirm a proposed AI action: validate permission, atomically claim, execute, persist outcome. The execution uses the CONFIRMING user's auth — never the model's."
method: POST
path: "/projects/{project_id}/ai/pending-actions/{action_public_id}/confirm"
tags: ["AI Chat"]
---

# Confirm a proposed AI action: validate permission, atomically claim, execute, persist outcome. The execution uses the CONFIRMING user's auth — never the model's.

`POST /projects/{project_id}/ai/pending-actions/{action_public_id}/confirm`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/ai/pending-actions/{action_public_id}/confirm`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `action_public_id` string, required

## Response `200`

- PendingActionResponse: A proposed AI write action awaiting human confirmation.
  - `confirmed_at` string, nullable
  - `created_at` string, required
  - `error` string, nullable
  - `executed_at` string, nullable
  - `method` string, required
  - `operation_id` string, required
  - `params` unknown, required
  - `plan_public_id` string, nullable: Set when this action is one step of a multi-step plan (chained actions); all steps of the plan share this id. Absent for standalone single actions.
  - `public_id` string, required
  - `required_permission` string, nullable
  - `result` unknown
  - `status` string, required
  - `step_index` integer, required: 0-based order of this step within its plan (0 for standalone actions).
  - `summary` string, required

## Other responses

- `401`
- `403`
- `404`
- `409`
- `503`

## Changes

- **2026-07-27** `1b060c0a4ba3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/ai/pending-actions/:action_public_id/confirm/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
