Query Balance
Customers can query the organization balance programmatically with an API key (prefixed sk_live_) — no login session required. The API accepts API key authentication only, and the balance is organization-level.
Authentication
Put the API key in the request header:
Authorization: Bearer sk_live_YOUR_API_KEY
API keys are created on the console "API Keys" page, bound to an organization and a project.
API
Examples
curl https://silvamux.io/api/business/v1/customer/balance \
-H "Authorization: Bearer $SILVAMUX_API_KEY"
Response:
{
"balance_points": "42.5",
"overdraft_limit_points": "10",
"overdraft_duration_hours": 48,
"overdraft_started_at": "2026-11-16T08:00:00Z"
}
| Field | Type | Description |
|---|---|---|
balance_points | string | Current balance in points; negative means the organization is in overdraft |
overdraft_limit_points | string | Overdraft (credit) limit in points; 0 means overdraft is not enabled |
overdraft_duration_hours | integer | Overdraft window in hours; calls still succeed within this window after the balance goes negative |
overdraft_started_at | string | null | Overdraft window start time (RFC3339); null when not overdrafting |
Overdraft
When the balance is insufficient, the organization may keep calling within overdraft_limit_points.
The window starts at overdraft_started_at; once overdraft_duration_hours elapses or the limit is
exhausted, requests are rejected.
Use these fields to decide when to top up:
balance_pointsnegative → already overdrafting; watch the expiry fromoverdraft_started_at+overdraft_duration_hours.overdraft_limit_pointsis0→ overdraft is not enabled for this organization, so an exhausted balance blocks calls immediately.overdraft_started_atnon-null → the overdraft window has started; top up before it expires.
Error Handling
| HTTP | Code | Description |
|---|---|---|
| 401 | INVALID_TOKEN | API key missing or invalid |