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

# Abort Call

> Aborts a call that is queued or scheduled for retry. This operation is allowed when the call has no status (initial queue) or has a status of: 'busy', 'failed', 'no-answer', 'rescheduled', 'validation-failed'. It is NOT allowed if the call is 'in-progress', 'completed', 'ended', 'timeout', or already 'aborted'.




## OpenAPI

````yaml https://api.voice-agents.miraiminds.co/swagger.yaml post /v2/call/abort
openapi: 3.0.3
info:
  title: Voice Agent by Mirai Minds
  version: 1.1.0
  contact:
    name: API Architecture Team
    url: https://miraiminds.co
  license:
    name: Mirai Minds Proprietary License
    url: >-
      https://github.com/MiraiMinds/voice-agent-integration-specs/blob/main/LICENSE.md
servers:
  - url: https://api.voice-agents.miraiminds.co
    description: Production Server
  - url: https://api.stage.voice-agent.miraiminds.co
    description: Staging Server
  - url: http://localhost:3000
    description: Local Server
security:
  - PublicKeyAuth: []
    PrivateKeyAuth: []
paths:
  /v2/call/abort:
    post:
      tags:
        - Call
      summary: Abort Call
      description: >
        Aborts a call that is queued or scheduled for retry. This operation is
        allowed when the call has no status (initial queue) or has a status of:
        'busy', 'failed', 'no-answer', 'rescheduled', 'validation-failed'. It is
        NOT allowed if the call is 'in-progress', 'completed', 'ended',
        'timeout', or already 'aborted'.
      operationId: abortCall
      parameters:
        - $ref: '#/components/parameters/PublicKeyHeader'
        - $ref: '#/components/parameters/PrivateKeyHeader'
        - $ref: '#/components/parameters/WorkspaceHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AbortCallRequest'
      responses:
        '200':
          description: Call aborted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AbortCallResponse'
        '400':
          description: Bad Request (Call already aborted, in progress, or completed)
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 400
                  message:
                    type: string
                    example: Call already aborted
        '404':
          description: Call not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 404
                  message:
                    type: string
                    example: Call not found
components:
  parameters:
    PublicKeyHeader:
      name: x-public-key
      in: header
      required: true
      schema:
        type: string
    PrivateKeyHeader:
      name: x-private-key
      in: header
      required: true
      schema:
        type: string
    WorkspaceHeader:
      name: workspace
      in: header
      required: true
      schema:
        type: string
  schemas:
    AbortCallRequest:
      type: object
      required:
        - callId
      properties:
        callId:
          type: string
    AbortCallResponse:
      type: object
      properties:
        message:
          type: string
          example: Call aborted successfully
  securitySchemes:
    PublicKeyAuth:
      type: apiKey
      in: header
      name: x-public-key
    PrivateKeyAuth:
      type: apiKey
      in: header
      name: x-private-key

````