Skip to content

Measured consumption per day

GET
/api/organizations/{organizationId}/billing/usage

Returns the organization's measured consumption, one entry per day, newest day first: traffic split into EU and non-EU, and storage. Traffic is summed across all of the organization's zones. A day appears once it has been measured - the previous day is measured every morning, so there is no entry for the current day. Storage is not measured yet and is always reported as 0.

Authorizations

ApiToken

Long-lived API token created via POST /api/api-tokens (returned once in plaintext). A token created with readOnly may only perform safe requests (GET, HEAD, OPTIONS); write requests are rejected on every endpoint.

Type
API Key (header: X-API-TOKEN)
or
JWT

JWT access token obtained via POST /api/auth/login. Send as: Authorization: Bearer .

Type
HTTP (bearer)

Parameters

Path Parameters

organizationId*

Organization identifier

Type
string
Required

Query Parameters

from

Only include days on or after this date (YYYY-MM-DD).

Type
string
Format
"date"
to

Only include days on or before this date (YYYY-MM-DD).

Type
string
Format
"date"

Responses

billing collection

JSON
{
  
"totalItems": 0,
  
"search": {
  
  
"@type": "string",
  
  
"template": "string",
  
  
"variableRepresentation": "string",
  
  
"mapping": [
  
  
  
{
  
  
  
  
"@type": "string",
  
  
  
  
"variable": "string",
  
  
  
  
"property": "string",
  
  
  
  
"required": true
  
  
  
}
  
  
]
  
},
  
"member": [
  
  
{
  
  
  
"@context": "string",
  
  
  
"@id": "string",
  
  
  
"@type": "string",
  
  
  
"date": "2026-07-01",
  
  
  
"trafficEuBytes": 5368709120,
  
  
  
"trafficNonEuBytes": 1073741825,
  
  
  
"storageBytes": 0
  
  
}
  
]
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI