Create a webhook
Changed onCreates a new webhook listening to workspace events.
Request
- Base URLhttps://api.folk.app
- URLhttps://api.folk.app/v1/webhooks
- AuthHTTP bearer
Headers
A unique key, such as a UUID, that makes retrying this request safe: a retry with the same key and body returns the original response without running the operation again. Keys are kept for 24 hours after the request completes.
Request body
Example request
{
"name": "My app integration",
"targetUrl": "https://my-app.com/webhook",
"subscribedEvents": [
{
"eventType": "person.created",
"filter": {
"groupId": "grp_bc984b3f-0386-434d-82d7-a91eb6badd71"
}
}
]
}Response
The created webhook.
Example response
{
"data": {
"id": "wbk_8c18c158-d49e-4ad4-90d4-2b197688bac7",
"name": "My app integration",
"targetUrl": "https://my-app.com/webhook",
"subscribedEvents": [
{
"eventType": "person.created",
"filter": {}
}
],
"signingSecret": "whsec_QWFSUzl1QUVoQW1kdWtpTnJRTUFpbXNlZmxLTg==",
"status": "active",
"createdAt": "2025-07-17T09:00:00.000Z"
},
"deprecations": [
"This field is deprecated"
]
}Changes
- info
added the new optional
headerrequest parameterIdempotency-Key - info
added the new
person_enrichment.finishedenum value to the request property// - info
added the new
task.completedenum value to the request property// - info
added the new
task.createdenum value to the request property// - info
added the new
task.deletedenum value to the request property// - info
added the new
task.updatedenum value to the request property// - info
added the non-success response with the status
- info
the response property
/became required for the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- info