{
  "name": "Traffic balance API",
  "description": "Read-only traffic balance for a single account. Every caller sees only their own account, and no credentials are ever included in a response.",
  "endpoints": {
    "GET /residential/users/{uuid}?token=…": "Balance for one account. The signed token is issued by the operator and pinned to that uuid. `Authorization: Bearer <token>` works too.",
    "POST /residential/users/{uuid}": "Balance authenticated by the account's package password: JSON body {\"password\":\"…\"} (or an x-package-password header). Only the package matching that password is returned.",
    "GET /residential/users/{uuid}/domains?token=…&start=YYYY-MM-DD&end=YYYY-MM-DD&limit=N": "Traffic per destination host over whole UTC days (today when no dates are given; at most 31 days), largest first. Needs a token that is not limited to one package.",
    "GET /health": "Liveness probe."
  },
  "units": "All *_gb fields are gigabytes (1 GB = 1024^3 bytes); *_bytes are bytes."
}
