Skip to content

Current principal

GET
/api/v1/auth/me
curl --request GET \
--url https://example.com/api/v1/auth/me \
--header 'Authorization: Bearer <token>'

The authenticated user, or the system principal when AUTH_DISABLED is set.

is_system tells a client which mode the server is running in.

Successful Response

Media typeapplication/json
object
success
required
boolean
default: true
data
required
UserRead
object
id
required
Id
string format: uuid
email
required
Email
string format: email
full_name
required
Full Name
string
role
required
UserRole
string
Allowed values: admin risk_officer viewer
is_active
required
Is Active
boolean
is_system
Is System

True for the synthetic principal used when AUTH_DISABLED is set.

boolean
created_at
required
Created At
string format: date-time

Example

{
"success": true,
"data": {
"role": "admin",
"is_system": false
}
}