Reference
The external contract: webhook events, error codes, scopes and the glossary.
The REST API references are separate documents with their own navigation, one for each service you call. Each is generated from the service’s OpenAPI document: one page per operation, plus the request and response schemas. The sidebar leads back to these docs, and search covers both.
| Reference | Covers |
|---|---|
| Provision API | Licensing, entitlements, sessions, products, usage and admin |
| Webhooks API | Subscriptions, deliveries, dead letters and the event types |
| Hardware keys API | Activating a license with a YubiKey, online and offline |
| Stripe connector API | Registering connectors, mapping Stripe subscriptions and starting Stripe checkout |
| Privacy API | Data-subject requests and the processing activities |
| Users and organizations API | The users and customer organizations of your account, and who belongs to which |
Every failure in the references is the same application/problem+json body, described once.
The answers that carry headers (Retry-After, WWW-Authenticate) list them. A number is a JSON
number, and an amount of money is a decimal.
- Webhook events — the full catalog of emittable events, the envelope, and the signing scheme.
- Error codes — the
application/problem+jsoncontract (RFC 9457). - Glossary — terms used across the docs.
Auth & scopes
Section titled “Auth & scopes”Oclavex uses OAuth 2.0 / OIDC. Your backend authenticates with the client-credentials grant; interactive users sign in through the browser (authorization code with PKCE). The runtime activation endpoints don’t use scopes at all — they’re either anonymous or authenticated by the license session token. The full walkthrough is in Authentication.
Scope format
Section titled “Scope format”Scopes are space-separated in the token’s scope claim and follow
<area>.<resource>.<verb>. Matching is wildcard-aware per segment and
verb-granular: provision.* grants everything under provisioning,
provision.product.* all product verbs, provision.product.read just reads.
A client only receives the scopes granted to it in
Settings → API credentials; requesting more at the token endpoint doesn’t add them.
Provisioning scopes
Section titled “Provisioning scopes”Each resource below has create, read, update and delete verbs plus a .* wildcard, unless noted.
The routes and scopes table names the scope of every route.
| Scope resource | Grants |
|---|---|
provision.product.* |
Author the catalog: products, versions, features, metrics and monitored assets. |
provision.feature-catalog.* |
The feature catalog that products draw their features from. |
provision.rating-campaign.* |
Campaigns that ask users to rate features. |
provision.signing-key.* |
The license-signing keys: list, publish, promote and delete. provision.signing-key.read alone lists the keys and nothing else; give it to the build pipeline that fetches the keys to pin — see Rotating keys in a test environment. |
provision.entitlement.* |
Author entitlements and entitlement offers; publish, unpublish, pause and resume them, and stop or allow their new activations. |
provision.entitlement-renewal.update |
Answer a renewal without editing the order: move a fixed end date later, let an entitlement lapse at its end, and take that back. |
provision.campaign.* |
Sales campaigns and their performance report. |
provision.feedback.read / .update |
Read and triage the feedback end users send. |
provision.user-portal-setting.read / .update |
Read and set the support contact the user portal shows your customers. |
provision.plan-change-request.read / .update |
Read, approve and decline the plan changes end users ask for. |
provision.lifecycle-step.read |
Read the steps of the license lifecycle. |
provision.platform-quota.read |
Read how much of your plan the account uses. |
provision.activation.* |
Day-to-day operations on entitlements: issue activation codes, renew subscriptions, restart trials, change seats, and free, reset or block activations and devices. |
provision.action-item.read / .update |
Snooze action items and hide cards. |
provision.license-session.* |
List license sessions (activations) across the account. |
provision.own-license.* |
A signed-in user’s own licenses and sessions (self-service). |
provision.usage.* |
Report usage transactions for an entitlement. Reading a session’s usage and consumption takes provision.own-license.read. |
provision.plan-set.* |
Usage plan sets and their plans. |
provision.add-on.* |
The add-ons offered on suites and products. |
provision.suite.* |
Product suites and their members. |
provision.monitored-asset.read / .update / .delete |
Monitored assets with their balances and quotas. |
provision.usage-report.read |
Read the usage and feature-value reports. |
provision.balance-adjustment.* |
Operate credit balances: deposit, withdraw, suspend and resume. |
provision.tag.* |
Manage the catalog’s tags: list, create, rename, merge and delete them. |
provision.catalog.read / .update |
Export the whole catalog, or compare and import one (e.g. sandbox → production). |
provision.billing-event.create |
Post subscription, account and credit events from your own billing system — see Billing events. |
Other areas
Section titled “Other areas”| Scope | Grants |
|---|---|
webhooks.own-subscription.* |
Manage subscriptions through the integrator API (e.g. Zapier). The only grantable webhooks scope. |
privacy.data-subject-request.read / .create / .update |
List, file and resolve data-subject requests. |
privacy.processing-activity.read |
Read the record of processing activities. |
privacy.own-data-subject-request.read / .create |
A user asking for a copy of their own data, or to have it erased, and seeing how their requests stand. |
identity.client.* |
Manage the OAuth clients under Settings → API credentials — including secret rotation — via the API. |
identity.sign-in-setting.read / .update / .delete |
External sign-in providers, the MFA policy and self-service sign-up. |
identity.user-mfa.read / .update |
Read and reset a user’s two-factor sign-in. |
organization.user.* |
Manage the users on the account through the Users and organizations API. |
organization.organization.* |
Manage customer organizations and their members through the Users and organizations API. |
organization.user-role.update |
Change which roles a user holds, on create, update or patch. |
organization.user-access.update |
Flip a user’s approved/blocked flags — nothing else. |
organization.own-profile.read / .update |
A user reading and updating their own profile and agreements only. |
organization.own-authorization.read / .delete |
A user listing and removing the apps they let sign in as them. |
data.metrics.read |
Read metric data (dashboards, reporting pipelines). |
data.audit.read |
Read the audit trail. |
data.ratings.read |
Read collected feature-rating responses. |
data.user-activity.read |
Reserved: registered and grantable, but no endpoint uses it yet. |
The platform-reserved scopes — everything under oclavex. (such as oclavex.platform.operate and
oclavex.plan-limit.bypass) and platform., provision.activation-admission.* and the license
session’s own license.session.update — exist in the catalog but are never grantable to tenant clients. Neither are the
data scopes only Oclavex’s own services hold: data.metrics.ingest (usage ingestion)
and data.targeting.read (the inputs Oclavex uses to pick which feature to ask a
user to rate). The own-account.*
scopes, which manage your organization’s environments and tenant settings, aren’t
grantable either: administrators hold them through their role and use them in the portal.
The same holds for the stripe.* scopes, which manage the Stripe billing connector.
The onboarding.* scopes create organizations and are held only by Oclavex.
The licensing, directory, data and API-credential endpoints also honor a permissions
claim carrying role bundles alongside scope, so a token can satisfy them through either.
The webhooks, privacy and Stripe connector endpoints read scope only.
A create, update or delete scope includes the read of the same resource. A .read scope never
allows writing, and ingest, bypass and operate never include a read.
What portal roles hold
Section titled “What portal roles hold”Portal users get a default scope set from their role: Admin holds the full
admin surface; Sales adds entitlement authoring and operations, credit-balance
operations and creating and editing customers (not their roles) on top of the read-only scopes every role holds; Support
adds entitlement operations, credit-balance operations and user approval;
Viewer is read-only plus its own profile (organization.own-profile.update).
User tokens are always capped at what the role allows.