Skip to main content

Hi there,

We use this API to fetch the campaign recipients. We use pagination to control the number of records fetched per API call.

In recent times, the API is misbehaving, i.e. it returns the same “next_offset” value as the input. Example:

curl --location --request GET 'https://a.klaviyo.com/api/v1/campaign/WihTjL/recipients?api_key=pk_***&offset=bWFkaHVyaS5oYUBoZXZvZGF0YS5jb20=&count=3&sort=asc'

And in the response it returns next_offsetbWFkaHVyaS5oYUBoZXZvZGF0YS5jb20= again. Thus, creating an infinite call sequence.

Can you please have a look and let me know the resolution?

 

PS: There are more than 3 recipients to this campaign, so I don’t think I can treat the offset being same as next_offset as a termination criteria.

Hi @dev_h,

Thanks for sharing this with us.

This appears to be a bug and I’ve filed a report for our team to investigate. A member of our team will reach out as soon as we have resolved the issue. Thank you for your understanding.


Thank you @Dov 

Looking forward to it.


Hi @dev_h,

This issue should now be resolved.

Thank you for your patience.