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

Changes

Changed in 3 of the 19 revisions of this API.4

    • the response property items/accountId became required for the status 200

      response-property-became-required

    • the response property items/inquirer became required for the status 200

      response-property-became-required

    • added the new optional query request parameter meta

      new-optional-request-parameter

    • endpoint added

      endpoint-added

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog