Get usage metrics report
const url = 'https://example.com/api/v1/provision/admin/reports/usage-metrics';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/provision/admin/reports/usage-metrics \ --header 'Authorization: Bearer <token>'Returns a snapshot report of all current usage metrics, grouped by category/tier.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”An id of your own for the call. The answer returns it in the same header, and the server log carries it; when you send none, the server makes one.
Responses
Section titled “Responses”OK
Server-aggregated usage metrics report. Contains a flat list of metric entries, each tagged with its category/tier. The report is agnostic to which specific metrics are defined — new collectors automatically appear without DTO changes. Historical/time-series chart data should be queried separately via DataService.
object
A single metric value within a report.
object
Unique metric identifier, e.g. “entitlement.active.total”.
Human-readable display name, e.g. “Active Entitlements”.
What this metric measures.
Tier/category tag, e.g. “Active”, “Compliance”, “Growth”, “Adoption”.
Cross-cutting classification tags for secondary grouping/filtering.
Current snapshot value.
Display format hint, e.g. “0”, “0.0”, “0.0%”.
When this metric value was sampled (UTC).
Associated entitlement ID, if the metric is scoped to one.
Display name of the associated entitlement.
Assigned plan set ID for the associated entitlement, when available.
Assigned plan name for the associated entitlement, when available.
Associated product ID, if the metric is scoped to one.
Display name of the associated product.
Examplegenerated
{ "generatedAt": "2026-04-15T12:00:00Z", "metrics": [ { "metricName": "example", "name": "example", "description": "example", "category": "example", "tags": [ "example" ], "value": 1, "numberFormat": "example", "sampledAt": "2026-04-15T12:00:00Z", "entitlementId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "entitlementName": "example", "assignedPlanSetId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "assignedPlanName": "example", "productId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "productName": "example" } ]}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
Unauthorized
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
How to authenticate: the bearer challenge.
Forbidden
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
Too many requests. Wait the seconds in Retry-After, then send the call again (service.too-many-requests).
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
The seconds to wait before the call is sent again.
The calls the limiter allows in its window, when it knows.
The calls left in the window, when the limiter knows.
The seconds until the window resets, when the limiter knows.
Names the limiter that shed the call.