Hi there,
I have a website that I’m looking to add a custom styled SMS sign-up form too.
We currently have an email only sign-up that captures users emails, but now want to offer an SMS only sign-up as well.
I’ve updated from v1 API to the latest for the email form and that works fine.
However creating a new subscriber with only the phone_number field and no email seems to silently fail. I get a success response, yet no data in SMS list within Klaviyo.
If i test with a hardcoded email attached then it goes straight through.
Is it possible to create a new subscriber with phone_number only?
Or is an email mandatory when posting to the subscription endpoint using ajax - https://a.klaviyo.com/client/subscriptions/?company_id=XXXXXXX
Here is the reference doc I have been referring too:
https://developers.klaviyo.com/en/reference/create_client_subscription
I have Single opt-in enabled too.
Thanks in advance.