Skip to main content

Deleting Calls

Deleting a call permanently removes all end-customer PII (transcript, recording metadata, contact details) associated with that call. This is distinct from cancelling a call, which only prevents a pending call from being dialled — deletion is a data-erasure operation on completed calls.

Irreversible

Deletion is permanent. Call transcripts, analytics, and contact information cannot be recovered after a delete operation.


Using the REST API

Requires an API key with the calls:delete scope.

  • Endpoint: DELETE https://api.huskyvoice.ai/v1/calls/{call_id}
  • Auth header: x-api-key: YOUR_API_KEY
curl -s -X DELETE https://api.huskyvoice.ai/v1/calls/550e8400-e29b-41d4-a716-446655440000 \
-H "x-api-key: YOUR_API_KEY"

Response

200 OK

{
"data": {
"call_id": "550e8400-e29b-41d4-a716-446655440000",
"deleted": true
}
}

Error Responses

StatusCodeCause
404 Not FoundNOT_FOUNDNo completed call with that call_id exists for your organization
401 UnauthorizedUNAUTHORIZEDMissing or invalid API key / webhook token
500 Internal Server ErrorINTERNAL_ERRORServer-side failure

Cancel vs Delete

CancelDelete
Works onPending / scheduled callsCompleted calls with recorded engagement
EffectPrevents the call from being dialledPermanently erases customer PII
Record kept?Yes — status changes to cancelledNo — call data is removed
Reversible?No (but data is preserved)No