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

# Decide an approval

> Approves or refuses, once: the link stops working and the receipt reaches the project's spaces.



## OpenAPI

````yaml openapi/en/control.json POST /v1/approvals/link/decide
openapi: 3.1.0
info:
  title: Niadra control API
  version: '1'
  description: >-
    Tenants, projects, sources, keys, people, configuration and usage. It never
    receives customer content.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/approvals/link/decide:
    post:
      tags:
        - accounts
      summary: Decide an approval
      description: >-
        Approves or refuses, once: the link stops working and the receipt
        reaches the project's spaces.


        **Authentication.** No authentication.
      operationId: decide_approval_v1_approvals_link_decide_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApprovalDecision'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DecisionReceipt'
          description: Successful Response
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security: []
components:
  schemas:
    ApprovalDecision:
      additionalProperties: false
      properties:
        code:
          maxLength: 12
          minLength: 4
          title: Code
          type: string
        decision:
          enum:
            - approve
            - reject
          title: Decision
          type: string
        note:
          anyOf:
            - maxLength: 500
              type: string
            - type: 'null'
          title: Note
        token:
          maxLength: 128
          minLength: 20
          title: Token
          type: string
      required:
        - token
        - code
        - decision
      title: ApprovalDecision
      type: object
    DecisionReceipt:
      additionalProperties: false
      properties:
        approval_id:
          format: uuid
          title: Approval Id
          type: string
        decided_at:
          format: date-time
          title: Decided At
          type: string
        document_hash:
          title: Document Hash
          type: string
        kind:
          enum:
            - purposes
            - policy_loosening
            - retention
            - operators
            - transfer
            - access_review
            - emergency_access
            - ripd
          title: Kind
          type: string
        receipt:
          description: What the receipt chain of the project's spaces records.
          title: Receipt
          type: string
        status:
          enum:
            - pending
            - approved
            - rejected
            - expired
          title: Status
          type: string
      required:
        - approval_id
        - kind
        - status
        - decided_at
        - document_hash
        - receipt
      title: DecisionReceipt
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object

````