Skip to main content
Solved

Can I use a custom form to collect SMS consent?

  • May 23, 2023
  • 1 reply
  • 123 views

Forum|alt.badge.img+2

I have a React (web) application with a form that collects data from users, including their phone number. I want to know if I can include in that form a checkbox from Klaviyo to collect SMS consent. What would be the ideal way to do this?
Thanks 😀

Best answer by David To

Hello @Arthur M,

I don’t see why you wouldn’t be able too! In my experience, you’ll just need to make a server-side call to pass the SMS consent. 

If you haven’t already, I would suggest taking a look into our (New) Collect email and SMS consent via API Developer guide.

We also offer the How to collect SMS consent via API Help Center article. Although the method discussed in the article uses our v2 API, the principles would still apply when using the (new) subscribe endpoint

I hope this helps!

David

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

David To
Klaviyo Employee
Forum|alt.badge.img+60
  • Klaviyo Employee
  • 2456 replies
  • Answer
  • May 24, 2023

Hello @Arthur M,

I don’t see why you wouldn’t be able too! In my experience, you’ll just need to make a server-side call to pass the SMS consent. 

If you haven’t already, I would suggest taking a look into our (New) Collect email and SMS consent via API Developer guide.

We also offer the How to collect SMS consent via API Help Center article. Although the method discussed in the article uses our v2 API, the principles would still apply when using the (new) subscribe endpoint

I hope this helps!

David