Hello!
I’m using the ‘get profiles’ API ‘https://a.klaviyo.com/api/profiles/’ (v2023-02-22) and trying to get the lists and segments information which belong to each profile without making another API call.
As shown in the example on the API reference page(https://developers.klaviyo.com/en/reference/get_profiles), the list and segment information will be displayed below.
"relationships": {
"lists": {
"data":
{
"type": "list",
"id": "string"
}
]
},
"segments": {
"data":
{
"type": "segment",
"id": "string"
}
]
}
},
But when I called the ‘get profiles’ API, I received a link instead of detailed list and segment data as shown in the example.
"relationships": {
"lists": {
"links": {
"self": "https://a.klaviyo.com/api/profiles/01GW3TF35QXF3KCFBX970XYFHY/relationships/lists/",
"related": "https://a.klaviyo.com/api/profiles/01GW3TF35QXF3KCFBX970XYFHY/lists/"
}
},
"segments": {
"links": {
"self": "https://a.klaviyo.com/api/profiles/01GW3TF35QXF3KCFBX970XYFHY/relationships/segments/",
"related": "https://a.klaviyo.com/api/profiles/01GW3TF35QXF3KCFBX970XYFHY/segments/"
}
}
}
Please help to give me the way to get the list and segment information without another API call?
Thanks!