I have Klaviyo setup as a destination. In my confi...
# support
t
I have Klaviyo setup as a destination. In my config, I have a default list setup that is described as:
The default list that you'd like to subscribe and add users to when you call .identify()
In my testing, when I call RS identify, the email is sent succesfully to Klaviyo, but the user is not added to the list I've specified. Looking at the live event viewer in Rudderstack, this is the payload the Klaviyo destination is getting. I don't see anything in the payload that indicates the list ID. Is this a bug?
Copy code
{
  "version": "1",
  "type": "REST",
  "method": "PATCH",
  "endpoint": "https://a.klaviyo.com/api/profiles/01H60BZ62KN863QRWAVNBCAXB2",
  "headers": {
    "Authorization": "******ef11",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "revision": "2023-02-22"
  },
  "params": {},
  "body": {
    "JSON": {
      "data": {
        "type": "profile",
        "attributes": {
          "email": "test_email@company.com",
          "properties": {
            "_id": "1235"
          }
        },
        "id": "01H60BZ62KN863QRWAVNBCAXB2"
      }
    },
    "JSON_ARRAY": {},
    "XML": {},
    "FORM": {}
  },
  "files": {}
}
m
Hey There! đź‘‹ Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
b
Hi @thankful-gpu-70135,You need to pass a flag
{properties: {subscribe: true}}
inside the traits ( as shown in the sample payload here) in an identify call to add the user to the listId added in settings.
t
@boundless-florist-7608 thanks. why is there a default list attribute then in the destination config if you also need to pass the
subscribe
prop too? It seems unnecessarily roundabout and confusing. Iow if I’m already setting a list ID in the klaviyo destination config, why wouldn’t the default assumption be to “subscribe”, and support an option to opt out by sending
subscribe: false