Skip to main content
DELETE
FIXED · account 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 Request guarded cleanup of the account’s calls without deleting SMS or closing the account.
Method: DELETE ·
Success: 200 ·
Scope: Owning account
The important part
  • This targets every call on the account. A phone number, customer or campaign ID cannot narrow this operation. For one customer, first identify their call IDs in your own records, then use the single-call deletion endpoint for each intended call.
  • This affects the account’s call history; confirm the scope before sending.
  • A single-call cleanup rule does not automatically apply to bulk deletion.
Work or cleanup confirmation can remain pending and return 409/503. Legacy recording counters are not all-copy erasure proof. Reconcile an uncertain response before another deliberate action.

Authentication

Use Authorization: Bearer KEY_ID:KEY_SECRET for the owning account. An organisation API key has Owner authority. Personal sessions use the role rules documented in Authentication; do not treat a Member session as an API key.

Request fields

Do not send a request body. Requests guarded cleanup of owned call history. The current public guard can hold nonempty cleanup for storage/transfer-audio confirmation. This is not an immediate account-erasure workflow and does not delete SMS messages. The new single-call and campaign deletion flow does not replace these bulk safety checks.

Not reversible

This is destructive if allowed. SDK changes never automatically retry it; a lost reply may follow partial progress. Check before retrying. There is no undo through this API; no promise about customer-owned or exported copies.

What this does NOT do

  • This call-data request does not delete your agents, phone numbers or API keys.
  • Billing and invoices are unaffected. Past usage stays on your invoices; billing records are retained for tax purposes.
  • Account deletion is a separate dashboard-owner workflow with pending states; this endpoint does not close an account or certify its complete erasure.

Response fields

200 returns the following shape. Legacy shape; an already-empty scope can return: Refusals use 409 for in-progress, unsettled or pending/failed cleanup, and 503 when safety cannot be checked. The bulk codes include call_in_progress, deletion_unsettled, recording_cleanup_pending, cleanup_pending_confirmation and deletion_cleanup_failed. A safety refusal includes details.deleted=false and details.safe_to_retry=false; show the reason instead of “deleted”. No completion deadline or all-copy erasure guarantee is made by this response.

Example request

Production HTTP examples. Replace the placeholder identifiers with resources owned by the account. Set NIXFLEX_API_KEY privately; never print it.

Example response

Illustrative response with placeholder identifiers.

Errors

Branch on error.code, not the wording of error.message. The envelope includes type, code, message, doc_url and details.

Retry and idempotency

Disable automatic write retries. A lost response leaves the result uncertain; read the affected resource before another deliberate action. No general Idempotency-Key replay guarantee applies. See retry rules.

Authorizations

Authorization
string
header
required

KEY_ID:KEY_SECRET from the owning account. Keep it server-side. A verified personal dashboard Bearer session may be used where the operation documents role-based access.

Response

Success

deleted
boolean
calls_deleted
integer
recordings_deleted
integer
sms_deleted
integer