Skip to main content

I’m trying to create an auto-suppression flow with a webhook using the steps in https://medium.com/klaviyo-developers/solution-recipe-9-use-klaviyo-flow-webhooks-to-automate-suppressions-using-segments-and-a-custom-d431c247e96d.

As far as I can tell, I set up everything correctly, but when I try a test, I get “Error: status code 400 received when sending webhook.” Any ideas?

Headers:

Authorization: Klaviyo-API-Key Amy private key]

accept: application/json

content-type: application/json

revision: 2023-12-20

JSON body:

{
  "data": {
    "type": "profile-suppression-bulk-create-job",
    "attributes": {
      "suppressions":
        {
          "email": "{{person.email}}"
        }
      ]
    }
  }
}

 

 

 

 

The Revision date is the date of the API, not the actual date you’re implementing webhooks. So, it would be: 2023-12-15


Thanks David. Looks like I had to use 2023-02-22 for this, but making that change did the trick.


Reply