User

User information endpoints

Get current user information

get

Returns information about the currently authenticated user including profile data, preferences, and selected address.

Header parameters
X-CookiestringRequired

Use X-Cookie header instead of Cookie header in "try out" section. Use Cookie header while testing in postman or other tools. Some commerce applications may support 'sesionid' instead of 'osessionid'.

Example: osessionid=abc123
Responses
200

User information retrieved

application/json
get
/current_user/
GET /current_user/ HTTP/1.1
Host: sandbox.akinon.com
X-Cookie: osessionid=abc123
Accept: */*
{
  "pk": 42,
  "first_name": "John",
  "last_name": "Doe",
  "phone": 905551234567,
  "email": "[email protected]",
  "email_allowed": true,
  "sms_allowed": false,
  "call_allowed": true,
  "attributes": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "hashed_email": "5d41402abc4b2a76b9719d911017c592",
  "date_joined": "2024-01-15T10:30:00Z",
  "last_login": "2024-10-30T14:20:00Z",
  "gender": "M",
  "date_of_birth": "1990-05-15",
  "is_email_verified": true,
  "is_social_networks_connected": false,
  "segment": {
    "pk": 1,
    "price_list": 1,
    "stock_list": 1,
    "currency": "TRY"
  },
  "client_type": "web",
  "selected_address": {
    "pk": 1,
    "address_line_1": "text",
    "address_line_2": "text",
    "city": "text",
    "postal_code": "text",
    "country": "text"
  }
}

Last updated

Was this helpful?