Skip to main content
Contributor IV
November 4, 2021
Solved

Webhooks for Custom integrations

  • November 4, 2021
  • 13 replies
  • 1371 views

Are custom webhooks on the dev schedule?

It would be very nice to trigger a flow that could communicate unsubscribes to our custom CRM.

At the present it feels like we need to cron a script on our end to either make a request for the unsubscribe metric or we need to move people to a special list on unsubscribes and check that list.

Please correct me if there is a better way, but also appreciate that this would all be better if Klaviyo’s server would talk back when it had something to communicate.

 

    This topic has been closed for replies.
    Best answer by Taylor Tarpley

    Hi @mac , 

     

    Thanks for sharing your question with us! 

     

    Unfortunately, custom web hooks isn’t a supported feature. We can only receive data via Webhooks, but we don't currently support webhooks sending data from Klaviyo. However, I will share this feedback wit the product team on your behalf! 

     

    Although this is not a currently available, a potential workaround could be accomplished using API to export data to your CRM. Our Klaviyo Partners are more than happy and available to work with you and accomplish the custom setup you want! 

     

    Thanks for being a part of the Community! 

    -Taylor 

     

    13 replies

    Brett_Gatsby
    Problem Solver IV
    Champion & Partner
    February 28, 2023

    Hi Mac, I realize its been a year+ now but wanted to make sure you saw that Klaviyo released what you’re asking for, I think. Its the ability to add a webhook event to a Flow - ie: trigger events in other applications when a flow is triggered. https://developers.klaviyo.com/en/docs/how_to_add_a_webhook_action_to_a_flow

    Convert your Instagram followers into Klaviyo email & SMS subscribers. https://gatsby.ai/klaviyo-list-growth
    popsmash
    Active Contributor III
    Active Contributor III
    March 2, 2023

    For our use case, we provide merchants with targeted signup forms then send the leads to Klaviyo. We need to be alerted when a pending subscriber clicks the email confirmation link (a.k.a. the “Subscribed to List” trigger) so we can mark that signup as complete and close the loop. A webhook seems like the most logical way to accomplish this.

    I wish there were webhook topic APIs we could use to list active webhooks and activate new ones programmatically.

    I’d imagine creating a new one would go something like:

    curl --request POST \
    --url https://a.klaviyo.com/api/webhooks \
    --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
    --header 'accept: application/json' \
    --header 'content-type: application/json' \
    --data '
    {
    "data": {
    "topic": "list/subscribe",
    "url": "https://api.popsmash.com/klaviyo/webhooks"
    }
    }
    '

     Then be able to see all active webhooks:

    curl --request GET \
    --url https://a.klaviyo.com/api/webhooks \
    --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
    --header 'accept: application/json'

    == RESPONSE ==

    {
    "data": [
    {
    "created": "2023-03-01T23:41:59.476719+00:00",
    "id": "31GTFRVPS27YXTJ7P72HNQD463",
    "topic": "checkout/started",
    "url": "https://hooks.zapier.com/hooks/9203917..."
    },
    {
    "created": "2023-03-01T23:45:48.673312+00:00",
    "id": "01GT27P72H7YXTJNQD463FRVPS",
    "topic": "order/created",
    "url": "https://hooks.zapier.com/hooks/9028364..."
    },
    {
    "created": "2023-03-01T23:48:12.788878+00:00",
    "id": "71GTHNQD463FRVPS2P727YXTJ7",
    "topic": "list/subscribe",
    "url": "https://api.popsmash.com/klaviyo/webhooks"
    }
    ]
    }

    And of course, be able to delete when done:

    curl --request DELETE \
    --url https://a.klaviyo.com/api/webhooks/71GTHNQD463FRVPS2P727YXTJ7 \
    --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
    --header 'accept: application/json'

     

    POPSMASH: Making marketing personal at https://www.popsmash.com
    Brian Turcotte
    Klaviyo Alum
    March 10, 2023

    Hi @popsmash!

     

    That is an interesting use case - I’ll definitely forward this to our Product Team to see if there are any plans to allow for this functionality in the future.

     

    Thanks,

    Brian