Solved

Getting Blank response in "Subscribe to List" REST API.

  • 20 November 2020
  • 3 replies
  • 450 views

Badge +2

Hello Support team,

 

I am trying to use REST API in my wordpress site. 

But before that I have tried to call POST https://a.klaviyo.com/api/v2/list/{LIST_ID}/subscribe API with same reuqest as in doc but getting blank response.

Can you please suggest me what is the required things here to work with above REST API. 

 

 

icon

Best answer by remstone 20 November 2020, 21:13

View original

3 replies

Userlevel 2
Badge +5

Hey this is the correct post request, if successful we respond with an empty array - if you look at the email inside of the account it should be under the list.  If it isn’t you may have double opt in on for this list which a confirmation email to the recipient would have gone out.

 

If you’re interested, you can utilize our php sdk here: https://github.com/klaviyo/php-klaviyo

Userlevel 6
Badge +9

Hi @pluggabl-Booster

Thanks so much for being a part of our Klaviyo Community and for asking your first question here! I’m glad @remstone was able to confirm the empty array as the correct post request! I just wanted to point out though that the Klaviyo Community is open to all customers, partners, and the extended Klaviyo ecosystem, and not monitored by the Klaviyo Support teams. We hope that you’ll also be able to share some of your experiences using the Klaviyo product with other Community members as well :) 

Looking forward to seeing you in the threads! 
-Cass. 

Badge +2

Thank you so much @cassy.lee and  @remstone for the help. I got the email regarding “Confirm Your Subscription”. 

Reply