Skip to content

Show Current User

Retrieve the authenticated user's profile.

HTTP Request

GET /api/v1/me

Response

200 OK

Returns a User Object with the current user's information.

json
{
  "data": {
    "email": "pavol.paska@gmail.com",
    "phone": "+421911123456",
    "role": "client",
    "firstName": "Pavolko",
    "lastName": "Chňapko",
    "billingAddress": {
      "line1": "Eliška Plaza",
      "line2": "602/01",
      "city": "Nitra",
      "postalCode": "910 37",
      "country": "SK"
    },
    "shippingAddress": {
      "firstName": "Pavel",
      "lastName": "Dôstojný",
      "line1": "Eliška Plaza",
      "line2": "602/01",
      "city": "Nitra",
      "postalCode": "910 371",
      "country": "SK"
    },
    "company": {
      "businessId": "10454005",
      "taxId": "122344619",
      "vatId": null
    },
    "bankAccount": {
      "iban": "SK4908390543590385903441"
    },
    "regions": null,
    "emailVerified": false,
    "newsletterSubscribed": true
  }
}

Authentication

Requires authentication via Bearer token.

401 Unauthorized

json
{
  "message": "Unauthenticated."
}