user

Returns the current logged-in user's information.

Reads user info from the session or token.

Returns: JSON object with user claims if authenticated.

Raises: HTTPException 401 if user not authenticated.

get/api/user

Request

  • The document declares no server URL.
  • Auth
    none declared

Response

Successful Response

UserResponse nullable required

User information to send to the client.

id, string uuid required
username, string required
jurisdiction_id, string required
notifications, NotificationsToRender required

Map of booleans for each of the notificaiton keys as to whether to render frontend banners.

Changes

    • warning

      added the new most_recent_tes_update enum value to the anyOf[subschema #1: UserResponse]/notifications/to_render/propertyNames response property for the response status

    • info

      added the required property anyOf[subschema #1: UserResponse]/notifications to the response with the status