v19

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2022-08-18272033.9 KB
tokens

get all tokens

This can only be done by a logged in user who has the required privileges.

get/api/v1/tokens

Query parameters

metaboolean

Set to true to receive response in data/meta format

Response

List all tokens

inquirerstring required

Id of user or a service running on behalf of the user. Who wants the token to be created.

initiatorstring

user or a a service who initiated this token request. Who is requesting the token creation (must have the permission to create a token). Defaults to requester id.

accountIdstring required

Affected account the token is created for

tokenstring
type'EPHEMERAL_SERVICE_ACCOUNT' | 'PERSISTENT' | 'SELF'
permissionsPermissions[]
tokenLifeSpanstring

indicates the lifespan of the token. Possible values are -1 for permanent token and a string expression describing a time span, e.g. 2m, 5h