---
title: "Reject a PENDING_APPROVAL execution (terminal APPROVAL_REJECTED)"
method: POST
path: "/v1/executions/{id}/reject"
---

# Reject a PENDING_APPROVAL execution (terminal APPROVAL_REJECTED)

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

## Request

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

## Path parameters

- `id` string, required

## Request body

- object
  - `reason` string

## Response `200`

Rejected; execution.failed webhook fired.

- 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.

---

[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)
