Current principal
GET
/api/v1/auth/me
const url = 'https://example.com/api/v1/auth/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
object
success
required
boolean
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
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 }}