v19

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

Create a new token

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

post/api/v1/tokens

Request body

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[]
expiresInstring

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

Response

Id of created user

tokenstring