> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inviolet.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Deny a pending request



## OpenAPI

````yaml /openapi.yaml post /v1/approvals/{id}/deny
openapi: 3.1.0
info:
  title: Inviolet Gateway API
  description: |
    Intent-based access control for AI agents. Every endpoint lives under
    `/v1/*` and authenticates via `Authorization: Bearer <api-key>`. Keys
    are provisioned in the UI at `/developer/api-keys`.
  version: 0.6.0
  contact:
    name: Inviolet
    url: https://inviolet.ai
  license:
    name: Proprietary
servers:
  - url: https://gateway.inviolet.ai
    description: Production
  - url: http://localhost:8080
    description: Local development
security:
  - BearerAuth: []
tags:
  - name: Intent
    description: Core evaluation loop.
  - name: Intentions
    description: Declarative intent patterns.
  - name: Approvals
    description: Human-in-the-loop approvals.
  - name: Webhooks
    description: Outbound HMAC-signed event delivery.
paths:
  /v1/approvals/{id}/deny:
    post:
      tags:
        - Approvals
      summary: Deny a pending request
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - reason
              properties:
                reason:
                  type: string
                  minLength: 8
      responses:
        '200':
          description: Denied.
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: ApiKey
      description: |
        API key minted at /developer/api-keys. Three scopes: `read_only`,
        `policy_write`, `admin`.

````