Перейти до основного вмісту
WEBHOOK

Авторизації

Authorization
string
header
обов'язково

API token from the Zenedu dashboard

Заголовки

Signature
string
обов'язково

HMAC-SHA256 of the raw request body, hex. The key is the API token of the account

X-Event-Type
string
обов'язково

Event type, the same as event in the body

X-Webhook-ID
string
обов'язково

Delivery ID, the same as _id in the body

Тіло

application/json

Body of every webhook delivery

_id
string
обов'язково

Unique delivery ID (ULID), the same as the X-Webhook-ID header. Retries of a delivery keep it, use it to skip duplicates

Приклад:

"01JCQ8Z5W3K7X2M4N6P8R0T2V4"

event
string
обов'язково

Event type, the same as the X-Event-Type header

Allowed value: "subscription.past_due"
description
string | null
обов'язково

Description of the webhook subscription

timestamp
string<date-time>
обов'язково

When the event happened (ISO 8601)

data
object
обов'язково

Event object, its shape depends on event

Відповідь

2XX

Return any 2xx status within 3 seconds to confirm the delivery. Any other status, a connection error or a timeout is retried