Skip to main content

Create an access token for a user

POST 

/v1/users/:username/tokens

Create an access token for a user

note
  • For service account token creation, ensure you are using an Admin token for authentication. The token generated by this call will be the service account's own token for its operations.
  • Each token is tied to a specific user - make sure to use the exact username that was specified during service account creation is put into the path (/v1/users/:username/tokens).
  • If the optional ttl parameter is not specified, the access token will remain valid indefinitely until revoked by an administrator.

Request

Responses

Successful response