Skip to content

Get the current user

GET
/me
curl --request GET \
--url https://api.engram.page/me \
--header 'Authorization: Bearer <token>'

Returns the authenticated user’s id, email, role, display name, and UI language.

Current user

Media typeapplication/json
UserResponse
object
user
required
User
object
analytics_id
required

Keyed pseudonymous identifier (HMAC of the user’s email) for client-side analytics identify calls; null when the user opted out. See Engram.Analytics.client_id/1.

string
nullable
analytics_opt_out
required

The user objected to analytics; the client must send nothing.

boolean
display_name
string
nullable
email
required
string format: email
id
required
string format: uuid
locale

UI language as a BCP 47 tag, as last reported by a client.

string
nullable
role
string

Example

{
"user": {
"locale": "pt-BR",
"role": "user"
}
}