Get own profile
GET
/api/profiles/me
const url = 'http://localhost:3000/api/profiles/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 http://localhost:3000/api/profiles/me \ --cookie session=<session>Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Own profile
Media type application/json
object
data
object
id
required
string format: uuid
email
required
string format: email
firstName
string
lastName
string
avatarUrl
string
role
required
string
isActive
required
boolean
createdAt
required
string format: date-time
Example
{ "data": { "role": "super_admin" }}Not authenticated
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}Profile not found
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}