Creates a webhook.
curl --request POST \
--url https://api.aicaller.io/v1/webhooks \
--header 'Content-Type: application/json' \
--header 'aicaller-api-key: <api-key>' \
--data '{
"teamId": "363573667364666473667332",
"url": "https://hooks.abc.com/",
"subscribedEvents": [
"phoneCall.completed"
],
"method": "GET"
}'
{
"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",
"secret": "NjUyOTgwMjkpJU0NmY25yzWkJFWDBE12"
}
}
Webhook Successfully Created.
The response is of type object
.
curl --request POST \
--url https://api.aicaller.io/v1/webhooks \
--header 'Content-Type: application/json' \
--header 'aicaller-api-key: <api-key>' \
--data '{
"teamId": "363573667364666473667332",
"url": "https://hooks.abc.com/",
"subscribedEvents": [
"phoneCall.completed"
],
"method": "GET"
}'
{
"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",
"secret": "NjUyOTgwMjkpJU0NmY25yzWkJFWDBE12"
}
}
Creates a webhook.
curl --request POST \
--url https://api.aicaller.io/v1/webhooks \
--header 'Content-Type: application/json' \
--header 'aicaller-api-key: <api-key>' \
--data '{
"teamId": "363573667364666473667332",
"url": "https://hooks.abc.com/",
"subscribedEvents": [
"phoneCall.completed"
],
"method": "GET"
}'
{
"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",
"secret": "NjUyOTgwMjkpJU0NmY25yzWkJFWDBE12"
}
}
Webhook Successfully Created.
The response is of type object
.
curl --request POST \
--url https://api.aicaller.io/v1/webhooks \
--header 'Content-Type: application/json' \
--header 'aicaller-api-key: <api-key>' \
--data '{
"teamId": "363573667364666473667332",
"url": "https://hooks.abc.com/",
"subscribedEvents": [
"phoneCall.completed"
],
"method": "GET"
}'
{
"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",
"secret": "NjUyOTgwMjkpJU0NmY25yzWkJFWDBE12"
}
}