Show the license status (admin)
GET
/v1/admin/license
const url = 'http://127.0.0.1:8080/v1/admin/license';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 http://127.0.0.1:8080/v1/admin/license \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The status. license is null when none is installed.
Media typeapplication/json
object
phase
required
string
ee_enabled
required
True in phases active, expiring, and grace.
boolean
license
required
Any of:
object
lid
required
The license ID.
string
org
required
The buyer’s org ID in Zentri accounts.
string
org_name
required
string
tier
required
string
seats
required
Shown, not enforced.
integer
issued_at
required
string format: date-time
expires_at
required
string format: date-time
features
required
The ADR-0002 features the license names. Names this build does not know are left out.
Array<string>
null
grace_ends_at
When ee/ features turn off. Present when a license is installed.
string format: date-time
warnings
required
Array<object>
Something an admin should act on. Nothing is blocked by it.
object
code
required
string
message
required
string
Example
{ "phase": "none", "license": { "tier": "team", "features": [ "sso" ] }, "warnings": [ { "code": "license_expiring" } ]}No valid bearer token.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example generated
{ "error": { "code": "example", "message": "example" }}The token may not do this.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example generated
{ "error": { "code": "example", "message": "example" }}A rate limit or quota stopped the request. Retry-After gives seconds to wait.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example generated
{ "error": { "code": "example", "message": "example" }}Headers
Section titled “Headers”Retry-After
integer