Billing
Get Usage
Any Member. Relayed traffic of the Network in the current period, against its pool.
GET
Any Member. Relayed traffic of the Network in the current period, against its pool.
header
AuthorizationBearer <token>qlt_… Access token (kind api)
account_id*stringOK
application/json- response
period*relay*by_day*array<>by_device*array<>up to 20 Devices with the most Relayed bytes this period
by_relay*array<>direct_share*|estimated share of the Network's traffic that went directly between Devices; null until the engines report byte counters (#109)
curl -X GET 'https://tiltas.openpanel.sh/api/v1/accounts/string/usage'Example Response200
{ "period": { "start": "2019-08-24T14:15:22Z", "end": "2019-08-24T14:15:22Z", "basis": "subscription" }, "relay": { "used_bytes": 0, "pool_bytes": 0, "percent": 0, "state": "ok", "slowed_rate_bits_per_sec": 0, "alerts_sent": [ 0 ] }, "by_day": [ { "day": "2019-08-24", "bytes": 0 } ], "by_device": [ { "device_id": "string", "name": "string", "bytes": 0 } ], "by_relay": [ { "relay": "string", "bytes": 0 } ], "direct_share": 0}