> ## Documentation Index
> Fetch the complete documentation index at: https://new-fb342056.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Post Call Webhook

> Webhook for when a call is made



## OpenAPI

````yaml POST /webhooks/post-call
openapi: 3.1.0
info:
  title: Robocallz API
  description: API documentation for Robocallz platform
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.robocallz.ai
security:
  - bearerAuth: []
paths:
  /webhooks/post-call:
    post:
      tags:
        - Webhooks
      summary: Post-Call Webhook
      description: >-
        Webhook sent after a call is completed containing extracted variables
        and call data. The webhook is sent as a POST request to your configured
        URL.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  description: Unique identifier of the call
                customer_phone:
                  type: string
                  nullable: true
                  description: >-
                    Phone number of the customer in E.164 format (e.g.,
                    "+1234567890") or null if not available
                assistant_phone:
                  type: string
                  nullable: true
                  description: >-
                    Phone number used by the assistant in E.164 format or null
                    if not available
                duration:
                  type: integer
                  description: Duration of the call in seconds
                status:
                  type: string
                  description: >-
                    Final status of the call (e.g., "completed", "busy",
                    "failed")
                extracted_variables:
                  type: object
                  description: >-
                    Variables extracted by AI based on your post-call schema
                    configuration
                  properties:
                    status:
                      type: boolean
                      description: Whether the call objective was achieved
                    summary:
                      type: string
                      description: Call summary in a few words
                  additionalProperties:
                    description: >-
                      Any custom variables defined in the assistant
                      configuration
                    oneOf:
                      - type: string
                      - type: number
                      - type: boolean
                input_variables:
                  type: object
                  description: >-
                    Variables that were passed to the assistant before the call
                    started
                transcript:
                  type: string
                  description: Full transcript of the conversation
                recording_url:
                  type: string
                  description: >-
                    URL to download the call recording (only included if
                    "Include recording in webhook" is enabled in assistant
                    settings)
                created_at:
                  type: string
                  format: date-time
                  description: ISO 8601 timestamp when the call was initiated
                finished_at:
                  type: string
                  format: date-time
                  description: ISO 8601 timestamp when the call was completed
                lead:
                  type: object
                  description: Lead information (only included for campaign calls)
                  properties:
                    id:
                      type: integer
                      description: Unique identifier of the lead
                    phone_number:
                      type: string
                      description: Lead's phone number
                    variables:
                      type: object
                      description: Variables associated with the lead
                    status:
                      type: string
                      description: Current status of the lead
                    created_at:
                      type: string
                      format: date-time
                      description: When the lead was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the lead was last updated
                    campaign:
                      type: object
                      description: Campaign information
                      properties:
                        id:
                          type: integer
                          description: Campaign ID
                        name:
                          type: string
                          description: Campaign name
                        status:
                          type: string
                          description: Campaign status
                        allowed_hours_start_time:
                          type: string
                          description: Campaign allowed start time
                        allowed_hours_end_time:
                          type: string
                          description: Campaign allowed end time
                        allowed_days:
                          type: array
                          description: Campaign allowed days
                          items:
                            type: string
                        max_calls_in_parallel:
                          type: integer
                          description: Maximum concurrent calls for campaign
                        max_retries:
                          type: integer
                          description: Maximum retry attempts for leads
                        retry_interval:
                          type: integer
                          description: Retry interval in minutes
                        created_at:
                          type: string
                          format: date-time
                          description: When the campaign was created
                        updated_at:
                          type: string
                          format: date-time
                          description: When the campaign was last updated
            example:
              id: 12345
              customer_phone: '+1234567890'
              assistant_phone: '+1987654321'
              duration: 125
              status: completed
              extracted_variables:
                status: true
                summary: Customer interested in product demo
                lead_quality: high
                next_action: schedule_demo
              input_variables:
                customer_name: John Doe
                product_interest: Pro Plan
              transcript: |-
                AI: Hello! This is Sarah from Autocalls. How are you today?
                Customer: Hi, I'm doing well, thanks for calling...
                AI: I'm calling to tell you about our new product features.
                Customer: That sounds interesting, tell me more...
              recording_url: https://app.autocalls.ai/storage/recordings/call-12345.mp4
              created_at: '2025-01-15T10:30:00.000000Z'
              finished_at: '2025-01-15T10:32:05.000000Z'
              lead:
                id: 789
                phone_number: '+1234567890'
                variables:
                  source: website
                  interest_level: high
                status: contacted
                created_at: '2025-01-15T09:00:00.000000Z'
                updated_at: '2025-01-15T10:32:05.000000Z'
                campaign:
                  id: 456
                  name: Product Demo Campaign
                  status: active
                  allowed_hours_start_time: '09:00'
                  allowed_hours_end_time: '17:00'
                  allowed_days:
                    - monday
                    - tuesday
                    - wednesday
                    - thursday
                    - friday
                  max_calls_in_parallel: 5
                  max_retries: 3
                  retry_interval: 60
                  created_at: '2025-01-15T08:00:00.000000Z'
                  updated_at: '2025-01-15T08:00:00.000000Z'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````