π§ How to Delete a Contact via folk API
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).
Add a Custom Request Step
Add a second step: Custom Request.
Set the method to
DELETE
.
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.
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.