curl --request GET \
--url "https://api.nixflex.com/v1/usage" \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
import Nixflex from 'nixflex';
const baseUrl = 'https://api.nixflex.com';
const client = new Nixflex({apiKey:process.env.NIXFLEX_API_KEY,baseUrl,maxRetries:0});
const result = await client.usage.get();
// Handle result privately; do not log secrets or call content.
import os, json
from pathlib import Path
from nixflex import Nixflex
base_url = "https://api.nixflex.com"
with Nixflex(os.environ["NIXFLEX_API_KEY"], base_url=base_url,max_retries=0) as client:
result = client.usage.get()
# AsyncNixflex supports the same calls with await (and async with).
nixflex usage --base-url https://api.nixflex.com --json
{
"plan": "example",
"total_calls": 12,
"total_minutes": 7.5,
"total_cost": 0.75,
"rate_limit_per_minute": 300,
"max_concurrent": 10,
"peak_concurrent_this_month": 2,
"rejected_at_cap_this_month": 0,
"occupied_call_slots": 0,
"capacity_source": "owned_reservations",
"capacity_measured_since": "2026-11-01T00:00:00.000Z"
}
Account and usage
Get account usage
Read Nixflex account usage and call-capacity information. Occupancy can include unresolved reservations as well as active calls.
GET
/
usage
curl --request GET \
--url "https://api.nixflex.com/v1/usage" \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
import Nixflex from 'nixflex';
const baseUrl = 'https://api.nixflex.com';
const client = new Nixflex({apiKey:process.env.NIXFLEX_API_KEY,baseUrl,maxRetries:0});
const result = await client.usage.get();
// Handle result privately; do not log secrets or call content.
import os, json
from pathlib import Path
from nixflex import Nixflex
base_url = "https://api.nixflex.com"
with Nixflex(os.environ["NIXFLEX_API_KEY"], base_url=base_url,max_retries=0) as client:
result = client.usage.get()
# AsyncNixflex supports the same calls with await (and async with).
nixflex usage --base-url https://api.nixflex.com --json
{
"plan": "example",
"total_calls": 12,
"total_minutes": 7.5,
"total_cost": 0.75,
"rate_limit_per_minute": 300,
"max_concurrent": 10,
"peak_concurrent_this_month": 2,
"rejected_at_cap_this_month": 0,
"occupied_call_slots": 0,
"capacity_source": "owned_reservations",
"capacity_measured_since": "2026-11-01T00:00:00.000Z"
}
FIXED · account Agents are unlimited. There is no fee per agent. Customers pay only for usage (minutes and texts). Many customers can use one shared agent, each with its own number and number prompt. Use separate agents only for different knowledge or agent settings. List page size, knowledge-base quotas and simultaneous-call limits do not cap agent count.
NOT OFFERED → do this instead · number A separate agent does not create a separate account capacity budget. Pace each business within the account-wide call budget.
YOU CAN CHANGE · call Save the customer and verified business number with each request.
SCOPE · agent Group numbers by the knowledge and agent settings their customers need. Attribute each customer’s usage to its verified business number.
Read the compact AI rules
Read stored account usage and call-capacity information. Occupancy can include unresolved reservations, so it is not simply the number of connected conversations.
Method: GET ·
Success: 200 ·
Scope: Owning account
The important part
- Use the returned max_concurrent value for this account.
- Usage counters and unresolved reservations are not the same as an invoice or connected-call count.
Authentication
SendAuthorization: Bearer KEY_ID:KEY_SECRET using the owning account’s server-side credential.
Request fields
No request body or query fields are required. No request fields are required. The three reservation fields are present only when that capacity implementation is enabled. Historical counters are not a complete billing ledger. Optional fields can be absent; preserve null values instead of turning them into zero.Response fields
200 OK returns the shape below. Nullable fields can be unknown or unset; do not turn null into zero or false.
| Field | Type | Meaning |
|---|---|---|
plan | string or null | Saved account plan label. |
total_calls | number or null | Stored account call counter. |
total_minutes | number or null | Stored account minutes; can be fractional. |
total_cost | number or null | Stored account cost value; this is not an invoice or independent carrier charge total. |
rate_limit_per_minute | number or null | Saved request limit. Request headers describe the effective limit. |
max_concurrent | integer | Current configured call capacity; the default is 10 when no positive limit is stored. Minimum 0. |
peak_concurrent_this_month | integer | Observed monthly peak; best-effort measurement. Minimum 0. |
rejected_at_cap_this_month | integer | Recorded monthly refusals at capacity; best-effort telemetry can be zero when unavailable. Minimum 0. |
occupied_call_slots | integer | Optional owned reservation count, including unresolved reservations. Minimum 0. |
capacity_source | string | Present with owned-reservation capacity. |
capacity_measured_since | string or null | Optional start of capacity measurement. Format: date-time. |
Example request
Raw HTTP base URL:https://api.nixflex.com/v1. Node and Python SDK base URL: https://api.nixflex.com. The SDK adds /v1. Keep NIXFLEX_API_KEY in your private process environment. The shell examples use Bash syntax. SDK and CLI examples require Node/CLI 0.11.0 or later and Python 0.4.0 or later.
curl --request GET \
--url "https://api.nixflex.com/v1/usage" \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
import Nixflex from 'nixflex';
const baseUrl = 'https://api.nixflex.com';
const client = new Nixflex({apiKey:process.env.NIXFLEX_API_KEY,baseUrl,maxRetries:0});
const result = await client.usage.get();
// Handle result privately; do not log secrets or call content.
import os, json
from pathlib import Path
from nixflex import Nixflex
base_url = "https://api.nixflex.com"
with Nixflex(os.environ["NIXFLEX_API_KEY"], base_url=base_url,max_retries=0) as client:
result = client.usage.get()
# AsyncNixflex supports the same calls with await (and async with).
nixflex usage --base-url https://api.nixflex.com --json
Example response
Illustrative200 response. Identifiers and values are examples; some optional or compatibility fields are omitted.
{
"plan": "example",
"total_calls": 12,
"total_minutes": 7.5,
"total_cost": 0.75,
"rate_limit_per_minute": 300,
"max_concurrent": 10,
"peak_concurrent_this_month": 2,
"rejected_at_cap_this_month": 0,
"occupied_call_slots": 0,
"capacity_source": "owned_reservations",
"capacity_measured_since": "2026-11-01T00:00:00.000Z"
}
Errors
Failures return anerror object with code, message, doc_url and optional details. Each code links to the shared error catalog. Read the message and details before deciding whether to resend.
| Status | Code | Meaning | What to do |
|---|---|---|---|
| 503 | capacity_lookup_unavailable | The current owned call capacity could not be confirmed. | Wait and retry the read; do not invent zero occupancy. |
| 401 | unauthorized | The credential is missing or invalid. | Check the full account credential. |
| 429 | rate_limit_exceeded | The account request limit was reached. | Wait for Retry-After. Reconcile uncertain writes before resending. |
Retry and idempotency
This is a read-only request. Retry transient connection or server failures with bounded backoff; respect Retry-After for 429. Do not retry validation or ownership errors unchanged. A later read can return newer state.Related endpoints
Authorizations
Response
OK