api_keys

Creates an API key.

Will return details of the created API key.

post/auth/keys

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 endpoint across all 2 revisions of this API.