v1

latestOpenAPI 3.0.32026-07-14314472448.6 KB
service_accounts

CreateNewToken adds a token to a service account

Required permissions (See note in the introduction for an explanation): action: serviceaccounts:write scope: serviceaccounts:id:1 (single service account)

post/serviceaccounts/{serviceAccountId}/tokens

Path parameters

serviceAccountIdinteger required

Request body

namestring
secondsToLiveinteger

Response

(empty)

idinteger
keystring
namestring

Example response

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