Enterprise License API

    Checks if a valid license is available.

    Required permissions

    See note in the for an explanation.

    Example request:

    Example response:

    1. HTTP/1.1 200 OK
    2. Content-Type: application/json
    3. Content-Length: 4
    4. true
    • 200 - OK

    POST /api/licensing/token/renew

    Manually ask license issuer for a new token.

    Required permissions

    See note in the introduction for an explanation.

    Example request:

    Example response:

    1. HTTP/1.1 200 OK
    2. Content-Length: 357
    3. {
    4. "jti":"2",
    5. "iss":"https://grafana.com",
    6. "sub":"https://play.grafana.org/"
    7. "lid":"1",
    8. "included_admins":5,
    9. "included_viewers":10,
    10. "lic_exp_warn_days":30,
    11. "tok_exp_warn_days":2,
    12. "prod":["grafana-enterprise"],
    13. }

    The response is a JSON blob available for debugging purposes. The available fields may change at any time without any prior notice.

    • 200 - OK
    • 401 - Unauthorized
    • 403 - Access denied

    DELETE /api/licensing/token

    Removes the license stored in the Grafana database.

    Required permissions

    See note in the for an explanation.

    Example request:

    JSON Body schema:

    • instance – Root URL for the instance for which the license should be deleted. Required.

    Example response:

    1. HTTP/1.1 202 Accepted
    2. Content-Type: application/json
    3. Content-Length: 2
    4. {}
    • 202 - Accepted, license removed or did not exist.
    • 401 - Unauthorized
    • 403 - Access denied