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}}"
}
]
}
}
}