API · Dashboard keys
Calls, credits and errors per UTC day and per endpoint. Last 30 days by default.
GET /v1/accounts/{id}/usage
| |
|---|
| Request | GET /v1/accounts/{id}/usage |
| Operation id | accounts.usage |
| Cost | Free |
| Auth | Dashboard session: Authorization: Bearer <session_token>. API keys are refused. |
| Name | Type | Required | Description |
|---|
id | string | yes | Example: acct_01J…. |
| Name | Type | Required | Description |
|---|
from | string | no | |
to | string | no | |
| Status | Meaning | Schema |
|---|
200 | Usage. | Usage |
400 | Invalid range. | Error |
401 | Not signed in, or an API key was sent (keys cannot manage keys). | Error |
404 | No such account among yours, or no such key on it. | Error |
| Field | Type | Description |
|---|
from | string | |
to | string | |
totals | object | |
days | object[] | |
endpoints | object[] | |
Errors use one shape everywhere; see Errors for every code and what to do.