Fetch license token
const url = 'https://example.com/api/v1/provision/activations/jwt';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"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}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }
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.
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.
Request Bodyrequired
Section titled “Request Bodyrequired”License activation request containing activation code, fingerprint, and optional email.
Represents a request to obtain (or check availability for) a license activation. All nullable fields are optional depending on the activation policy.
object
Activation (or license) code required to identify entitlement or activation workflow.
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.
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.
Example
{ "MachineName": "3f7a9c1e5b2d4a60"}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.
The device name is optional (but highly recommended) additional information about the device (e.g. for display in management UIs).
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.
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.
End-user email (used for identity verification or association). Optional depending on policy.
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.
Example
PT15MSoftware version requesting activation (policy may restrict allowed software versions).
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.
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.
Responses
Section titled “Responses”License activated successfully – returns JWT token.
A signed license token (JWT).
Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
Invalid request data or activation code.
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 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.
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.
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).
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.
Activation code not found or expired.
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.
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.
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 body is not sent as application/json (request.unsupported).
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 – rate limit exceeded.
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.
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.
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.