Skip to content
Oclavex is in private preview, open to existing MonetizeIt users. New users who would like to evaluate Oclavex before the public launch can request access at info@revenusion.com.

Get usage metrics report

GET
/api/v1/provision/admin/reports/usage-metrics
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.

  • oidc
    provision.usage-report.read
X-Correlation-Id
string

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.

OK

Media typeapplication/json

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
generatedAt
required
string format: date-time
metrics
required
Array<object>

A single metric value within a report.

object
metricName
required

Unique metric identifier, e.g. “entitlement.active.total”.

string
name
required

Human-readable display name, e.g. “Active Entitlements”.

string
description
required

What this metric measures.

string
category
required

Tier/category tag, e.g. “Active”, “Compliance”, “Growth”, “Adoption”.

string
tags
required

Cross-cutting classification tags for secondary grouping/filtering.

Array<string>
value
required

Current snapshot value.

number format: decimal
numberFormat
required

Display format hint, e.g. “0”, “0.0”, “0.0%”.

string
sampledAt
required

When this metric value was sampled (UTC).

string format: date-time
entitlementId
required

Associated entitlement ID, if the metric is scoped to one.

null | string format: uuid
entitlementName
required

Display name of the associated entitlement.

string
assignedPlanSetId
required

Assigned plan set ID for the associated entitlement, when available.

null | string format: uuid
assignedPlanName
required

Assigned plan name for the associated entitlement, when available.

null | string
productId
required

Associated product ID, if the metric is scoped to one.

null | string format: uuid
productName
required

Display name of the associated product.

string
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"
}
]
}
X-Correlation-Id
string

The correlation id of the call: the one you sent, or the one the server made.

Unauthorized

Media typeapplication/problem+json

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
type

A reference to the code’s entry on the error-codes page.

string
title

A short summary of the problem.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong in this call, in a sentence.

string
instance

The path of the call.

string
code
required

The stable numeric error code. The error-codes page lists them.

integer format: int32
codeName
required

The stable name of the error code, for example resource.not_found.

string
traceId
required

The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.

string
requires

The scope or condition the caller is missing, on a refusal that names one.

null | string
scope

The limiter that shed the call, on a 429.

null | string
errors

On a validation failure, the messages for each field, keyed by the field’s name.

null | object
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": 1,
"codeName": "example",
"traceId": "example",
"requires": "example",
"scope": "example",
"errors": "example"
}
X-Correlation-Id
string

The correlation id of the call: the one you sent, or the one the server made.

WWW-Authenticate
string

How to authenticate: the bearer challenge.

Forbidden

Media typeapplication/problem+json

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
type

A reference to the code’s entry on the error-codes page.

string
title

A short summary of the problem.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong in this call, in a sentence.

string
instance

The path of the call.

string
code
required

The stable numeric error code. The error-codes page lists them.

integer format: int32
codeName
required

The stable name of the error code, for example resource.not_found.

string
traceId
required

The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.

string
requires

The scope or condition the caller is missing, on a refusal that names one.

null | string
scope

The limiter that shed the call, on a 429.

null | string
errors

On a validation failure, the messages for each field, keyed by the field’s name.

null | object
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": 1,
"codeName": "example",
"traceId": "example",
"requires": "example",
"scope": "example",
"errors": "example"
}
X-Correlation-Id
string

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).

Media typeapplication/problem+json

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
type

A reference to the code’s entry on the error-codes page.

string
title

A short summary of the problem.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong in this call, in a sentence.

string
instance

The path of the call.

string
code
required

The stable numeric error code. The error-codes page lists them.

integer format: int32
codeName
required

The stable name of the error code, for example resource.not_found.

string
traceId
required

The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.

string
requires

The scope or condition the caller is missing, on a refusal that names one.

null | string
scope

The limiter that shed the call, on a 429.

null | string
errors

On a validation failure, the messages for each field, keyed by the field’s name.

null | object
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": 1,
"codeName": "example",
"traceId": "example",
"requires": "example",
"scope": "example",
"errors": "example"
}
X-Correlation-Id
string

The correlation id of the call: the one you sent, or the one the server made.

Retry-After
integer

The seconds to wait before the call is sent again.

X-RateLimit-Limit
integer

The calls the limiter allows in its window, when it knows.

X-RateLimit-Remaining
integer

The calls left in the window, when the limiter knows.

X-RateLimit-Reset
integer

The seconds until the window resets, when the limiter knows.

X-RateLimit-Scope
string

Names the limiter that shed the call.