Usage

Organization usage totals

Per-day request counts for the calling key's organization over a bounded recent window, plus the sum. Derived from the same rollup that meters every authenticated call. Exempt from rate limiting.

GET
/v1/usage

Per-day request counts for the calling key's organization over a bounded recent window, plus the sum. Derived from the same rollup that meters every authenticated call. Exempt from rate limiting.

Authorization

OrionApiKey
x-orion-token<token>

In: header

Query Parameters

days?|

Window length in days, ending today (UTC). Default 7, maximum 30.

Formatint32
Range0 <= value

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/usage"
{  "days": [    {      "client_errors": 0,      "date": "string",      "requests": 0,      "server_errors": 0,      "success": 0    }  ],  "from": "string",  "org_id": "string",  "to": "string",  "total": {    "client_errors": 0,    "date": "string",    "requests": 0,    "server_errors": 0,    "success": 0  }}