API · Dashboard billing
GET /accounts/{id}/billing
Balance, payment history, auto top-up and the low-balance alert.
| |
|---|
| Request | GET /v1/accounts/{id}/billing |
| Operation id | accounts.billing |
| Cost | Free |
| Auth | Dashboard session: Authorization: Bearer <session_token>. API keys are refused. |
| Name | Type | Required | Description |
|---|
id | string | yes | Example: acct_01J…. |
| Status | Meaning | Schema |
|---|
200 | Billing. | AccountBilling |
401 | Not signed in, or an API key was sent. | Error |
404 | No such account among yours. | Error |
| Field | Type | Description |
|---|
balance | integer | |
card_payments | boolean | Whether this server takes cards. |
low_balance_alert_credits | integer | null | |
auto_topup | AutoTopup | |
payments | object[] | |
Errors use one shape everywhere; see Errors for every code and what to do.