GET
/v2/auth/meCurrent customer profile
Read the signed-in shopper. Authentication is required even though no extra authority is declared.
Bearer tokenhttps://user.aerolink.dev
Use this to hydrate the header of your storefront: name, phone, email, address. The payload carries no password, roles, wallet, agency or account-status flags. An AGENT or ADMIN token is refused even though it authenticates.
cURL
bash
curl https://user.aerolink.dev/v2/auth/me \
-H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."Headers
AuthorizationBearerrequired
Customer access token
AuthorizationBearer required | Customer access token |
Response
200
{
"message": "Success",
"data": {
"id": "68b1...",
"firstName": "Rahim",
"middleName": null,
"lastName": "Uddin",
"gender": "MALE",
"phoneNumber": "+8801700000000",
"secondaryPhoneNumber": null,
"email": "customer@example.com",
"address": {}
},
"error": null
}Response fields
idstringCustomer id
firstNamestringGiven name
middleNamestringMiddle name
lastNamestringFamily name
genderenumGender
phoneNumberstringPrimary phone
secondaryPhoneNumberstringSecondary phone
emailstringaddressobjectAddress
idstring | Customer id |
firstNamestring | Given name |
middleNamestring | Middle name |
lastNamestring | Family name |
genderenum | Gender |
phoneNumberstring | Primary phone |
secondaryPhoneNumberstring | Secondary phone |
emailstring | |
addressobject | Address |
Errors
401UNAUTHORIZED
No or invalid access token
403UNAUTHORIZED
Token is valid but not customer-only
404Record Not Found
No profile for the principal id
| HTTP | message | When |
|---|---|---|
| 401 | UNAUTHORIZED | No or invalid access token |
| 403 | UNAUTHORIZED | Token is valid but not customer-only |
| 404 | Record Not Found | No profile for the principal id |