DELETE /v1/calls covers the owning account’s calls and related recordings. It takes no number or campaign filter. Its result reports sms_deleted=0.
NOT OFFERED → do this instead · number There is no bulk erase for just one customer’s number in a shared account. Resolve and verify each tenant-owned call ID, then use single-call deletion.
YOU CAN CHANGE · agent New agents inherit account retention on creation. Use the agent update to change its saved call-retention policy.
SCOPE · call Read availability first. Stored links expire. Distinguish pending, expired, unavailable and customer storage.
Read the compact AI rules
Configure the effective recording decision and use authenticated recording access to check whether audio is actually available.
Decision: Number then agent ·
Playback: Authorised access ·
Capture: Check actual state
The important part
- A number’s explicit recording value overrides the agent, including false and true.
- Changing settings affects new work and does not erase old audio.
- An absent URL or pending recording does not confirm that no copy exists.
Prerequisites
KeepNIXFLEX_API_KEY private on the server. Raw HTTP base URL: https://api.nixflex.com/v1. Node and Python SDK base URL: https://api.nixflex.com. The SDK adds /v1. Use owned identifiers; SDK and CLI examples need the documented minimum versions. Review the applicable customer notice and business policy for the call before recording.
1. Read recording access
2. Resolve the setting
Forrecord_call, explicit number true/false overrides the agent; null inherits. Agent off plus number on still enables this recording decision. recording_source is resolved separately and cannot turn capture on when the effective recording decision is off.
3. Choose the capture path
The selected recording source affects what audio can be captured, including transfer legs. Website voice has no telephone-network recording source. Do not promise every source captures the entire human handoff.4. Request playback when needed
GET/v1/calls/{id}/recording under current account authorisation. Use status, url, expires_at. Private-access mode signs available links for 600 seconds; an older path can use 300 seconds. Honour the returned expiry instead of hard-coding a lifetime.
5. Apply retention and storage rules
Turning recording off applies to new work; it does not delete existing audio or independently configured external recording. Call retention and deletion have tracked cleanup. Customer-bucket files need the customer’s own lifecycle. Storage failure can lead to fallback, not guaranteed regional exclusivity.Example response
Example:{"call_id":"call_example","status":"not_recorded","url":null,"expires_at":null}. Pending, expired, customer_bucket, unavailable and pending_deletion also need distinct UI states.
Errors and limits
Delete content deliberately
Deleting one call hangs it up first if it is still running, then removes its content. An Owner or Admin can delete; a Member cannot. A confirmed content deletion can still have queued recording cleanup. Nixflex recording cleanup does not certify carrier erasure or remove customer-managed copies. Used charges and required financial records remain, with no refund. Deleting a voice or SMS campaign cancels waiting work, hangs up its running calls, then removes the campaign and recipient list. Calls already made and texts already sent stay in history. Used charges stay in billing; there are no refunds. Owner and Admin can delete; Member cannot. Cancel alone stops future dispatch and lets active calls finish; Delete also requests their hang-up. If hang-up is not confirmed, HTTP 503hangup_pending returns error.details.deleted:false and error.details.retry_pending:true. Deletion stays queued and continues automatically. Repeating the same DELETE for the same account and ID safely resumes it. A lost response or deletion_unavailable is not success: check the list, then repeat that same DELETE if needed. Missing and foreign IDs share HTTP 404. Bulk call deletion and account closure keep separate safety rules.
Read delete call data for the dashboard task and single-call deletion for response fields.