# GET /bandwidth

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the users group.

List monthly bandwidth totals by customer

- Who may call it: administrator, reseller
- Token scope, any of: users, read, all
- Answers: 200 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

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

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/bandwidth?month=text" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "month": "text",
  "totals": [
    {
      "bytes": 1,
      "name": "alice"
    }
  ]
}
```

## Errors

- 400: A month is written YYYY-MM
- 401: Authentication required
