Skip to main content
POST
Create Zapier webhook

Авторизации

Authorization
string
header
обязательно

API token from the Zenedu dashboard

Параметры пути

bot
integer
обязательно

Bot ID

Тело

application/json
hookUrl
string<uri>
обязательно

Destination URL that receives a POST request with the event data every time the trigger fires (Zapier's catch hook URL).

trigger
enum<string>
обязательно

The event that triggers a POST with the event data to hookUrl.

Доступные опции:
NewSubscriber,
NewOrder,
NewOrderStatus,
NewSubscriberContacts,
TagAssignedToSubscriber

Ответ

Webhook created

id
integer

ID of the created subscription. Pass it as hookId to the DELETE endpoint to unsubscribe.