Skip to content

Install a license file (admin)

PUT
/v1/admin/license
curl --request PUT \
--url http://127.0.0.1:8080/v1/admin/license \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "v": 1, "kid": "example", "claims": "example", "sig": "example" }'

The body is the license file as downloaded, at most 16 KiB. A file that does not verify against the keys this build trusts gets 422 license_invalid. A file whose 30-day grace after expiry has ended gets 422 license_expired. Either way the installed license stays. An install replaces the license for the whole coordinator and is audited as license.installed with the license ID, org, tier, and expiry.

Media typeapplication/json

A signed license file (ADR-0013 section 9). Other fields are ignored.

object
v
required
integer
Allowed values: 1
kid
required

The signing key’s ID.

string
/^[0-9a-f]{16}$/
claims
required

The claims JSON, base64url without padding.

string
sig
required

The Ed25519 signature, base64url without padding.

string

The status with the new license.

Media typeapplication/json
object
phase
required
string
Allowed values: none active expiring grace lapsed
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
Allowed values: team business
seats
required

Shown, not enforced.

integer
>= 1
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>
Allowed values: sso scim audit_export multi_org approval_policies slack_advanced analytics
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
Allowed values: license_expiring license_in_grace license_lapsed seats_exceeded
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"
}
}

The body is over 16 KiB.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

The request is well formed but breaks a rule or a limit.

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"
}
}
Retry-After
integer