---
title: "Deny an agent decision"
method: POST
path: "/v1/approvals/{approvalId}/deny"
tags: ["Agent"]
---

# Deny an agent decision

`POST /v1/approvals/{approvalId}/deny`

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/approvals/{approvalId}/deny`
- Auth: API key in cookie `__Host-better-auth.session_token`

Only the user who owns the requesting grant can deny. Denial is terminal: the agent cannot clear it by asking again.

## Path parameters

- `approvalId` string, required

## Response `200`

Response for status 200

- object
  - `$schema` string, uri: Canonical JSON Schema URL for this response body. The server also sends it in the `Link: rel="describedby"` response header.
  - `data` object, required
    - `id` string, required
    - `status` 'completed' | 'denied' | 'expired', required
    - `result` object

## Other responses

- `default`: Problem details (RFC 9457). Any 4xx/5xx response is one `application/problem+json` document.

---

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