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

# Test Inbound Call Webhook

> Send a synthetic inbound-call payload to verify the agent's inbound_call webhook returns a valid response. This strictly validates returned dynamic_variables against the saved prompt/greeting placeholders and validates/resolves returned agent_overrides.



## OpenAPI

````yaml /docs/openapi.json post /api/v1/agent/{agent_id}/webhook/test-inbound-call
openapi: 3.1.0
info:
  title: Voice AI Developer API
  description: >-
    Generate realistic speech and clone voices. AI voice agents with retrieval
    augmented generation (RAG) and model context protocol (MCP) included.
  version: 1.5.0
  contact: {}
servers:
  - url: https://dev.voice.ai
    description: HTTP API endpoints
security:
  - BearerAuth: []
tags:
  - name: Text To Speech
    description: Text-to-speech endpoints for voice cloning and speech generation.
  - name: Pronunciation Dictionaries
    description: Manage versioned pronunciation dictionaries for TTS and voice agents.
  - name: Agent Management
    description: Create, update, deploy, and manage voice agents.
  - name: Models
    description: Discover supported LLM and TTS model options.
  - name: Agent Connection
    description: Connect to agents and manage active calls.
  - name: Agent Analytics
    description: >-
      Analytics and reporting for agent performance, call history, and
      statistics.
  - name: Agent Knowledge Base
    description: >-
      Manage knowledge bases for retrieval augmented generation (RAG) with your
      agents.
  - name: Phone Number Management
    description: >-
      Search, select, and manage phone numbers from your plan allocation.
      Release numbers to free up slots.
  - name: Managed Tools
    description: >-
      Connect Google Calendar, Sheets, and Gmail to agents and inspect
      connection state.
paths:
  /api/v1/agent/{agent_id}/webhook/test-inbound-call:
    post:
      tags:
        - Agent Management
      summary: Test Inbound Call Webhook
      description: >-
        Send a synthetic inbound-call payload to verify the agent's inbound_call
        webhook returns a valid response. This strictly validates returned
        dynamic_variables against the saved prompt/greeting placeholders and
        validates/resolves returned agent_overrides.
      operationId: >-
        test_inbound_call_webhook_api_v1_agent__agent_id__webhook_test_inbound_call_post
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Agent ID
          description: The agent ID whose inbound_call webhook should be tested
      responses:
        '200':
          description: Inbound call webhook test result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InboundCallWebhookTestResponse'
        '400':
          description: Inbound call webhook not configured or disabled
        '404':
          description: Agent not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    InboundCallWebhookTestResponse:
      properties:
        status:
          type: string
          title: Status
          description: Test result status
          enum:
            - success
            - failed
        message:
          type: string
          title: Message
          description: Human-readable result description
        webhook_url:
          type: string
          title: Webhook Url
          description: Inbound call webhook URL that was tested
        request_payload:
          type: object
          title: Request Payload
          description: Synthetic inbound-call payload sent to the webhook
          additionalProperties: true
        raw_response:
          type: object
          title: Raw Response
          description: Raw JSON response returned by the webhook
          additionalProperties: true
          nullable: true
        validated_response:
          type: object
          title: Validated Response
          description: Validated and normalized subset of the webhook response
          additionalProperties: true
          nullable: true
        error:
          type: string
          title: Error
          description: Error details if the test delivery failed
          nullable: true
      required:
        - status
        - message
        - webhook_url
        - request_payload
      type: object
      title: InboundCallWebhookTestResponse
      description: Response from inbound call webhook test endpoint
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer token authentication. Use your API key as the bearer token.
        Format: Authorization: Bearer <your-api-key>

````