Users

Get current user

GET
Gets the currently authenticated user.

Response

This endpoint returns an object
id
string
The unique identifier of this user
primary_email_verified
boolean
Whether the primary email has been verified to belong to this user
signed_up_at_millis
double

The time the user signed up identify=>(the number of milliseconds since epoch, January 1, 1970, UTC)

has_password
boolean
Whether the user has a password associated with their account
auth_with_email
boolean
Whether the user can authenticate with their primary e-mail. If set to true, the user can log-in with credentials and/or magic link, if enabled in the project settings.
oauth_providers
list of objects
A list of OAuth providers connected to this account
selected_team
objectOptional
primary_email
stringOptional
Primary email
display_name
stringOptional
Human-readable user display name. This is not a unique identifier.
client_metadata
map from strings to anyOptional
Client metadata. Used as a data store, accessible from the client side. Do not store information that should not be exposed to the client.
profile_image_url
stringOptional
Profile image URL. Can be a Base64 encoded image. Please compress and crop to a square before passing in.
selected_team_id
stringOptional
ID of the team currently selected by the user