Borrow license
const url = 'https://example.com/api/v1/provision/activations/borrow';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"duration":"PT15M","deviceName":"example"}'};
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/borrow \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "duration": "PT15M", "deviceName": "example" }'Authenticate with the session’s own license token: the seat borrowed is the one that token holds. The duration
is an ISO 8601 duration ("P3D" is three days, "PT8H" eight hours), at most the license’s maximum borrow duration, and a borrow
ends no later than the license itself. The seat is renewed the way a check-in renews it first, so a session
whose seat the vendor or the user freed takes it back only if the entitlement has one free. Neither a renewal nor a shorter
borrow during the borrow shortens the lease, and releasing the session ends the borrow.
Authorizations
Section titled “Authorizations”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.
The fingerprint of the device making the call. When it is sent and is not the session’s, the call is refused (license.device_mismatch).
Request Bodyrequired
Section titled “Request Bodyrequired”How long to borrow the seat for.
Asks to borrow the seat a license session holds, so the device can go offline without losing it: the server extends the session’s lease for the duration, and neither a renewal nor a shorter borrow shortens it before then.
object
How long to borrow the seat for, from now: more than zero and at most the license’s maximum borrow duration. A borrow ends no later than the license itself.
Example
PT15MThe name of the device that borrows, for display on Devices and My Licenses; it replaces the name the activation
sent. Optional: null keeps the current name. It is personal data, erased on a privacy request.
Responses
Section titled “Responses”The seat is borrowed: returns the license with the borrowed lease.
End user license token with meta data.
object
The signed license JWT the SDK validates offline against the provider’s public key.
Link to the license terms (EULA) the license was issued under: an absolute https URL, or null when the entitlement has none. Unsigned display metadata, read from the entitlement at every issue and refresh.
A feature as activated on an end-user license: the granted value, enablement, trial/grace availability, and optional per-feature expiration.
object
The metric a metered feature’s usage is recorded under, resolved by the issuer. A feature code
and its metric name are deliberately different strings (MIRAGE.IMAGE.RENDERS against
mirage.image.renders) and the server matches a meter by exact metric name, so this is the
only name usage may be reported under. Null for a feature that has no meter, or when the issuer
did not resolve one.
What the feature’s value is counted in (GB, seats, calls), read from the vendor’s catalog at every issue, for showing beside the value. Null for a Boolean feature, or when the catalog names none. Unsigned display metadata, like Name.
The license’s own enable flag for the feature, as the issuer signed it. Whether the feature may be used right now also depends on a running trial or grace period and on the feature’s own expiration, which the SDK’s validation applies at each check.
When true, the feature is withheld for the duration of a trial even if enabled.
The issuer’s verdict that this license explicitly does not grant the feature. Validation treats it as final, while the feature stays present for display — a locked capability can still be shown, and reaching for it is counted as a denied check.
When the feature ends; null when it lasts as long as the license. The instant itself is
still inside. After it the SDK’s validation refuses the feature and its quota, and still lists
the feature for display.
A product covered by the license, with the custom properties the vendor marked Public. Display/catalog metadata carried on the unsigned EndUserLicense envelope, like feature names and descriptions, so it must never gate functionality. The product code and version are also in the signed token (SignedProduct); gate on that copy.
object
The version of the product the license was issued for, for display; empty when the product has none.
Whether the product is in early access or generally available, for display. Gate on Status.
object
A custom key/value property (e.g. on a product) with optional metadata entries.
object
The property’s metadata entries; [] when it has none.
A key/value metadata entry attached to a PropertyValue.
object
Whether a custom property is sent to the application with its license.
The license’s meters, one per metric name, with the unit each counts in.
A meter of the license: the metric name its usage is recorded and limited under (the key in the
signed usage_limits claim) and the unit it counts in. Display metadata carried on the unsigned
EndUserLicense envelope, read from the same record as the customer API’s meter
(Unit), so both report the same unit. A meter of a feature the
license withholds is left out, as the feature is.
object
What the meter counts, e.g. renders or minutes; null when the meter names none.
Example
{ "products": [ { "propertyValues": { "additionalProperty": { "visibility": "Private" } } } ]}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
The duration is zero or less, or longer than the license’s maximum borrow duration (validation.failed); the session has not started yet or its identity is not verified (operation.invalid); or the plan’s cap on active licenses is reached (license.no_credit).
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 license token is refused: its lease has ended (license.session_token_rejected), a newer token was issued for the session since, so this one was copied or replaced (license.token_superseded), or the X-Device-Fingerprint names another device (license.device_mismatch).
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); it isn’t active (license.no_active_license); it doesn’t let a device borrow its seat, or it is on hold (license.forbidden_by_policy); or the caller presents no license token.
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 session no longer exists: deleted, revoked, or released by its device (license.no_active_session). A device that released its session activates again to use the license.
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, or a session whose seat was freed found no free seat to take back.
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.