curl --request GET \
--url https://api.cal.com/v2/oauth-clients/{clientId}/webhooks/{webhookId} \
--header 'Authorization: Bearer <token>' \
--header 'x-cal-secret-key: <x-cal-secret-key>'{
"status": "success",
"data": {
"payloadTemplate": "{\"content\":\"A new event has been scheduled\",\"type\":\"{{type}}\",\"name\":\"{{title}}\",\"organizer\":\"{{organizer.name}}\",\"booker\":\"{{attendees.0.name}}\"}",
"oAuthClientId": "<string>",
"id": 123,
"triggers": [
{}
],
"subscriberUrl": "<string>",
"active": true,
"secret": "<string>"
}
}curl --request GET \
--url https://api.cal.com/v2/oauth-clients/{clientId}/webhooks/{webhookId} \
--header 'Authorization: Bearer <token>' \
--header 'x-cal-secret-key: <x-cal-secret-key>'{
"status": "success",
"data": {
"payloadTemplate": "{\"content\":\"A new event has been scheduled\",\"type\":\"{{type}}\",\"name\":\"{{title}}\",\"organizer\":\"{{organizer.name}}\",\"booker\":\"{{attendees.0.name}}\"}",
"oAuthClientId": "<string>",
"id": 123,
"triggers": [
{}
],
"subscriberUrl": "<string>",
"active": true,
"secret": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
OAuth client secret key
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?