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

# End of call report webhook

> Sent when a call completes with detailed information about the call.

**Payload includes:**
- Call identification (callId, workspaceId)
- Call outcome (summary, endedReason, status)
- Timing information (startedAt, endedAt, durationMs)
- Call content (transcript, recordingUrl)
- Customer information (customer phone number)

This webhook provides comprehensive call data including AI-generated summaries, full transcripts, and recording URLs for post-call analysis and reporting.



## OpenAPI

````yaml https://staging-app.freyavoice.ai/api/openapi.json post /webhooks/end-of-call-report
openapi: 3.1.0
info:
  title: Freyavoice API
  version: 2.0.0
  description: >-
    Production API for managing calls and campaigns.


    **Authentication**: All endpoints require a bearer token issued by
    Freyavoice.


    **Response Format**: All responses are wrapped in a standard envelope:

    ```json

    {
      "success": true,
      "data": {
        "message": "Success",
        "result": { /* endpoint-specific data */ }
      }
    }

    ```


    Error responses follow the same format with `success: false`:

    ```json

    {
      "success": false,
      "data": {
        "message": "Error description",
        "result": null
      }
    }

    ```
  contact:
    name: Freyavoice Support
    email: support@freyavoice.com
servers:
  - url: https://app.freyavoice.ai/api/v2
    description: Production
security: []
tags:
  - name: Agents
    description: Manage AI agents
  - name: Analytics
    description: Call analytics and metrics
  - name: API Keys
    description: API key management
  - name: Audio
    description: Audio transcription and speech synthesis
  - name: Calls
    description: Call management and history
  - name: Call Recordings
    description: Call recording management
  - name: Call Tags
    description: Call tagging and categorization
  - name: Campaigns
    description: Campaign management
  - name: Chat
    description: Stateful text chat with agents and workflows
  - name: Custom
    description: Custom convenience endpoints
  - name: Export
    description: Data export
  - name: Insights
    description: Structured data field definitions
  - name: Agent Insights
    description: Agent-to-field assignments
  - name: Integrations
    description: Third-party integrations
  - name: Personas
    description: Simulation personas for agent testing
  - name: Phone Numbers
    description: Phone number management
  - name: Phone Aliases
    description: Workspace phone book (phone-number to label mappings)
  - name: Suppression List
    description: Workspace do-not-call (DNC) list; numbers blocked from outbound dialing
  - name: Feedbacks
    description: Feedback tracking
  - name: Feedback Assignees
    description: Feedback assignment
  - name: Feedback Comments
    description: Feedback comments
  - name: Feedback References
    description: Feedback cross-references to other entities
  - name: Feedback Status Config
    description: Feedback status configuration
  - name: Reviews
    description: Call reviews
  - name: Review Assignees
    description: Review assignment
  - name: Simulations
    description: Agent simulation testing
  - name: Simulation Iterations
    description: Simulation iteration history
  - name: Unit Tests
    description: Behavioural unit tests for agents and workflows
  - name: Branches
    description: Branches (proposed changes) of an agent or workflow version line
  - name: Webhooks
    description: Webhook configuration
  - name: Versions
    description: Version history and rollback for agents and workflows
  - name: Workflows
    description: Workflow management
  - name: Workspaces
    description: Workspace management
  - name: Workspace Credits
    description: Workspace credit balance
  - name: Workspace Invitations
    description: Workspace invitations
  - name: Workspace Logs
    description: Workspace activity logs
  - name: Workspace Members
    description: Workspace member management
  - name: Workspace Roles
    description: Custom roles and permissions per workspace
  - name: Permissions
    description: Permission catalog (used by role + API-key UIs)
paths:
  /webhooks/end-of-call-report:
    post:
      tags:
        - Webhooks
      summary: End of call report webhook
      description: >-
        Sent when a call completes with detailed information about the call.


        **Payload includes:**

        - Call identification (callId, workspaceId)

        - Call outcome (summary, endedReason, status)

        - Timing information (startedAt, endedAt, durationMs)

        - Call content (transcript, recordingUrl)

        - Customer information (customer phone number)


        This webhook provides comprehensive call data including AI-generated
        summaries, full transcripts, and recording URLs for post-call analysis
        and reporting.
      operationId: endOfCallReportWebhook
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EndOfCallReport'
      responses:
        '200':
          description: Webhook received successfully
components:
  schemas:
    EndOfCallReport:
      type: object
      properties:
        type:
          type: string
          enum:
            - end-of-call-report
        callId:
          type: string
          format: uuid
          description: Unique identifier for the call
        workspaceId:
          type: string
          format: uuid
          description: Workspace ID
        summary:
          type: string
          description: AI-generated summary of the call
        endedReason:
          type: string
          description: >-
            Reason why the call ended (e.g., 'customer-ended-call',
            'assistant-ended-call')
        durationMs:
          type: number
          description: Call duration in milliseconds
        transcript:
          type: string
          description: Full conversation transcript with timestamps
        status:
          type: string
          description: Call status code
        callEndReasonCategory:
          type: string
          description: Call end reason category
        customer:
          type: string
          description: Customer phone number
        startedAt:
          type: string
          format: date-time
          description: ISO8601 timestamp when call started
        endedAt:
          type: string
          format: date-time
          description: ISO8601 timestamp when call ended
        recordingUrl:
          type: string
          format: uri
          description: URL to access the call recording
        timestamp:
          type: string
          format: date-time
          description: ISO8601 timestamp when webhook was sent
      required:
        - type
        - callId
        - workspaceId
        - durationMs
        - status
        - callEndReasonCategory
        - customer
        - startedAt
        - endedAt
        - recordingUrl
        - timestamp

````