---
title: "Cancel scheduled calls"
method: POST
path: "/api/v1/phones/calls/cancel-scheduled"
tags: ["Phones - Calls"]
---

# Cancel scheduled calls

`POST /api/v1/phones/calls/cancel-scheduled`

## Request

- Base URL: `https://api.voicelogica.ai`
- URL: `https://api.voicelogica.ai/api/v1/phones/calls/cancel-scheduled`
- Auth: API key in header `x-api-key`

Cancel one or more scheduled calls by their IDs. Only calls with status "scheduled" or "to_be_processed" can be cancelled; calls that already started or completed are reported as already processed.

**Request:**
- `callIds`: Array of 1–100 call IDs. Get the IDs from the scheduled-calls list endpoint or from the initiate-call/initiate-bulk response.

**Response:**
Aggregate counters (`totalRequested`, `cancelled`, `alreadyProcessed`, `notFound`) plus per-call `results` with a `reason` for each failure. Cancellation is partial: valid IDs are cancelled even if others in the same request fail.

**Note:** Cancelled calls are marked as cancelled with end reason "Cancelled by user" and are not retried.

## Headers

- `x-api-key` string, required
- `x-company-id` string

## Request body

- object
  - `callIds` string[], required: Array of call IDs to cancel (1–100). Use leads_query (action "get_scheduled_calls") to find the IDs.

## Response `200`

Cancellation processed — per-call results returned

- object
  - `totalRequested` number, required: Number of call IDs provided
  - `cancelled` number, required: Number of calls successfully cancelled
  - `alreadyProcessed` number, required: Number of calls that were already processed (not scheduled)
  - `notFound` number, required: Number of call IDs that were not found
  - `results` object[], required: Per-call cancellation results
    - `callId` string, required
    - `success` boolean, required
    - `reason` string

## Other responses

- `400`: Bad Request — invalid request body or empty callIds array
- `401`: Unauthorized
- `403`: Invalid CSRF
- `429`: Rate limit exceeded
- `500`: Internal Server Error

---

[API](https://skmtc.dev/voicelogica/apis/voice-logica-api.md) · [All operations](https://skmtc.dev/voicelogica/apis/voice-logica-api/llms.txt) · [OpenAPI document](https://skmtc.dev/voicelogica/apis/voice-logica-api/revisions/30f76840084e?raw)
