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

# Terminate a Web Call

> Terminate an active DialNexa web call session.

<Warning>
  **Legacy endpoint - deprecated.** Unversioned endpoints are scheduled for removal on **July 31, 2026**. A public v1 replacement is not currently listed in the v1 reference. This endpoint remains available for existing integrations until then.
</Warning>

Terminates an active web call session by call ID. The v1 path is `/webcalls/{callId}/terminate`. Legacy unversioned `/webcall/terminate/{callId}` integrations can continue during the transition window, but new v1 integrations should use the plural path.

## Path parameters

| Parameter | Description                                     |
| --------- | ----------------------------------------------- |
| `callId`  | Call ID returned when the web call was created. |

## Related endpoints

* [Create a Web Call](/docs/api-reference/webcalls/create): start a web call session.
* [Get Call](/docs/api-reference/v1/calls/get): fetch the call record.


## OpenAPI

````yaml POST /webcall/{callId}/terminate
openapi: 3.0.0
info:
  title: DialNexa API
  description: >-
    Public REST API for the DialNexa voice AI platform. Versioned endpoints are
    under /v1; unversioned endpoints are legacy and deprecated.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: API Keys
  - name: Agent Functions
  - name: Agents V1
  - name: Agents2
  - name: Batch Calls
  - name: Batch Calls V1
  - name: Call Logs
  - name: Calls
  - name: Calls V1
  - name: Campaign Leads
  - name: Campaigns
  - name: External Webhooks
  - name: Knowledge Base
  - name: Knowledge Base V1
  - name: LLMs
  - name: LLMs V1
  - name: Languages
  - name: Languages V1
  - name: Organization Phone Numbers
  - name: Organization Phone Numbers V1
  - name: Phone Number Pricing
  - name: Phone Number Pricing V1
  - name: Transcribers
  - name: Transcribers V1
  - name: User Webhooks
  - name: User Webhooks V1
  - name: V1
  - name: Voices
  - name: Voices V1
  - name: Webcall
  - name: Workflow Leads
  - name: Workflow Leads V1
  - name: Workflows
  - name: Workflows V1
paths:
  /webcall/{callId}/terminate:
    post:
      tags:
        - Webcall
      summary: Terminate an active webcall session by call ID (V1 alias)
      description: >-
        **Legacy endpoint - deprecated, scheduled for removal on July 31,
        2026.** Use the `/v1` version for new integrations. 
      operationId: WebcallController_terminateWebcallV1
      parameters:
        - name: callId
          required: true
          in: path
          description: Call ID of the webcall session to terminate
          schema:
            type: string
        - name: X-API-Key
          in: header
          description: API key for authentication
          required: false
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TerminateWebcallRequestDto'
      responses:
        '200':
          description: Webcall session terminated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TerminateWebcallResponseDto'
        '401':
          description: Unauthorized - invalid or missing API key
        '500':
          description: Internal server error
      deprecated: true
components:
  schemas:
    TerminateWebcallRequestDto:
      type: object
      properties:
        audio_data:
          type: string
          example: UklGRlzcAQBXQVZFZm10IBAAAAABAAIAQB8AAAB9AAAEABAAZ
          description: >-
            Optional base64-encoded audio data to send when terminating the
            webcall
    TerminateWebcallResponseDto:
      type: object
      properties:
        call_id:
          type: string
          example: cl_1234567890abcd
          description: Call ID of the terminated webcall
        message:
          type: string
          example: Webcall terminated successfully
          description: Success message from the API
        status:
          type: string
          example: terminated
          description: Status of the webcall after termination
      required:
        - call_id
        - message
        - status
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````