curl --request DELETE \
--url https://api.cal.com/v2/webhooks/{webhookId} \
--header 'Authorization: Bearer <token>'{
"status": "success",
"data": {
"payloadTemplate": "{\"content\":\"A new event has been scheduled\",\"type\":\"{{type}}\",\"name\":\"{{title}}\",\"organizer\":\"{{organizer.name}}\",\"booker\":\"{{attendees.0.name}}\"}",
"userId": 123,
"id": 123,
"triggers": [
{}
],
"subscriberUrl": "<string>",
"active": true,
"secret": "<string>"
}
}curl --request DELETE \
--url https://api.cal.com/v2/webhooks/{webhookId} \
--header 'Authorization: Bearer <token>'{
"status": "success",
"data": {
"payloadTemplate": "{\"content\":\"A new event has been scheduled\",\"type\":\"{{type}}\",\"name\":\"{{title}}\",\"organizer\":\"{{organizer.name}}\",\"booker\":\"{{attendees.0.name}}\"}",
"userId": 123,
"id": 123,
"triggers": [
{}
],
"subscriberUrl": "<string>",
"active": true,
"secret": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
value must be Bearer <token> where <token> is api key prefixed with cal_
success, error "success"
Show child attributes
The template of the payload that will be sent to the subscriberUrl, check cal.com/docs/core-features/webhooks for more information
"{\"content\":\"A new event has been scheduled\",\"type\":\"{{type}}\",\"name\":\"{{title}}\",\"organizer\":\"{{organizer.name}}\",\"booker\":\"{{attendees.0.name}}\"}"
Was this page helpful?