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

# Discard a dialpad call record

> Deletes the `Call` document and, if its linked voice `Conversation` has no messages, deletes that conversation too. If `deleteContact: true` is supplied with `contactId`, also deletes a newly-created placeholder contact (`firstName: "New Contact"`, `source: "Outgoing Call"`) and emits `contact_removed`. Safe no-op if the call was already deleted. Used when a user dials a wrong number from the dialpad.



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/calls/{callId}/discard
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/calls/{callId}/discard:
    post:
      tags:
        - Calls
      summary: Discard a dialpad call record
      description: >-
        Deletes the `Call` document and, if its linked voice `Conversation` has
        no messages, deletes that conversation too. If `deleteContact: true` is
        supplied with `contactId`, also deletes a newly-created placeholder
        contact (`firstName: "New Contact"`, `source: "Outgoing Call"`) and
        emits `contact_removed`. Safe no-op if the call was already deleted.
        Used when a user dials a wrong number from the dialpad.
      operationId: post_calls_callId_discard
      parameters:
        - in: path
          name: callId
          required: true
          schema:
            type: string
          description: >-
            The provider-agnostic `callId` minted by Tether (also used as
            `providerCallId` for SDK calls).
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CallsDiscardCallRequest'
      responses:
        '200':
          description: Call discarded (or not found, treated as success)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsSimpleSuccessResponse'
        '400':
          description: callId missing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
        '500':
          description: Internal error during discard
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    CallsDiscardCallRequest:
      type: object
      properties:
        contactId:
          type: string
        deleteContact:
          type: boolean
          description: >-
            Only deletes the contact when it was a placeholder (`firstName: "New
            Contact"`, `source: "Outgoing Call"`) created from the dialpad.
      additionalProperties: true
      example:
        contactId: 64f0a1b2c3d4e5f6a7b8c9d0
        deleteContact: true
    CallsSimpleSuccessResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        message:
          type: string
      required:
        - success
      additionalProperties: true
      example:
        success: true
        message: Configuration saved
    CallsErrorResponse:
      type: object
      description: >-
        Error envelope used across most calls endpoints. Some endpoints wrap a
        string error; validation endpoints (parseContractInput) return a
        structured `error` object with `code` and `details`.
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          oneOf:
            - type: string
            - type: object
              properties:
                code:
                  type: string
                message:
                  type: string
                details:
                  type: array
                  items:
                    type: object
                    additionalProperties: true
              additionalProperties: true
        code:
          type: string
          description: >-
            Stable error code on certain errors (e.g. `NUMBER_NOT_ON_TRUNK`,
            `AGENT_NOT_SYNCED`, `OUTBOUND_IN_FLIGHT`).
      additionalProperties: true
      example:
        success: false
        error: Call not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````