Get Current User Info
GET
/api/auth/me
const url = 'https://example.com/api/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/auth/me \ --header 'Authorization: Bearer <token>'Get current user information (+ the active support view, TODO-070).
Authorizations
Section titled “ Authorizations ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
CurrentUserResponse
GET /api/auth/me: the user, plus the active support view (TODO-070), if any.
object
created_at
required
Created At
string format: date-time
current_terms_version
Current Terms Version
string
email
required
Email
string format: email
id
required
Id
string format: uuid
impersonation
Any of:
ImpersonationInfo
GET /api/auth/me while a support view is active.
object
expires_at
required
Expires At
string format: date-time
grant_id
required
Grant Id
string format: uuid
organization_id
required
Organization Id
string format: uuid
read_only
Read Only
boolean
reason
required
Reason
string
null
is_active
required
Is Active
boolean
is_superuser
Is Superuser
boolean
is_support
Is Support
boolean
is_verified
required
Is Verified
boolean
terms_acceptance_required
Terms Acceptance Required
boolean
username
required
Username
string
Example
{ "current_terms_version": "", "impersonation": { "read_only": true }, "is_superuser": false, "is_support": false, "terms_acceptance_required": false, "timezone": "UTC"}