/developers
Developer docsAtom Files ↗
← API referenceUsage & billing · API access unavailable
API REFERENCE / USAGE

GET /v1/usage/summary

See observed activity for a bounded time window. Separate the route that delivered bytes from the units that may be billed. An integration can see its own usage; account-wide totals require an owner or billing-admin grant.

Request fields

LocationFieldTypeRequiredDescription
HeaderAuthorizationstringYesCredential scoped to the authorized resource.
Queryfromstring (date)YesInclusive period start.
Querytostring (date)YesExclusive period end.

Request example

Example request
GET /v1/usage/summary?from=2026-10-01&to=2026-11-01
Authorization: Bearer <scoped token>

HTTP status codes

StatusMeaning
200 OKSuccess response shown below.
400 Bad RequestInvalid reporting period.
401 UnauthorizedMissing, expired, or invalid credential.
403 ForbiddenCredential is valid but lacks the required scope or role.
429 Too Many RequestsRate limit reached; honor Retry-After when provided.
503 Service UnavailableService temporarily unavailable; retry safely.

Response fields

FieldTypeExample
periodobject{…}
period.fromstring (date)2026-10-01
period.tostring (date)2026-11-01
statusstringestimated
observed_throughstring (date-time)2026-10-20T18:00:00Z
transfer_bytesobject{…}
transfer_bytes.direct_peerinteger104857600
transfer_bytes.relayinteger16777216
transfer_bytes.cloud_egressinteger0
api_requestsinteger42
billableobject[][1 shown]
billable[].meterstringrelay_egress_bytes
billable[].quantityinteger16777216
billable[].unitstringbyte

Response example

Example response
200 OK
Content-Type: application/json

{
  "period": {
    "from": "2026-10-01",
    "to": "2026-11-01"
  },
  "status": "estimated",
  "observed_through": "2026-10-20T18:00:00Z",
  "transfer_bytes": {
    "direct_peer": 104857600,
    "relay": 16777216,
    "cloud_egress": 0
  },
  "api_requests": 42,
  "billable": [
    {
      "meter": "relay_egress_bytes",
      "quantity": 16777216,
      "unit": "byte"
    }
  ]
}

How it works

Logical file bytes and physical transfer bytes are different. Internal retries, duplicate events, and a relay hop must not silently create duplicate billable usage. Meter definitions and prices must be published before charging customers.