Contents

API reference

Usage

API reference descriptions are provided in English to preserve the exact published contract.

Get usage grouped by account dimension

GET /v1/accounts/{AC}/usage

Required scope: `usage:read`.

Parameters

Parameters
NameTypeRequiredDescription
groupByquery · "day" | "sender" | "category" | "subaccount"
fromquery · string (date)
toquery · string (date)
ACpath · string (AC… SID)yesAccount SID

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Get API request usage by route family

GET /v1/accounts/{AC}/usage/api

Per-minute aggregate. Ship Messages keeps no per-request log, so this reports request counts, rate-limited counts and latency by route family and status class. Required scope: `usage:read`.

Parameters

Parameters
NameTypeRequiredDescription
hoursquery · integer (1–168)
ACpath · string (AC… SID)yesAccount SID

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Get API consumption by credential, endpoint and rate-limit scope (DEV-013)

GET /v1/accounts/{AC}/usage/api-consumption

developer view. Aggregated from the retained request facts, so consumption is attributable to the API key that spent it, to the route template it was spent on, and a 429 to the RateLimit-Policy scope that refused it. Required scope: `usage:read`.

Parameters

Parameters
NameTypeRequiredDescription
hoursquery · integer (1–168)
ACpath · string (AC… SID)yesAccount SID

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Get plan and Meta limits with utilisation

GET /v1/accounts/{AC}/usage/limits

Required scope: `usage:read`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.