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

# Cancel a call

> Prevents further dials and ends the session if one is live. `409` if the call is already terminal. Scope `sessions:write`.



## OpenAPI

````yaml /api-reference/openapi.json post /calls/{call_id}/cancel
openapi: 3.1.0
info:
  title: Lehar API
  version: v0
  description: >-
    Customer-facing REST API for the Lehar voice-AI platform. Platform-admin
    endpoints are intentionally excluded from this reference. Regenerate with
    `npm run sync:openapi`.
servers:
  - url: https://api.lehar.ai/ca/api/v0
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /calls/{call_id}/cancel:
    post:
      tags:
        - Calls
      summary: Cancel a call
      description: >-
        Prevents further dials and ends the session if one is live. `409` if the
        call is already terminal. Scope `sessions:write`.
      operationId: cancel_call_ca_api_v0_calls__call_id__cancel_post
      parameters:
        - name: call_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The cancelled call record
        '409':
          description: Call is already completed, failed or cancelled
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
    BearerAuth:
      type: http
      scheme: bearer

````