I’ve made HTML form and it worked well V1, but it doesn’t work now with V2. It sends data to server and server sends the data to klaviyo… But since updates are made, I don’t know how to do the post request so it send the captured email to the list…. Can anyone help/explain?
Solved
Noob question: How to send captured email from HTML to the list?
Best answer by KeviSunshine
Hi,
You’re right, V2 is also disabled. I think they’re on “Revision” versions now, or something like that…
I believe you’ll need to make the following 3 changes to make this work:
1. Update your API URL to: https://a.klaviyo.com/api/lists/{list_id}/relationships/profiles/
2. set your request body to:
$data = array(
'data' => array(
array(
'type' => 'profile',
'email' => $email
)
)
);3. set the following request headers:
revision: 2024-07-15
Authorization: Klaviyo-API-Key {privateKey}
Cheers,
Kevin.
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentials
Log in with KlaviyoEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.

