Customers

Lookup a customer's attributes

Return a list of attributes for a customer profile. You can use attributes to fashion segments or as liquid merge fields in your messages.

get/v1/customers/{customer_id}/attributes

Response

Returns the customer and associated attributes.

Example response

{
  "customer": {
    "id": "1",
    "attributes": {
      "_last_emailed": "1528932553",
      "created_at": "1489014595",
      "email": "test@example.com",
      "title": "tester",
      "department": "qa",
      "id": "1",
      "cio_id": "03000001",
      "cio_subscription_preferences": "{\"topics\":{\"topic_7\":false,\"topic_8\":false}}",
      "_cio_subscription_preferences_computed": "{\"topics\":{\"topic_6\":false,\"topic_7\":false,\"topic_8\":false}}"
    },
    "timestamps": {
      "cio_id": 1489014595,
      "_last_emailed": 1528932553,
      "created_at": 1489014595,
      "email": 1508932553,
      "id": 1489014595,
      "department": 1508932553,
      "title": 1508932553,
      "_cio_subscription_preferences_computed": 0,
      "cio_subscription_preferences": 1673987303
    },
    "unsubscribed": false,
    "devices": [
      {
        "id": "my_android_device_id",
        "last_used": 1514764800,
        "platform": "android"
      },
      {
        "id": "my_ios_device_id",
        "last_used": 1514764800,
        "platform": "ios"
      }
    ]
  }
}

Changes

Changed in 1 of the 2 revisions of this API.1

    • added the media type application/json for the response with the status

      response-media-type-added