v1

latestSwagger 2.02026-07-17290378721.8 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_yscW25imSKJIuav8zF37RZmnbiDvB05G_fcaaf58a",
  "name": "grafana"
}