Hi, does anyone know if it’s possible for me to lookup whether a user has consented to sms or not with the api using just the email address?
Thanks
Hi, does anyone know if it’s possible for me to lookup whether a user has consented to sms or not with the api using just the email address?
Thanks
Best answer by k.mcevoy
Hi there,
Thanks for being a member of the Community!
You should be able to retrieve a profile’s SMS consent using this endpoint:
GET https://a.klaviyo.com/api/v1/person/{{ PERSON_ID }}
As outlined in this documentation. The endpoint requires the person_id and if the retrieved payload includes “sms_consent”: True they have opted into SMS. More information on that here.
Kelsey
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.