Skip to main content
GET
Get current user

Authorizations

Authorization
string
header
required

API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....

Response

User retrieved successfully

id
string
required
Example:

"user_123"

email
string<email>
required
Example:

"user@example.com"

name
string | null
required
Example:

"John Doe"

role
enum<string> | null
required
Available options:
ADMIN,
OWNER,
MEMBER
Example:

"MEMBER"

organizationId
string
required
Example:

"org_123"

hasPassword
boolean
required

Whether the user has a password set

hasGoogleId
boolean
required

Whether the user has a linked Google account

hasGithubId
boolean
required

Whether the user has a linked GitHub account

hasGitlabId
boolean
required

Whether the user has a linked GitLab account

hasSamlId
boolean
required

Whether the user has a linked SAML account

hasApiKey
boolean
required

Whether the user currently holds at least one API token

Example:

null

Example:

false

mfaSource
enum<string> | null
required

Preferred MFA source; non-null enables MFA, null disables it. Currently only "EMAIL" is supported.

Available options:
EMAIL
Example:

null

firstSignInAt
string<date-time> | null
required
latestSignInAt
string<date-time> | null
required
createdAt
string<date-time>
required
deletedAt
string<date-time> | null
required