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

# Approve a pending internal approval request

> Approves a pending INTERNAL approval request as the authenticated agent. Executes the deferred tool with the originally captured arguments; on success the approval transitions to `approved` and the result is attached; on tool failure it transitions to `failed` and a failureReason is recorded.



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/approval/internal/{id}/approve
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/approval/internal/{id}/approve:
    post:
      tags:
        - Approval
      summary: Approve a pending internal approval request
      description: >-
        Approves a pending INTERNAL approval request as the authenticated agent.
        Executes the deferred tool with the originally captured arguments; on
        success the approval transitions to `approved` and the result is
        attached; on tool failure it transitions to `failed` and a failureReason
        is recorded.
      operationId: post_approval_internal_approve
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApprovalInternalActionRequest'
      responses:
        '200':
          description: Internal approval approved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalInternalActionResponse'
        '400':
          description: Missing approvalRequestId or response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalErrorResponse'
        '409':
          description: Internal approval not found or already responded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ApprovalInternalActionRequest:
      type: object
      properties:
        notes:
          type: string
          description: Optional reviewer note attached to the approve/reject action.
      additionalProperties: true
      example:
        notes: Cannot approve — pricing is outside the agreed range.
    ApprovalInternalActionResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        status:
          type: string
          enum:
            - approved
            - rejected
            - failed
        result: {}
        failureReason:
          type: string
      required:
        - success
        - status
      additionalProperties: true
      example:
        success: true
        status: approved
        result:
          bookingId: bk_64a1b2c3d4e5f60012345678
    ApprovalErrorResponse:
      type: object
      description: >-
        Error envelope for the Approval system. The internal approve/reject
        paths return `code` enums (`already_resolved`, `forbidden`, `not_found`)
        when a row was already consumed or the caller is not the owner; the
        public respond endpoint returns the same envelope.
      properties:
        error:
          type: string
        message:
          type: string
        code:
          type: string
        success:
          type: boolean
          enum:
            - false
      required:
        - error
      additionalProperties: true
      example:
        error: Approval already resolved
        code: already_resolved
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````