---
title: "Approve a PENDING_APPROVAL execution (moves to QUEUED)"
method: POST
path: "/v1/executions/{id}/approve"
---

# Approve a PENDING_APPROVAL execution (moves to QUEUED)

`POST /v1/executions/{id}/approve`

## Request

- Base URL: `https://api.klanexai.com`
- URL: `https://api.klanexai.com/v1/executions/{id}/approve`
- Auth: API key in header `X-API-Key`

## Path parameters

- `id` string, required

## Request body

- object
  - `reason` string

## Response `200`

Approved and queued.

- AcceptedResponse
  - `execution_id` string
  - `status` 'PENDING_APPROVAL' | 'QUEUED' | 'RUNNING' | 'RETRYING' | 'SUCCEEDED' | 'FAILED'

## Other responses

- `401`: Missing or invalid X-API-Key.
- `404`: No such execution for this tenant.
- `409`: Execution is not PENDING_APPROVAL (NOT_PENDING).
- `429`: Per-tenant rate limit exceeded; retry after Retry-After seconds.
- `502`: Persisted but could not be enqueued; safe to retry the request.

---

[API](https://skmtc.dev/klanexai/apis/klanex-api.md) · [All operations](https://skmtc.dev/klanexai/apis/klanex-api/llms.txt) · [OpenAPI document](https://skmtc.dev/klanexai/apis/klanex-api/revisions/daf36597612f?raw)
