RelayAPI

Get daily API call counts

Returns per-day API call counts for the organization over the requested window, split into publish (write) and listen (read) calls. Days with no calls are omitted.

GET
/v1/usage/timeseries
AuthorizationBearer <token>

API key (rlay_live_* or rlay_test_). Invite redemption also accepts a server-derived rlay_session_ bearer for a current user session.

In: header

Query Parameters

days?integer

Number of days of history to include (1–365)

Range1 <= value <= 365
Default365

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/usage/timeseries"
{  "days": [    {      "date": "string",      "listen": 0,      "publish": 0,      "total": 0    }  ],  "range": {    "from": "2019-08-24T14:15:22Z",    "to": "2019-08-24T14:15:22Z"  }}

Found something wrong? Help us improve this page.