GET
/v2/administration/users/{userId}/generate-tokenGenerate a server user's JWT token
Generates a JWT token for a specified server user. Use the token to debug that user's account or perform an operation on the user's behalf. Handle the returned token as a credential.
userIdintegerrequired
The integer identifier of the server user for whom to generate a JWT token.
200Returns the generated JWT token as a string.
400Returned when `userId` is invalid.
codestringrequired
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user lacks permission to generate user tokens.
codestringrequired
paramsarray<object>optional
404Returned when the specified server user is not found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when userId is invalid, a 401 when the request is unauthenticated, a 403 when the authenticated user lacks permission to generate user tokens, and a 404 when the user is not found. The userId path parameter must be an integer identifying the server user whose token you need.