Get the current authenticated user
GET
/auth/me
const url = 'https://example.com/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/v1/auth/me \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The current user
Media typeapplication/json
object
id
string format: uuid
email
string format: email
name
string
role
string
active
boolean
Example
{ "role": "user"}Not authenticated