Generate user API token
Generates a new API token (JWT) for a specific user.
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
id*stringThe unique identifier (UUID) of the user to generate a token for. Cannot be the ID of the requesting user (cannot generate token for self via this method). Cannot be the root user ID (00000000-0000-0000-0000-000000000000).
uuidResponse message containing the newly generated API token.
application/json- response
Response message containing the newly generated API token.
token*stringThe generated JWT token for API authentication. This token is signed with the server's secret key and has the "api" audience. The token does not expire but can be invalidated by updating the user's min_issued_at. Should be stored securely as it grants full access as the specified user.
curl -X POST 'http://127.0.0.1:38765/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/tokens/api:generate'{
"token": "string"
}Was this page helpful?
