Get your free beta license ↗
API operation · users group
GET

/bandwidth

First published 3 Oct 20260.1.0Unchanged since publication

List monthly bandwidth totals by customer

Who may call it
AdministratorResellerCustomer
Token scope, any of
usersreadall
Answers200 OK

The response includes the selected month and each customer's name and total bytes, ordered by name. Customers with no recorded traffic for the month have a total of 0 bytes. Administrators see all customers. Resellers see their own total and those of their customers.

Use month in YYYY-MM format. It defaults to the server's current month. Returns 400 for an invalid month.

Parameters

monthquery ·string, matching ^\d{4}-(0[1-9]|1[0-2])$

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/bandwidth?month=text" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "month": "text",
  "totals": [
    {
      "bytes": 1,
      "name": "alice"
    }
  ]
}

Errors

2 errors, each a status and a sentence
400A month is written YYYY-MM
401Authentication required
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/get-bandwidth/