Public read: GET /usage ·
Capacity: Current max_concurrent ·
Payments: Dashboard workflow
The important part
- Null or absent values mean unknown, not zero.
- Call capacity and HTTP request limits are separate.
- Payments and saved payment methods use the permitted dashboard workflow.
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 current usage
Node and Python below use their standard HTTP clients. KeepNIXFLEX_API_KEY on the server. The CLI examples require a CLI version that supports the command; see release status. No example retries a mutation automatically.
2. Preserve unknown values
Keep null and absent fields distinct from zero.total_cost is a stored account value, not an invoice or complete total of external telephone charges. Avoid exposing money fields to Member dashboard sessions.
3. Use current capacity
Use the returnedmax_concurrent, not a hard-coded unlimited promise. The default is 10 when no positive limit is stored. Optional occupied_call_slots includes unresolved owned reservations, not only connected conversations.
4. Handle current admission
Balance, capacity and active-state checks run when work is admitted. A successful usage read does not reserve a slot or guarantee the next call will start. Respect admission refusals and contact holds.5. Reconcile payment changes in Billing
Owner and Admin can use Billing. A charge, top-up, auto top-up setting and saved payment method have separate confirmation states. Keep pending or uncertain outcomes visible and do not repeat a charge merely because a browser response was lost.Example response
For example,{"total_calls":12,"total_minutes":18.5,"total_cost":null,"max_concurrent":10} is a usage snapshot with an unknown cost, not a zero-cost invoice.