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

GET
/api/v1/provision/admin/platform-quota/usage
curl --request GET \
--url https://example.com/api/v1/provision/admin/platform-quota/usage \
--header 'Authorization: Bearer <token>'

Reports used and licensed figures for entitlements, entitlement offers, catalog features and active licenses.

  • oidc
    provision.platform-quota.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.

One entry per enforced count-based quota.

Media typeapplication/json

The tenant’s count-based Provision quotas (entitlements, entitlement offers, catalog features and active licenses), and the on/off features of its Oclavex plan.

object
quotas
required

One entry per enforced quota.

Array<object>

One count-based platform quota: how many the tenant holds now, and how many its subscription allows. Used is produced by the same count the enforcing gate performs, so a figure shown from it cannot disagree with the refusal the tenant would receive.

object
featureCode
required

The numeric license feature this quota is enforced on, e.g. entitlements.active.

string
name
required

Display name from the platform feature catalog.

string
used
required

Instances currently counted against the quota.

integer format: int32
limit
required

The licensed ceiling. Zero when the caller bypasses licensing (sysadmin, or a token holding oclavex.plan-limit.bypass) — there is no cap to render in that case, so treat it as unlimited rather than as a cap of nought.

integer format: int32
canAddMore
required

Whether one more instance would still be within the licensed ceiling.

boolean
message
required

The refusal the gate would produce, or empty while there is room.

string
features
required

One entry per on/off plan feature: whether the plan includes user ratings, webhooks and so on.

Array<object>

One on/off feature of the tenant’s Oclavex plan, such as user ratings or webhooks.

object
featureCode
required

The license feature, e.g. data-collection.user-ratings.

string
name
required

Display name from the platform feature catalog.

string
included
required

Whether the plan includes it, as the gates that enforce it read the plan.

boolean
Examplegenerated
{
"quotas": [
{
"featureCode": "example",
"name": "example",
"used": 1,
"limit": 1,
"canAddMore": true,
"message": "example"
}
],
"features": [
{
"featureCode": "example",
"name": "example",
"included": true
}
]
}
X-Correlation-Id
string

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

The request carries no valid access token (auth.required).

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.

The caller may not make this call. The code and requires members say why: a missing scope, or a plan that does not include it.

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.