Skip to main content
Contributor I
February 4, 2022
Solved

Fire custom webhook when user unsubscribes?

  • February 4, 2022
  • 26 replies
  • 2677 views

How do I add a custom webhook endpoint for Klaviyo to call when a user unsubscribes for a list? Does this exists? It’s a must have feature of an email provider. If this isnt available how else can I keep subscription statuses synced with my application database?

    Best answer by Taylor Tarpley

    Hi @sylvie

     

    Welcome to the Community! Happy to help out with this! 

     

    Yes, you can use achieve what you’re looking to do by using the  GET api/v1/people/exclusions endpoint to retrieve global suppressions. You will then know who is unsubscribed and anyone who’s not included in that call would be subscribed. I would recommend checking out this very helpful topic posted by a peer in the Community about the same topic! 

     

    Thanks for your participation in the Community!

    -Taylor 

    26 replies

    Problem Solver I
    June 11, 2024

    How do I add a custom webhook endpoint for Klaviyo to call when a user unsubscribes for a list? Does this exists? It’s a must have feature of an email provider. If this isnt available how else can I keep subscription statuses synced with my web application database?

    Hey dear, While Klaviyo doesn't support direct unsubscribe webhooks, you can use their existing webhook capabilities to track other related events and infer unsubscribe actions.

     

    DavidV
    Partner - Platinum
    2025 Champion
    September 9, 2024

    Hi @sylvie  @dartacus  @1stevengrant  @ddsgad   @chris_dmkrs   @Yehudamy   @Forestylanq  @Aujla  @coder23  @infra  @Miles55  @AroraRoy  @ericbeljic  @Rodferrior - Sorry to tag you all but I thought you would like to know!

    T​​​here is now an update available in Klaviyo that I think all of you would benefit from so I thought I would share that on this old thread.
    Klaviyo now supports the following triggers:
    •    Subscribed to Email Marketing
    •    Unsubscribed from Email Marketing
    •    Manually Suppressed from Email Marketing 

    What this means is that you can create a webhook inside a flow to notify your own ERP/CDP etc. of the current status which will be a significant help in keeping your own database in sync. This is achieved through Webhook in Flow (more info in the linked article including limitations), and would look something like this:
     

    Note - make sure you create flows for each of these triggers - for example, both unsubscribed & suppressed means the customer can’t be sent emails so you’ll want to implement both into your workflows.
    Hopefully this is a welcome update in Klaviyo for all of you - let me know if you have any questions!
    Thanks
    David

    Zyber is New Zealand's leading Shopify Premier & Klaviyo Master Platinum Partner passionate about helping merchants succeed. www.zyber.co.nz & www.unlocked.co.nz
    Contributor I
    October 15, 2024

    Kia Ora @DavidV 

    Sorry if I’m being daft but I can’t see those options when selecting a flow trigger
    I can see these options:

    Is there a setting I need to change so that I can select Unsubscribe from Email Marketing as a flow trigger?
    I’m planning to integrate with Klaviyo and I’d like to keep our database in sync with Klaviyo’s user susbcription status if possible 👍
    TIA

    Joe vB

    DavidV
    Partner - Platinum
    2025 Champion
    October 15, 2024

    Kia Ora @Joe vB,

    No problem! It’s a bit of a funny trigger (have provided feedback on this to Klaviyo already).

    The trigger “subscribed to email marketing” should live in the “Your Metrics” tab at the top.

    If it’s not there, you’ll need to manually trigger the trigger (I have no better way of writing that HAHA) by manually subscribing and unsubscribing a customer to a list once. Once the trigger exists, it will show up.

    I did a quick loom to show you how to add a list, add a test account, subscribe it, then the trigger will show: 

    Hope that helps - let me know if you have any issues!

    Thanks
    David

    Zyber is New Zealand's leading Shopify Premier & Klaviyo Master Platinum Partner passionate about helping merchants succeed. www.zyber.co.nz & www.unlocked.co.nz
    Contributor I
    November 30, 2024

    How can I add a custom webhook endpoint for Klaviyo to notify my system when a user unsubscribes from a list? Is this feature currently available? It's crucial for syncing subscription statuses between Klaviyo and my application Kinemaster without watermark. If a direct webhook isn’t available, what alternative methods can I use to keep the subscription statuses updated in my app's database?

    Contributor I
    April 4, 2025

    How can I add a custom webhook endpoint for Klaviyo to notify my system when a user unsubscribes from a list? Is this feature currently available? It's crucial for syncing subscription statuses between Klaviyo and my application Minecraft.  If a direct webhook isn’t available, what alternative methods can I use to keep the subscription statuses updated in my app's database?