Skip to main content
Question

Delete people via webhook in campaign

  • January 29, 2025
  • 1 reply
  • 34 views

Hi,

I have created a deletion campaign triggering by a segment. So when you enter that segment you should enter the campaign and be deleted from CIO.

So I have started to look at the webhook activity and read about the API documentation. But I am having a hard time to understand the settings in the webhook activity. What is the API URL? How do you set that it is the people in the campaign that is deleted? And how do you specify the authorization?
 

Could anyone provide an example how to set up the webhook? 

1 reply

Felix
  • Novice
  • 223 replies
  • January 29, 2025

Hey Filip,

good question. The documentation is not that clear. I had troubles myself. This is what you have to do in order to delete a person via API Call (not actually a webhook):

  1. Create a “Send or Receive Data” tile
  2. Set the request to DELETE
  3. Use the Endpoint URL https://track.customer.io/api/v1/customers/cio_{{customer.cio_id}} (US) or https://track-eu.customer.io/api/v1/customers/cio_{{customer.cio_id}} (EU) (make sure you add the prefix cio_ for the Customer.io ID)

  4. Add a header with
    1. the name Authorization and
    2. the value Basic {{"site_id:api_key" | base64}} (Here replace site_id and api_key with your credentials. Do not delete and :)
    3. You can create new credentials in Account settings > API Credentials. Simply name the key “Delete Person” or something similar

That’s it. Once your person enters the campaign it will be deleted via API call!

 

Hope that helps,

Felix


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings