Webhooks
Delete Webhooks
Webhooks
Delete Webhooks
Delete a webhook.
DELETE
/
v1
/
webhooks
/
{_id}
curl --request DELETE \
--url https://api.aicaller.io/v1/webhooks/{_id} \
--header 'aicaller-api-key: <api-key>'
{
"data": {
"teamId": "363573667364666473667332",
"url": "https://hooks.abc.com/",
"subscribedEvents": [
"phoneCall.completed"
],
"method": "GET",
"_id": "363573667364666473667332",
"createAt": "2023-10-12T09:08:00.387Z",
"updatedAt": "2023-10-12T09:08:00.387Z"
}
}
Authorizations
Response
200
application/json
Webhook deleted
The ID of the team to which the webhook belongs.
Example:
"363573667364666473667332"
Example:
"https://hooks.abc.com/"
Example:
["phoneCall.completed"]
Available options:
GET
, POST
Example:
"GET"
The unique identifier for the webhook.
Example:
"363573667364666473667332"
Example:
"2023-10-12T09:08:00.387Z"
Example:
"2023-10-12T09:08:00.387Z"
curl --request DELETE \
--url https://api.aicaller.io/v1/webhooks/{_id} \
--header 'aicaller-api-key: <api-key>'
{
"data": {
"teamId": "363573667364666473667332",
"url": "https://hooks.abc.com/",
"subscribedEvents": [
"phoneCall.completed"
],
"method": "GET",
"_id": "363573667364666473667332",
"createAt": "2023-10-12T09:08:00.387Z",
"updatedAt": "2023-10-12T09:08:00.387Z"
}
}