---
title: "Deny an action"
method: POST
path: "/approvals/{id}/deny"
tags: ["Approvals"]
---

# Deny an action

`POST /approvals/{id}/deny`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/approvals/{id}/deny`
- Auth: API key in header `Authorization`

Denies the action (never replayed). Records the optional reason and unblocks the originating chat turn if any.

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `reason` string: Optional reason recorded on the approval

## Response `200`

Success

- Approval
  - `object` string, required
  - `id` string, required
  - `approval_id` string, required
  - `status` string, required
  - `kind` string, required
  - `action_type` string, nullable, required
  - `title` string, nullable, required
  - `app_slug` string, nullable, required
  - `tool_name` string, nullable, required
  - `result` object, nullable, required
  - `error` string, nullable, required
  - `reason` string, nullable, required
  - `chat_id` string, nullable, required
  - `created_at` string, required
  - `resolved_at` string, nullable, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per credential. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) · [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/2219f18ad651?raw)
