Webhooks
Add Webhook
Webhooks
Add Webhook
Add a Webhook for an event
POST
/webhooks
Authentication*
curl --request POST \
--url https://api.gotolstoy.com/webhooks \
--header 'Authentication: <authentication>'
Available events:
response_summary
collected_info
conversion
Parameters
event
string
The event you want to subscribe to
url
string
The url to send the event to
curl -X POST https://api.gotolstoy.com/webhooks \
--header 'Authorization: Bearer <API_KEY>'
{
"id": "8fde3c42-0d34-4d51-8b48-6930c1a5bf80",
"url": "https://my.web.hook.url",
"event": "response_summary",
"owner": "43a7bd93-c302-4c18-93bc-d7151c586336",
"__typename": "webhook",
"createdAt": "2021-05-23T13:44:05.854Z",
"updatedAt": "2021-05-23T13:44:05.854Z"
}
curl -X POST https://api.gotolstoy.com/webhooks \
--header 'Authorization: Bearer <API_KEY>'
{
"id": "8fde3c42-0d34-4d51-8b48-6930c1a5bf80",
"url": "https://my.web.hook.url",
"event": "response_summary",
"owner": "43a7bd93-c302-4c18-93bc-d7151c586336",
"__typename": "webhook",
"createdAt": "2021-05-23T13:44:05.854Z",
"updatedAt": "2021-05-23T13:44:05.854Z"
}