Calls
Purge a call's content
Permission
calls:deleteAuthenticationDELETE
Idempotently removes call content and queues durable deletion of recording, SIP-PCAP, and turn-audio blobs. The call must be ended, outside all post-call processing fences, and not under legal hold. A 202 means object cleanup remains pending; the response and subsequent GET expose pollable cleanup counts.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringFormat
uuidIf-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
Purge complete, already complete, or no external objects required deletion.
application/json- response
id*stringFormat
uuidobject*stringstatus*stringValue in
"purged""purging""already_purged"deleted*booleanTrue only when this request performed the database purge.
purged_at*stringFormat
date-timeupdated_at*stringFormat
date-timecleanup*records_deleted*curl -X DELETE 'https://api.kejue.co/v1/calls/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "object": "call", "status": "purged", "deleted": true, "purged_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "cleanup": { "status": "not_required", "total": 0, "deleted": 0, "pending": 0 }, "records_deleted": { "property1": 0, "property2": 0 }}