Skip to main content

How to delete contacts with the API?

Updated today

πŸ”§ How to Delete a Contact via folk API

  1. Set Up a Webhook Trigger

    • Create a webhook in your automation tool.

    • Choose the trigger: person-custom-custom-field-updated.

    • Configure it to trigger when a specific condition is met (e.g. a custom field indicates the contact should be deleted).

  2. Add a Custom Request Step

    • Add a second step: Custom Request.

    • Set the method to DELETE.

  3. Configure the Request

    • Use the API endpoint to delete a person:

      https://api.folk.app/api/v1/people/{personId}
    • Replace {personId} with the actual ID of the contact, which you get from the first step.

    • Map the ID dynamically.

  4. Set Up Authorization

    • In the headers, set Authorization to:

      Bearer YOUR_API_KEY
    • Replace YOUR_API_KEY with your real API key from your folk account settings.

Did this answer your question?