Enterprise License API

    If you are running Grafana Enterprise and have Fine-grained access control enabled, for some endpoints you would need to have relevant permissions. Refer to specific resources to understand what permissions are required.

    Checks if a valid license is available.

    See note in the for an explanation.

    Examples

    Example request:

    Example response:

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

    POST /api/licensing/token/renew

    Manually ask license issuer for a new token.

    See note in the for an explanation.

    Examples

    Example request:

    Example response:

    1. HTTP/1.1 200 OK
    2. Content-Type: application/json
    3. Content-Length: 357
    4. {
    5. "jti":"2",
    6. "iss":"https://grafana.com",
    7. "sub":"https://play.grafana.org/"
    8. "lid":"1",
    9. "included_admins":5,
    10. "included_viewers":10,
    11. "lic_exp_warn_days":30,
    12. "tok_exp_warn_days":2,
    13. "company":"Grafana Labs"
    14. }

    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.

    See note in the for an explanation.

    Examples

    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