Currently logged user

Description

This service returns all available profile and consumer information for the currently authenticated user or party.


Request

Restrictions

This service requires an authenticated user and can only be called after a successful login.

Endpoint

GET https://<server-url>/api/v4/me

Parameters

Parameter
Location
Description

touchpoint

Query / Header

The identifier for the touchpoint. Use Thalamus-Touchpoint for the header.

token

Query / Header

The authentication token for the API session. Use Thalamus-Token for the header.

activity

Query / Header

Optional. The activity to be used. Use Thalamus-Activity for the header.

Content-Type

Header

Specifies the content type of the request body. Must be application/json.

Full URL Example

https://<server-url>/api/v4/me?touchpoint=test&token=...

Request Body

This request does not have a body.


Response

✅ Successful Response: 200 OK

The full profile information for the authenticated user is returned in a person object. This object contains consumer data, profile details, and communication opt-in settings.

JSON

{
  "person": {
    "links": [],
    "consumer": {
      "links": [],
      "activeConsumer": true,
      "consumptionFrecuency": 4,
      "preferedBrandId": 5,
      "preferedProductId": null,
      "alternativeProductdId": null,
      "alternativeBrandId": 5
    },
    "profile": {
      "links": [],
      "birthday": 1353380400000,
      "phone": {
        "areaCode": "11",
        "number": "47964444",
        "type": "cellphone",
        "intCode": "54"
      },
      "document": {
        "number": "32438213",
        "type": 1
      },
      "email": "[email protected]",
      "address": {
        "countryId": 1,
        "street2": "",
        "street1": "Catulo Castillo 5420",
        "postalCode": "4203",
        "stateId": 2,
        "type": "home",
        "city": 1
      },
      "lastname": "John",
      "gender": "Male",
      "firstname": "Malkovich"
    },
    "optIns": [
      {
        "brandFamilyId": 4,
        "channel": 6001,
        "accepted": false
      },
      {
        "brandFamilyId": 4,
        "channel": 6003,
        "accepted": false
      }
    ],
    "credential": null
  }
}

Last updated

Was this helpful?