Skip to main content
GET
Get user

Authorizations

better-auth.session_token
string
cookie
required

Path Parameters

userId
string
required
Minimum string length: 1

Response

Successful response

createdAt
string<date-time>
required
email
string
required
hasCredentialAccount
boolean
required
id
string
required
inviteExpiresAt
string<date-time> | null
required
inviteUrl
string | null
required
lastActive
string<date-time> | null
required
name
string
required
role
enum<string> | null
required
Available options:
admin,
user
status
enum<string>
required
Available options:
active,
pending,
expired