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

# Decide Tool Call Approval

> Approve or reject a pending call; an approval is usable for one hour.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/workspaces/{workspace}/tool-call-approvals/{approval_id}/decide
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/workspaces/{workspace}/tool-call-approvals/{approval_id}/decide:
    post:
      tags:
        - v1
        - protected
        - tool-call-approvals
      summary: Decide Tool Call Approval
      description: Approve or reject a pending call; an approval is usable for one hour.
      operationId: >-
        decide_tool_call_approval_v1_tool_call_approvals__approval_id__decide_post
      parameters:
        - in: path
          name: approval_id
          required: true
          schema:
            title: Approval Id
            type: string
        - description: Slug of the workspace the request acts in
          in: path
          name: workspace
          required: true
          schema:
            description: Slug of the workspace the request acts in
            maxLength: 120
            pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
            title: Workspace
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolCallApprovalDecision'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolCallApprovalResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    ToolCallApprovalDecision:
      additionalProperties: false
      properties:
        approved:
          title: Approved
          type: boolean
        comment:
          anyOf:
            - maxLength: 2000
              type: string
            - type: 'null'
          title: Comment
      required:
        - approved
      title: ToolCallApprovalDecision
      type: object
    ToolCallApprovalResponse:
      properties:
        arguments:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Arguments
        can_decide:
          title: Can Decide
          type: boolean
        client_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Id
        client_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Name
        comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Comment
        connector:
          title: Connector
          type: string
        created_at:
          format: date-time
          title: Created At
          type: string
        decided_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Decided At
        decided_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Decided By
        expires_at:
          format: date-time
          title: Expires At
          type: string
        hint:
          anyOf:
            - type: string
            - type: 'null'
          title: Hint
        id:
          title: Id
          type: string
        mcp_instance_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Mcp Instance Id
        policy_name:
          title: Policy Name
          type: string
        reason:
          title: Reason
          type: string
        requested_by:
          title: Requested By
          type: string
        status:
          $ref: '#/components/schemas/ToolCallApprovalStatus'
        tool:
          title: Tool
          type: string
        url:
          title: Url
          type: string
      required:
        - id
        - status
        - requested_by
        - client_id
        - client_name
        - mcp_instance_id
        - connector
        - tool
        - policy_name
        - arguments
        - reason
        - hint
        - can_decide
        - decided_by
        - decided_at
        - comment
        - expires_at
        - created_at
        - url
      title: ToolCallApprovalResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ToolCallApprovalStatus:
      enum:
        - pending
        - approved
        - rejected
        - consumed
        - expired
      title: ToolCallApprovalStatus
      type: string
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.