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.

Fetch license token

POST
/api/v1/provision/activations/jwt
curl --request POST \
--url https://example.com/api/v1/provision/activations/jwt \
--header 'Content-Type: application/json' \
--data '{ "activationCode": "example", "fingerprint": "example", "components": { "MachineName": "3f7a9c1e5b2d4a60" }, "fingerprintMethod": "example", "deviceName": "example", "applicationScope": "example", "applicationInstanceId": "example", "email": "example", "requestedLeaseDuration": "PT15M", "targetSoftwareVersion": "example", "useInteractiveUser": true, "tryMode": true }'
Use when the client only needs the token (smaller payload).
Re-activating the same device (same activation code + fingerprint) returns the existing session rather than creating a duplicate, so clients can safely retry network failures.
With `useInteractiveUser`, the license is one of the signed-in account's licenses: `activationCode` then carries that license's license key (each license's page in the user portal shows it), and may be left out when the account has one Published license.
Error model follows RFC7807 (`ProblemDetails`) with a numeric `code` and dotted `codeName` in `extensions`:
* license.not_foundThe activation code is not valid or was removed, or it has expired.
  • license.expiredThe license has ended. Check-in and renewal of a session past the end give the same answer.
  • license.forbidden_by_policyActivation is blocked by the entitlement’s activation policy (e.g., authentication or identity verification required, or a hardware key required).
  • license.hardware_keys_not_licensedThe activation came through the hardware-key add-on, the plan does not include hardware keys, and the license does not require one.
  • license.validation_errorThe request body or activation code is invalid.
  • license.unknown_userNo user on the environment matches the caller’s sign-in, and the activation needs one: useInteractiveUser is set, or the code was issued to a user or an organization.
  • license.product_end_of_lifeEvery product this application may use is past its End of life, and the device has never activated the license. Devices activated before keep activating.
  • license.product_not_in_planThe application belongs only to a product that every plan of the license leaves out, so the license does not cover it. An application of a product a plan includes activates.
  • license.device_blockedThe vendor blocked this device on the license. It stays refused, online or by an offline activation file, until the vendor unblocks it.
  • license.version_not_supportedThe request’s targetSoftwareVersion is newer than the license’s maximum version. A request that names no version is not refused here; the SDK checks the running build against the signed max_ver claim.
  • service.unavailableThe caller is signed in and the user directory could not be reached to look the user up. Nothing was activated; retry with backoff.
  • license.operation_pendingOther devices activating the same license at the same moment kept this activation from saving, and the server’s own retries did not get it through. Nothing was activated; retry with backoff. Sample request:
    {
    "activationCode": "ABC123-DEF456-GHI789",
    "fingerprint": "device-fingerprint-hash",
    "email": "user@example.com"
    }
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.

Idempotency-Key
string

A key of your own that makes a retry safe: a call repeated with the same key and the same body answers the first call’s result instead of running again. Send one key per call, and reuse it only to retry that call.

License activation request containing activation code, fingerprint, and optional email.

Media typeapplication/json

Represents a request to obtain (or check availability for) a license activation. All nullable fields are optional depending on the activation policy.

object
activationCode

Activation (or license) code required to identify entitlement or activation workflow.

string
0 <= 100 characters
fingerprint

The device fingerprint the license is bound to: the digest of the components (FingerprintDigest.Compute). It should be as unique as possible, since it identifies the seat. The server refuses a fingerprint that is not the digest of the components sent with it; a fingerprint sent without components is read as a single component named NodeId.

null | string
0 <= 100 characters
components

The device identity: per-component one-way hashes keyed by trait (MachineId, MachineName, MacAddress, OsVersion, UserName), or one entry for a single-value fingerprint. The entitlement’s ComponentMatchingStrategy (MatchAny/Two/Most) compares them when it looks for the device’s session, and a session found that way is re-bound to the components sent. Values are hashed on-device; raw component values never leave the client.

null | object
Example
{
"MachineName": "3f7a9c1e5b2d4a60"
}
fingerprintMethod

How the device took Fingerprint: the device traits it combined, comma-separated (MachineName, OsVersion, MacAddress, UserName), such as “MachineName, MacAddress”. An entitlement whose fingerprinting method names traits refuses an activation that names none or names others. The SDK’s machine-derived fingerprint fills it in; leave it empty for a fingerprint you supply yourself.

null | string
0 <= 100 characters
deviceName

The device name is optional (but highly recommended) additional information about the device (e.g. for display in management UIs).

null | string
0 <= 100 characters
applicationScope

The license is bound to restricted to the provided application scope. This is to ensure that the activation code is used only for its intended application.

null | string
0 <= 100 characters
applicationInstanceId

Identifies the specific application or process that holds this license when concurrent licensing is enabled. Relevant when multiple processes on the same hardware require separate licenses.

null | string
0 <= 100 characters
email

End-user email (used for identity verification or association). Optional depending on policy.

null | string
0 <= 254 characters
requestedLeaseDuration

Desired lease duration, an ISO 8601 duration on the wire (PT1H). Advisory: the server currently ignores this value and derives the lease duration from the entitlement’s license-allocation policy.

null | string format: duration
Example
PT15M
targetSoftwareVersion

Software version requesting activation (policy may restrict allowed software versions).

null | string
0 <= 100 characters
useInteractiveUser

When true, the server will resolve the authenticated user’s identity and find entitlements assigned to that user (via EntitlementPrincipal). Requires an authenticated request with a valid user token. The activation code may be omitted when this is true and the user has exactly one assigned entitlement.

boolean
tryMode

When true, ActivationCode is read as an offer’s public try code and the server answers with the calling device’s own short-lived license, issuing one if the device has none. Fingerprint is required: the try code is public, so it identifies the offer and never the caller, and a request that names no device is refused.

boolean

License activated successfully – returns JWT token.

Media typeapplication/jwt

A signed license token (JWT).

string
X-Correlation-Id
string

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

Invalid request data or activation code.

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.

The caller has no user and the license needs one (license.authentication_required): a signed-in user or a confirmed email address. The problem’s requires member says which (sign_in or verified_email), and WWW-Authenticate carries the challenge.

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 license has expired (license.expired); activation forbidden by policy, for example the code was issued to another user, the caller isn’t a member of the required organization, or a YubiKey is required (license.forbidden_by_policy, with requires naming what is missing); every product this application may use is past its End of life and the device has never activated it (license.product_end_of_life); the application belongs only to a product that no plan of the license includes (license.product_not_in_plan); or the request names a newer version than the license’s maximum version (license.version_not_supported).

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.

Activation code not found or expired.

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.

Device already activated, seat limit exceeded, the Idempotency-Key was reused for a different request, or other devices activating the same license at the same moment kept this activation from saving (license.operation_pending, code 2012). Nothing was activated after a 2012; retry with backoff.

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.

The body is not sent as application/json (request.unsupported).

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 – rate limit exceeded.

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.

The caller is signed in and the user directory could not be reached to look the user up (service.unavailable). Nothing was activated; retry with backoff.

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.