📋
Tolstoy
  • Welcome
  • API Reference
    • User
    • Video
    • Webhook
    • Project
  • JavaScript SDK
    • Installation
    • Configuration
    • Identify
    • Events
Powered by GitBook
On this page
  • List Webhooks
  • Add Webhook
  • Delete Webhook

Was this helpful?

  1. API Reference

Webhook

Webhooks operations

List Webhooks

GET https://api.gotolstoy.com/webhooks

This endpoint returns a list of your webhooks.

Headers

Name
Type
Description

Authorization

string

Authorization token Bearer Token

[{"createdAt":"2021-03-22T13:51:16.322Z","event":"response_summary","owner":"32f9d998-9217-47bb-8f76-c0a6dee4931b","url":"https://my.web.hook.url","id":"d955d84b-046f-4b28-92ab-4d3a228c5c04","updatedAt":"2021-03-22T13:51:16.322Z"}]

Add Webhook

POST https://api.gotolstoy.com/webhooks/

Add a Webhook for an event Available events: - response_summary - collected_info - conversion

Headers

Name
Type
Description

Authorization

string

Authorization token - Bearer Token

Request Body

Name
Type
Description

event

string

The event you want to subscribe to

url

string

The url to send the event to

{"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"}

Delete Webhook

DELETE https://api.gotolstoy.com/webhooks/:id

Delete a webhook

Path Parameters

Name
Type
Description

id

string

Webhook id to delete

Headers

Name
Type
Description

Authorization

string

Authorization token - Bearer Token

PreviousVideoNextProject

Last updated 3 years ago

Was this helpful?