Get Current User Profile
GET
/api/users/me
const url = 'https://example.com/api/users/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/users/me \ --header 'Authorization: Bearer <token>'Get current user’s profile
Authorizations
Section titled “ Authorizations ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
UserResponse
User response schema
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
is_active
required
Is Active
boolean
is_superuser
Is Superuser
boolean
is_verified
required
Is Verified
boolean
terms_acceptance_required
Terms Acceptance Required
boolean
username
required
Username
string
Example
{ "current_terms_version": "", "is_superuser": false, "terms_acceptance_required": false, "timezone": "UTC"}