Skip to main content
POST
Create webhook

Авторизации

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

API token from the Zenedu dashboard

Тело

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

Destination URL that will receive webhook deliveries

Maximum string length: 2048
events
enum<string>[]
обязательно

Event types to subscribe to. At least one is required.

Minimum array length: 1
Доступные опции:
order.created,
order.status.changed,
subscriber.added,
product.subscriber.added,
funnel.subscriber.added,
subscriber.contact.created,
subscription.cancelled,
tag.added,
message.received,
message.sent
description
string | null

Optional description included in the body of every delivery

Maximum string length: 255
is_active
boolean
по умолчанию:true

Whether the subscription is active on creation

Ответ

Webhook subscription created

data
object