Skip to main content
FIXED · platform Raw HTTP base URL: https://api.nixflex.com/v1. Node and Python SDK base URL: https://api.nixflex.com. The SDK adds /v1. Keep the credential on your server. NOT OFFERED → do this instead · platform There is one public API: https://api.nixflex.com/v1. There is no sandbox. Test with your own number on production. Use local fixtures when you do not need a real call or text. YOU CAN CHANGE · account Rotate the credential and update its callers together. SCOPE · account A platform uses one Nixflex account for all its businesses, with one agent per business or a shared agent. Separate accounts only when businesses sign up themselves. No platform account-creation loop. Sub-accounts are not offered. Authorise each tenant on your server. In Help choose New request for a capacity review, complaint or problem, abuse report, or other issue. Follow Your open chats. Owners and Admins see organisation tickets. Members see their own while authorised. Close chat removes it from the open list. A staff-closed chat can surface until its final reply is read. POST /v1/support/tickets/chat-summary is a read. Use watch_ticket to check a displayed ticket outside the current page. Use /v1/support/tickets. A personal session sends X-Nixflex-Expected-Account with the original workspace’s public key_id for list, detail, chat-summary, writes and receipt lookup. Organisation keys select their own account. On 409 account_changed, discard the stale draft and refresh Help in the intended workspace. Create, reply and solve each need an Idempotency-Key. Reply uses X-Expected-Revision. Solve sends version in JSON. Lost response? The original person can GET /v1/support/tickets/requests/{request_key} with the original account header. A 200 returns the current ticket and original receipt. 404 means missing or inaccessible. Never resend in a different workspace. Organisation keys can replay only the identical write with its key, body and revision. Read the compact AI rules Use the Node SDK for server-side reads and deliberate writes, with durable outbound request records for uncertain call outcomes.
Runtime: Node 18+ ·
Package: nixflex, latest ·
Write retries: Disabled by the client
The important part
  • Keep the complete account credential 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 Node SDK 0.11.0 or later for these examples.
  • Prepare and save a call locally before a separately approved send.
Install the latest published packages; current versions are listed on Choose a client. The Node SDK supports Node 18 or later. On a server-side edge runtime such as Deno, use HTTPS with fetch and keep the API credential in private server configuration. The Node SDK has no documented Deno support guarantee.

Install the SDK

Install the package in your server application:
These examples require Node SDK 0.11.0 or later. The SDK uses native fetch and has no runtime dependencies. The CLI ships in the same package.

Make one safe read

Set NIXFLEX_API_KEY privately for 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. Save this as an ES module, for example read-usage.mjs:
Keep the returned usage object private. Avoid logging complete error objects because details or upstream messages can contain request data.

Prepare a call without sending it

The following local script reads a private intent.json containing the reviewed call fields. It generates the UUID and saves an exclusive file; it sends no request. Store the file in an application-owned private directory and retain its account binding.
Use the outbound workflow for the complete input shape. POSIX file mode does not establish Windows ACL protection; apply your platform’s private-directory permissions. Never run preparation again as a retry.

Send the saved intention once

This separate script places a paid call. Run it only after approval of the saved recipient, sender and purpose. Do not wrap it in an automatic retry loop.
A local receipt-write failure can occur after a call was accepted. Reconcile the saved UUID rather than running the send again. Typed calls with request_id return OutboundRequestReceipt, where to/from are optional; no-ID calls retain the older response type.

Reconcile with reads

Read client.calls.outboundRequest(saved.request_id) separately. For accepted, retain call_id and use calls.read(call_id) for current detail and calls.bookings(call_id) for booking evidence. pending and unknown require reconciliation, never a replacement UUID. A 404 is not permission to redial. Booking states are ready, none, processing, deleted and unavailable. Only ready carries the result. Count active rows in result.final; do not count every action in timeline or turn unavailable into an empty list.

Choose the resource and paging method

calls.iter(100) takes a numeric page size from 1 to 200, not a query object. It uses offset pages and is not a frozen snapshot. For filtered reads use calls.history; legacy calls.list does not accept an agent filter. See pagination.

Handle errors and webhooks

The default timeout is 30 seconds. maxRetries defaults to one eligible GET retry, with a supported range of 0–3; writes are never automatically retried. NixflexOutcomeUnknownError means a mutation may already have happened. The outbound request family also exposes NixflexOutboundRequestError and its pending, unknown, conflict and unavailable variants. For webhooks, use the strict raw-byte verifier and durable receiver in the webhook guide. Pass the webhook signing secret as keySecret to the SDK verifier. With organisations enabled, use the stable organisation webhook signing secret. The organisation API credential on your server or a human Owner can retrieve it. Rotating the API key leaves that secret valid. Without organisations, use only the owning credential’s KEY_SECRET part. Rotation changes that verifier secret. Never pass the full KEY_ID:KEY_SECRET or a key ID to the verifier.

Delete content deliberately

The client supports calls.delete, campaigns.delete and sms.campaigns.delete. Each invocation sends one DELETE and never repeats it automatically. Authorise the exact account and identifier first. A voice/SMS campaign success requires campaign_id, deleted:true and message; a call success requires call_id, deleted:true, recording_deleted and recording_cleanup. The exact queued response raises NixflexServerError: status 503, code hangup_pending, and details deleted:false plus retry_pending:true. It is not success. The server continues automatically; a later deliberate repeat of the same DELETE is safe. Other uncertain failures use outcome_unknown; inspect details.original_code and current state privately. No error or 404 is converted into deletion success. Bulk call cleanup keeps its separate guard and counters. It does not use this queue classification. See delete a call, delete a voice campaign and delete an SMS campaign. Set NXF_CAMPAIGN_ID to the voice campaign you explicitly intend to delete. The example sends one request:
The current voice and SMS methods return CampaignDeleteResponse. The older exported SmsCampaignDeleteResponse alias remains source-compatible with old receipts; it is not the current success proof. The call type includes the required recording_cleanup union.

Public method directory

This directory lists all 140 public resource methods in the client. Use the matching feature guide for fields, limits and results. Methods that prepare inputs, verify signatures, stream pages or poll jobs are client helpers, not extra API operations.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.
Fields, results and workflow.

Client helpers