Create an access token for a user
This endpoint is used to create access tokens for users / service accounts. For specific instructions on creating tokens for service accounts and important considerations, please refer to the Service Accounts Guide - Step 2.
When creating a token for a service account, ensure the username
in the path (/v1/users/:username/tokens
) is the specific username you defined when creating the service account.
POST/v1/users/:username/tokens
Create an access token for a user
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.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful response
Bad Request
Invalid Credentials
Unauthorized
Not Found
Internal Error