post https://{subdomain}.kommo.com/api/v4/webhooks
The method allows creating a webhook to sent event notifications to the specified URL.
Limitations
Method is available for administrator of the account only.
Data type header when the request is successful
Content-Type: application/hal+json
Data type header in case of an error
Content-Type: application/problem+json
Response parameters
The method returns the added webhook object. The properties of the object are listed below.
Parameter | Data type | Description |
---|---|---|
id | int | Webhook ID |
created_by | int | ID of the user who created the webhook |
created_at | int | Webhook creation date in the format of Unix Timestamp |
updated_at | int | Webhook edit date in the format of Unix Timestamp |
sort | int | Webhook sorting |
disabled | bool | Defines whether webhook is disabled |
destination | string | Valid URL where you want to receive a notification |
settings | array | Webhook trigger events |