api_keys

Creates an API key.

Will return details of the created API key.

post/auth/keys

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/auth/keys
  • Auth
    • HTTP basic
    • or API key in header Authorization

Request body

namestring
role'Viewer' | 'Editor' | 'Admin'
secondsToLiveinteger

Response

(empty)

idinteger
keystring
namestring

Example response

{
  "id": 1,
  "key": "glsa_yscW25imSKJIuav8zF37RZmnbiDvB05G_fcaaf58a",
  "name": "grafana"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.