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

# Delete a call

> Delete a specific call and its associated data.

This permanently removes the call from the system. The call must belong to the authenticated user.




## OpenAPI

````yaml /openapi.yaml delete /calls/{id}
openapi: 3.0.0
info:
  title: Omnia Voice API
  description: >
    The Omnia Voice API allows you to programmatically manage voice agents,
    tools, phone numbers, and call logs.


    ## Authentication

    All API requests require an API key to be passed in the `X-API-Key` header.


    ## Rate Limiting

    API requests are rate limited to 1000 requests per hour per API key.
  version: 1.0.0
  contact:
    email: support@omnia-voice.com
servers:
  - url: https://api.omnia-voice.com/api/v1
    description: Production
  - url: https://dashboard.omnia-voice.com/api/v1
    description: Production (alias — same service)
security:
  - ApiKeyAuth: []
tags:
  - name: Agents
    description: Manage voice agents
  - name: Tools
    description: Manage agent tools and actions
  - name: Phone Numbers
    description: Manage phone number assignments
  - name: Calls
    description: Create and manage voice calls
  - name: Call Logs
    description: View call history and details
  - name: Pricing
    description: Get pricing information and calculate call costs
  - name: Configuration
    description: Get configuration options (voices, languages)
paths:
  /calls/{id}:
    delete:
      tags:
        - Call Logs
      summary: Delete a call
      description: >
        Delete a specific call and its associated data.


        This permanently removes the call from the system. The call must belong
        to the authenticated user.
      operationId: deleteCall
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Call ID
      responses:
        '200':
          description: Call deleted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Call deleted successfully
                  id:
                    type: string
                    description: ID of the deleted call
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallApiError'
        '404':
          description: Call not found or not owned by user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallApiError'
components:
  schemas:
    CallApiError:
      type: object
      description: |
        Error envelope returned by call endpoints (`/calls/inline`,
        `/calls/create`, `/calls/outbound`). Simpler shape — single
        message + machine-readable code.
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: Human-readable error message.
              example: systemPrompt is required
            code:
              type: string
              description: |
                Machine-readable code. Common values:
                  - `API_ERROR`           — generic 4xx/5xx
                  - `VALIDATION_ERROR`    — selectedTools[] failed validation
                  - `UPSTREAM_VALIDATION` — runtime rejected the call (4xx)
                  - `UPSTREAM_ERROR`      — runtime returned 5xx
                  - `INTERNAL_ERROR`      — uncaught exception in our handler
              example: API_ERROR
            upstreamStatus:
              type: integer
              description: |
                Present when `code` is `UPSTREAM_VALIDATION` or
                `UPSTREAM_ERROR`. The HTTP status the runtime returned.
            upstream:
              description: |
                Present when `code` is `UPSTREAM_VALIDATION`. The
                runtime's response body (forwarded verbatim so the
                client can see field-level diagnostics). Stripped on
                5xx to avoid leaking operator-only details.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````