API
Get current user profile
GET
/auth/me
const url = 'https://mw.omazy.ai/api/v1/auth/me';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
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://mw.omazy.ai/api/v1/auth/me \ --header 'Authorization: <Authorization>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
data
error
object
code
string
message
string
meta
object
next_cursor
string
page
integer
per_page
integer
total
integer
success
boolean
data
object
auth_provider
string
created_at
string
email
string
first_name
string
id
string
is_anonymous
boolean
is_verified
boolean
last_login_at
string
last_name
string
location
Array<integer>
onboarding_completed
boolean
profile_image
string
role
string
user_type
string
Examplegenerated
{ "data": { "auth_provider": "example", "created_at": "example", "email": "example", "first_name": "example", "id": "example", "is_anonymous": true, "is_verified": true, "last_login_at": "example", "last_name": "example", "location": [ 1 ], "onboarding_completed": true, "profile_image": "example", "role": "example", "user_type": "example" }, "error": { "code": "example", "message": "example" }, "meta": { "next_cursor": "example", "page": 1, "per_page": 1, "total": 1 }, "success": true}Unauthorized
Media typeapplication/json
object
data
error
object
code
string
message
string
meta
object
next_cursor
string
page
integer
per_page
integer
total
integer
success
boolean
error
object
code
string
message
string
Examplegenerated
{ "data": "example", "error": { "code": "example", "message": "example" }, "meta": { "next_cursor": "example", "page": 1, "per_page": 1, "total": 1 }, "success": true}Not Found
Media typeapplication/json
object
data
error
object
code
string
message
string
meta
object
next_cursor
string
page
integer
per_page
integer
total
integer
success
boolean
error
object
code
string
message
string
Examplegenerated
{ "data": "example", "error": { "code": "example", "message": "example" }, "meta": { "next_cursor": "example", "page": 1, "per_page": 1, "total": 1 }, "success": true}