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

# Cancel a call

> Cancel a call record that has not been dialed yet. A call that has
already been placed cannot be cancelled.




## OpenAPI

````yaml /api-reference/openapi.yaml post /consents/{id}/cancel
openapi: 3.1.0
info:
  title: Outbound Calls API
  version: 1.0.0-beta
  description: |
    REST API for placing AI-powered outbound calls to your contacts. Place a
    single call or a batch, personalize each call's prompt, and review the
    results.

    This reference is in **beta**: the endpoints below are live in production,
    but the reference itself is still being expanded to cover the rest of the
    platform API.
servers:
  - url: https://aipro.placetel.de/api/v1/outbound
security:
  - bearerAuth: []
tags:
  - name: Calls
    description: Place outbound calls.
  - name: Batches
    description: Review the outcome of calls you placed.
  - name: Consents
    description: Manage individual call records before they are dialed.
paths:
  /consents/{id}/cancel:
    post:
      tags:
        - Consents
      summary: Cancel a call
      description: |
        Cancel a call record that has not been dialed yet. A call that has
        already been placed cannot be cancelled.
      operationId: cancelConsent
      parameters:
        - name: id
          in: path
          required: true
          description: The `consent_id` from the placement response or batch detail.
          schema:
            type: integer
      responses:
        '200':
          description: Cancelled.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    examples:
                      - true
                  id:
                    type: integer
                    examples:
                      - 48213
                  status:
                    type: string
                    examples:
                      - cancelled
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: Call record not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error: Consent not found
        '422':
          description: The call has already been placed and cannot be cancelled.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error: Call already placed for this consent
components:
  responses:
    Unauthorized:
      description: Missing or invalid API token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Outbound calling is not enabled for your account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        success:
          type: boolean
          examples:
            - false
        error:
          type: string
          description: Description of the issue, in English.
        error_type:
          type: string
          description: Machine-readable error category, present on limit-related errors.
        detail:
          type: string
          description: Where to go next, present on rate-limit errors.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |
        Generate (or rotate) your token on the **Outbound Calls** page in your
        dashboard. The token is shown once - store it securely; rotating it
        invalidates the previous token. A token only reaches your own agents and
        data.

````