Reads the Unleash license.
GET <your-unleash-url>/api/admin/license
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Reads the Unleash license. Only available for self-hosted Enterprise customers.
Request
Responses
- 200
licenseReadSchema
- application/json
- Schema
- Example (from schema)
Schema
- token string required
The actual license token.
- customer string
Name of the customer that owns the license. This is the name of the company that purchased the license.
- plan string
Name of plan that the license is for.
- seats number
Number of seats in the license.
- expireAt date-time
Date when the license expires.
{
"token": "string",
"customer": "string",
"plan": "string",
"seats": 0,
"expireAt": "2023-07-31T13:33:02Z"
}
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Request
Request
curl / cURL
curl -L -X GET '<your-unleash-url>/api/admin/license' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
python / requests
curl -L -X GET '<your-unleash-url>/api/admin/license' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
go / native
curl -L -X GET '<your-unleash-url>/api/admin/license' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
nodejs / native
curl -L -X GET '<your-unleash-url>/api/admin/license' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ruby / Net::HTTP
curl -L -X GET '<your-unleash-url>/api/admin/license' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
csharp / httpclient
curl -L -X GET '<your-unleash-url>/api/admin/license' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
php / cURL
curl -L -X GET '<your-unleash-url>/api/admin/license' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
java / OkHttp
curl -L -X GET '<your-unleash-url>/api/admin/license' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
powershell / RestMethod
curl -L -X GET '<your-unleash-url>/api/admin/license' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'