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

# Test Post Call Webhook agents/item/post call webhook/test

> From `api/v1/agents#test_post_call_webhook` in voice_saas_api. Fields come from that action's strong params / params usage.



## OpenAPI

````yaml /openapi.yaml post /api/v1/agents/{id}/post_call_webhook/test
openapi: 3.0.3
info:
  title: Callaro API
  version: 1.0.0
  description: >-
    Public API for Callaro.ai, the enterprise Voice AI platform for outbound and
    inbound calling.


    This file is generated from the backend source of truth at
    `voice_saas_api/docs/openapi.yaml`.

    Internal-only routes are removed automatically during generation.
  license:
    name: Proprietary
    url: https://callaro.ai
servers:
  - url: https://api.callaro.ai
    description: Production
  - url: https://sandbox.api.callaro.ai
    description: Sandbox
security:
  - bearerAuth: []
  - tenantApiKey: []
  - partnerApiKey: []
tags:
  - name: Health
    description: Service health and readiness probes.
  - name: Auth
    description: Authentication and session bootstrap endpoints.
  - name: Dashboard
    description: Operational dashboard and summary endpoints.
  - name: Partners
    description: Partner management endpoints.
  - name: BillingEntities
    description: Billing entity configuration and lifecycle.
  - name: Tenants
    description: Tenant listing and management endpoints.
  - name: Agents
    description: Voice agent configuration and lifecycle.
  - name: TenantTools
    description: Tenant tool definitions and runtime helpers.
  - name: PhoneNumbers
    description: Phone number inventory and provider operations.
  - name: TelephonyConnections
    description: Telephony provider connection management.
  - name: VoiceSessions
    description: Call log, transcript, and recording resources.
  - name: CallTraces
    description: Call trace diagnostics and telemetry.
  - name: Usage
    description: Usage reporting and cost summary endpoints.
  - name: Users
    description: User profile and membership endpoints.
  - name: FilterableAttributes
    description: Metadata and filter capability endpoints.
  - name: Assets
    description: Asset upload and retrieval endpoints.
  - name: ApiKeys
    description: API key management endpoints.
  - name: Voices
    description: Voice catalog and voice usage endpoints.
  - name: Billing
    description: Billing and wallet operations.
  - name: Campaigns
    description: Campaign orchestration endpoints.
  - name: CampaignExports
    description: Campaign export job endpoints.
  - name: Contacts
    description: Contact lifecycle operations.
  - name: ContactImports
    description: Contact import job endpoints.
  - name: ContactExports
    description: Contact export job endpoints.
  - name: ContactSegments
    description: Contact segmentation endpoints.
  - name: Webhooks
    description: Webhook ingress and relay endpoints.
  - name: PartnerAPI
    description: Partner namespace endpoints for multi-tenant operations.
  - name: KnowledgeBases
    description: Knowledge base publishing and source ingestion.
  - name: Models
    description: Model catalog and prompt-overage estimates.
  - name: FollowUps
    description: Follow-up tasks and follow-up rules.
  - name: Dnc
    description: Do-not-call lists and bulk DNC operations.
  - name: CustomFields
    description: Contact custom field definitions.
  - name: CampaignTemplates
    description: Reusable campaign templates.
  - name: CallAnalysis
    description: Post-call analysis prompts, runs, and attachments.
  - name: CallOutcomes
    description: Tenant call outcome catalog.
  - name: McpServers
    description: Tenant MCP server connections and tool discovery.
  - name: PromptAddendums
    description: Tenant platform-rules / prompt addendum packs.
paths:
  /api/v1/agents/{id}/post_call_webhook/test:
    post:
      tags:
        - Agents
      summary: Test Post Call Webhook agents/item/post call webhook/test
      description: >-
        From `api/v1/agents#test_post_call_webhook` in voice_saas_api. Fields
        come from that action's strong params / params usage.
      operationId: postAgentsIdPostCallWebhookTest
      parameters:
        - $ref: '#/components/parameters/XTenantId'
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              required:
                - knowledge_base_id
              properties:
                config:
                  type: object
                  additionalProperties: true
                bot_settings:
                  type: object
                  additionalProperties: true
                name:
                  type: string
                status:
                  type: string
                telephony_provider:
                  type: string
                telephony_connection_id:
                  type: string
                system_prompt:
                  type: string
                generated_by:
                  type: string
                Resolver:
                  type: string
                region:
                  type: string
                active_knowledge_base_id:
                  type: string
                model_config:
                  type: object
                  additionalProperties: true
                skip_version:
                  type: string
                agent_id:
                  type: string
                knowledge_base_id:
                  type: string
                op:
                  type: string
                rotation_action:
                  type: string
                webhook_action:
                  type: string
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/SuccessEnvelope'
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          linked:
                            type: string
                          knowledge_base_id:
                            type: string
                          knowledge_base_name:
                            type: string
                          sync_mode:
                            type: string
                          summary_status:
                            type: string
                          id:
                            type: string
                          tenant_id:
                            type: string
                          tenant_name:
                            type: string
                          name:
                            type: string
                          status:
                            type: string
                          published:
                            type: string
                          telephony_provider:
                            type: string
                          telephony_connection_id:
                            type: string
                          telephony_connection_label:
                            type: string
                          region:
                            type: string
                          config:
                            type: object
                            additionalProperties: true
                          bot_settings:
                            type: string
                          system_prompt:
                            type: string
                          effective_conversation_mode:
                            type: string
                          resolved_tts_provider_voice_id:
                            type: string
                          active_knowledge_base_id:
                            type: string
                          knowledge_base_link:
                            type: string
                          created_at:
                            type: string
                          updated_at:
                            type: string
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '422':
          $ref: '#/components/responses/ValidationError'
      security:
        - bearerAuth: []
        - tenantApiKey: []
components:
  parameters:
    XTenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: string
      description: Optional tenant context selector for JWT/partner key callers.
  schemas:
    SuccessEnvelope:
      type: object
      properties:
        data:
          type: object
          additionalProperties: true
          nullable: true
        message:
          type: string
          nullable: true
        meta:
          type: object
          additionalProperties: true
          nullable: true
        request_id:
          type: string
          nullable: true
    ErrorEnvelope:
      type: object
      required:
        - error
        - error_code
      properties:
        error:
          type: string
        error_code:
          type: string
        request_id:
          type: string
        details:
          type: object
          additionalProperties: true
        errors:
          description: Optional contract errors (array or object).
          oneOf:
            - type: array
              items:
                type: string
            - type: object
              additionalProperties: true
  responses:
    ValidationError:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    tenantApiKey:
      type: apiKey
      in: header
      name: X-Api-Key
    partnerApiKey:
      type: apiKey
      in: header
      name: X-Partner-Api-Key

````