Every licence, or one product's or customer's
const url = 'https://app.dycrypt.com/o/acme/api/licenses';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.dycrypt.com/o/acme/api/licenses \ --header 'Authorization: Bearer <token>'The whole list, unpaged. Right for an export or a nightly sync; for a UI
use /api/licenses/page, which filters and sorts in the database.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”The matching licences.
A licence as it appears in a list.
object
The customer’s name
Signed into the licence as prd.
The nbf claim. Absent means it is valid immediately.
Null for a perpetual licence — the exp claim is omitted entirely.
See the licence-mode guides — Offline verifies alone, Online must check in, Hybrid does both.
How a Hybrid licence first binds to a machine. Only meaningful for HYBRID.
When it bound to a machine. Null means nobody has installed it yet.
How many times an operator released the binding.
How many machines this licence binds at once. Copied from the product at issue.
How many of them are bound right now.
Where the licence is against the calendar and the revocation flag.
PENDING, EXPIRED and REVOKED do not count against plan capacity.
What the field says, beside what the calendar says. NOT_APPLICABLE for
every Offline licence, which is most of them in a typical organisation.
The signed offline window.
How often the application should check in.
Filed away — off the default list and out of renewal. Still verifies in the field.
The person or token that issued it.
Example
[ { "licenceType": "OFFLINE", "activation": "ONLINE", "status": "PENDING", "checkHealth": "NOT_APPLICABLE" }]No credential, or one that no longer resolves — revoked, expired, deleted. Replace it.
Every failure in this API has this shape and no other.
object
Example
{ "error": "this token does not have licenses:write"}Authenticated, but not allowed: a missing scope, a read-only role, a plan limit reached, or a credential used under another organisation’s slug. The right credential doing something it may not do.
Every failure in this API has this shape and no other.
object
Example
{ "error": "this token does not have licenses:write"}