Call Imports
POST
/api/v1/call-imports/{call_import_id}/cancel-diarisation

Abort in-flight diarisation for many rows in a single call.

Default body (no row_ids) cancels every row in this import whose diarised_transcript_status is pending or running — the "stop everything" button. Pass row_ids to scope the cancel to the rows the operator has selected.

Returns (cancelled, skipped) so the UI can render a tight toast ("Cancelled 3 rows · 1 skipped (already completed)").

Authorization

AuthorizationBearer <token>

JWT access token. Use: Authorization: Bearer .

In: header

Path Parameters

call_import_id*Call Import Id
Formatuuid

Header Parameters

Authorization?string|null
X-API-Key?string|null
X-EFFICIENTAI-API-KEY?string|null
X-Workspace-Id?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Body for the batch cancel-diarisation endpoint.

Omit row_ids (or pass null) to cancel every row in the import whose diarised_transcript_status is currently pending or running. Pass an explicit list to scope the cancel to a subset (e.g. the rows the operator selected in the UI).

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/call-imports/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel-diarisation" \  -H "Content-Type: application/json" \  -d '{}'
{  "cancelled": 0,  "skipped": 0}

Community & contact

  1. Found a bug or have a feature request? Open a GitHub issue.
  2. Join our Discord for faster replies!