Issue a user token
/api/v1/admin/{org_slug}/auth/tokenIssue a JWT access token on behalf of a user. The user must belong to the organization matching the org_slug. Requires `users.action_read` permission.
Path parameters
org_slugstringrequiredRequest bodyapplication/jsonrequired
user_idintegerrequiredID of the user to issue a token for
Returns
TokenResponse — Access token minted on behalf of the target user.
access_tokenstringrequiredJWT access token
token_typestringToken type (always 'bearer')
user_idintegerrequiredID of the user the token was issued for
user_uuidstringrequiredUUID of the user
Error responses
403API token lacks permission, user not in org, or org_slug mismatch404User or organization not found422Validation Error —HTTPValidationError
{
"access_token": "string",
"token_type": "bearer",
"user_id": 1,
"user_uuid": "string"
}