Get the current user's profile
GET
/me
const url = 'https://your-server.example/api/me';const options = {method: 'GET', headers: {cookie: 'session=<session>'}};
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://your-server.example/api/me \ --cookie session=<session>Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Current user.
Media typeapplication/json
object
id
integer format: int64
username
string
role
string
display_name
string
email
string format: email
created_at
string format: date-time
Example
{ "role": "super_admin"}