• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Klaviyo opt-in for email

Klaviyo's latest API requires 2 steps to allow email consent against a profile. First it has to be created (by default the profile is unsubscribed), then an Update call needs to be made on the profile ID to change the consent to subscribed.

The Subscription object needs to be called. It is not included in the default set of calls/parameters in the Pabbly Klaviyo version of the Update call. I'm only concerned with email consent for now. How do I make this call? Can this option be added to the Pabbly Klaviyo integration as a matter of urgency.


1731565802390.png
1731566154779.png


1731566202446.png
 

Preeti Paryani

Well-known member
Staff member
Hello @troycoker08

We have escalated your request to our technical team, they are looking into it. Please allow us some time, we will provide you with the updates as we have some.
 

Preeti Paryani

Well-known member
Staff member
Hello @troycoker08

Our team has checked and Informed us that the required action is a beta endpoint(in testing mode) in Klaviyo's API docs, hence it is not stable at the time. We would recommend you use the API by Pabbly module instead for now.

1731671274940.png


This is the CURL you may need. API docs: https://developers.klaviyo.com/en/reference/update_profile

curl --request POST \
--url https://a.klaviyo.com/client/subscriptions \
--header 'content-type: application/vnd.api+json' \
--header 'revision: 2024-10-15.pre' \
--data '
{
"data": {
"type": "subscription",
"attributes": {
"profile": {
"data": {
"type": "profile",
"attributes": {
"properties": {
"newKey": "New Value"
},
"meta": {
"patch_properties": {
"append": {
"newKey": "New Value"
},
"unappend": {
"newKey": "New Value"
}
}
},
"subscriptions": {
"email": {
"marketing": {
"consent": "SUBSCRIBED"
}
},
"sms": {
"marketing": {
"consent": "SUBSCRIBED",
"consented_at": " "
},
"transactional": {
"consent": "SUBSCRIBED"
}
}
}
},
"id": "dfgdfgdfg546546"
}
},
"custom_source": "test"
},
"relationships": {
"list": {
"data": {
"type": "list"
}
}
}
}
}
'
 
Top