DELETE /v1/calls purges calls and related recordings account-wide and reports sms_deleted=0. For one customer verify each call ID, then use DELETE /v1/calls/{id}.
NOT OFFERED → do this instead · number A business_number filter on campaign and opt-out reads does not establish tenant identity. Authorise the tenant and its number on your server. Keep that filter through SMS pagination. Bulk call deletion stays account-wide.
YOU CAN CHANGE · account Choose direction, source, outcome and period when supported. The number narrows a history read only. direction all, inbound, outbound, web · source all, campaign, web, test, other · outcome all, successful, unsuccessful, unknown, failed · period all, today, week, month.
SCOPE · account Keep the same filters with each server-issued cursor.
Read the compact AI rules
Build a call-results view that keeps call completion, booking evidence and recording availability separate.
History: Account-scoped reads ·
Booking states: Five explicit states ·
Recording link: Fetch at playback
The important part
- Only ready contains a confirmed booking object; none needs complete evidence of zero mutations.
- A completed call can still have unfinished recording, analysis or booking work.
- Use the saved outbound request UUID to reconcile an uncertain launch; never redial from an empty history page.
1. Read historyKeep filters fixed while paging.
2. Read bookingsHandle every returned state.
3. Load recordingRequest a current access link.
4. Refresh carefullyBound read retries and honour retention.
Prerequisites
Keep the account credential inNIXFLEX_API_KEY on your server. SDK and CLI examples require Node/CLI 0.11.0 or later or Python 0.4.0 or later. Use identifiers owned by the intended account. Raw HTTP base URL: https://api.nixflex.com/v1. Node and Python SDK base URL: https://api.nixflex.com. The SDK adds /v1.
1. Read history
2. Page using server values
Use the endpoint’s documented filters, bounds and pagination. Do not treat one response as the whole account history. Keep call identifiers opaque and preserve unknown timestamps or outcomes.3. Show separate processing states
Display call state, analysis, costs and recording availability separately. Missing summary or structured data is not a confirmed negative answer. A requested end or deletion can remain pending. For confirmed booking changes, receive the signedcall.bookings event. Its action timeline and final booking results answer different questions: create then cancel produces two actions and zero active results. Deduplicate by trusted account, event and call ID before updating your view; the event can arrive separately from call.completed.
Read the retained booking result
CallGET /v1/calls/{id}/bookings with the owned call ID. This read does not contact a calendar or place a call. Its result describes this call, not the current calendar inventory.
Node · booking read
State mapping
A failed GET is not
none. On 503, preserve the previous uncertainty and retry the read with a limit. For an uncertain outbound launch, read the original request UUID. A new UUID would create a new call intent.
4. Request a current recording link
UseGET /v1/calls/{id}/recording when the user asks to play a recording. Read status, url and expires_at. Available links are short-lived; do not save them as permanent public URLs. Other statuses can have url:null.
5. Apply retention and deletion honestly
Read the configured policy and actual current state. Automatic retention waits for its required finalisation and post-call decisions. Deliberate single-call deletion uses the separate flow below. Customer-owned storage has its own lifecycle. Deleting one call does not erase every caller record or external integration copy. 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. 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.
Show unavailable with reason:tracking_unavailable as unavailable tracking, not proof that a recording was erased. Read the single-call deletion reference before offering a delete action.
Example response
A recording access reply hascall_id, status, url and expires_at. For example, {"call_id":"call_example","status":"pending","url":null,"expires_at":null} means no usable recording link is available yet.