cURL
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.
The ID of the team to which the webhook belongs.
"363573667364666473667332"
"https://hooks.abc.com/"
["phoneCall.completed"]
GET
POST
"GET"
Webhook Successfully Created.
Show child attributes
The unique identifier for the webhook.
"2023-10-12T09:08:00.387Z"
"NjUyOTgwMjkpJU0NmY25yzWkJFWDBE12"