GET/v2/auth/me

Current 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

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

idstring

Customer id

firstNamestring

Given name

middleNamestring

Middle name

lastNamestring

Family name

genderenum

Gender

phoneNumberstring

Primary phone

secondaryPhoneNumberstring

Secondary phone

emailstring

Email

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