latestOpenAPI 3.1.02026-08-223321,1001.6 MB

2134ebffd1ef

Get User

Get the user from the database.

If the user does not exist, create it. If the user exists, return the user.

Uses UserToken directly instead of AuthorizedUserDep because first-time users won't exist in the DB yet — that creation happens here.

Args: user_token: JWT token with user identity

Returns: UserResponse: The user response object with roles included.

get/user

Query parameters

invite_codestring nullable

Response

Successful Response

user_existsboolean required