Тестирование Webhook
Отправляйте примеры полезной нагрузки Webhook и проверяйте схему событий.
https://example.com используется в качестве зарезервированного заполнителя. Для собственных тестов замените его на URL Webhook вашего приложения в сгенерированном запросе. Эта конечная точка размещается на стороне вашего приложения; YCloud не размещает /webhooks/ycloud.
YCloud-Signature является демонстрационным значением; он
не является действительной подписью для отредактированной полезной нагрузки или секрета вашей конечной точки.YCloud-Signature перед обработкой события. Ознакомьтесь с разделом Настройка Webhook для получения инструкций по настройке и доставке.
Ответ приемника
Возвращайте любой статус2xx после того, как вы аутентифицировали и надежно приняли событие. Выполняйте длительные задачи асинхронно, чтобы YCloud не повторял попытку доставки события, которое ваше приложение уже получило.
HTTP/1.1 200 OK
Настройка Webhook
Просмотр примеров с пояснениями
Заголовки
"t=1654084800,s=8eb70f2acb056c2119acbee8fdd98a889021d9c268bc9ad248a4182c40e31119"
Тело
- Option 1
- Option 2
- Option 3
Represents a webhook event payload.
Every event contains certain common properties: id, type, apiVersion, createTime.
Each event may also contain some properties unique to the event. For example, sms is returned when type is sms.message.updated.
Type of event.
whatsapp.echo_message.created, whatsapp.echo_message.updated Included when type is whatsapp.message.updated, whatsapp.smb.message.created, or when type is whatsapp.smb.history for an outbound history message. Also included for whatsapp.echo_message.created and whatsapp.echo_message.updated, where the Agent echo subset applies. It is omitted for a metadata-only history chunk.
Show child attributes
Show child attributes
Unique ID for the event.
6 - 128The API version used to render this event.
"v2"
Included when type is whatsapp.smb.history and the event was generated from a Meta history chunk. Identifies the chunk's synchronization phase.
1
Included when type is whatsapp.smb.history and the event was generated from a Meta history chunk. Reports the chunk's synchronization progress.
73
Included when type is contact.attributes_changed.
Show child attributes
Show child attributes
Included when type is contact.created.
Show child attributes
Show child attributes
Included when type is contact.deleted.
Show child attributes
Show child attributes
Included when type is contact.note.created, contact.note.updated, or contact.note.deleted.
Show child attributes
Show child attributes
Included when type is contact.unsubscribe.created.
Show child attributes
Show child attributes
Included when type is contact.unsubscribe.deleted.
Show child attributes
Show child attributes
Included when type is email.delivery.updated.
Show child attributes
Show child attributes
Included when type is sms.message.updated.
Show child attributes
Show child attributes
Included when type is sms.inbound.received.
Show child attributes
Show child attributes
Included when type is voice.message.updated.
Show child attributes
Show child attributes
Included when type is whatsapp.business_account.deleted, whatsapp.business_account.reviewed, or whatsapp.business_account.updated.
Show child attributes
Show child attributes
Included when type is whatsapp.inbound_message.received, or when type is whatsapp.smb.history for an inbound history message. It is omitted for a metadata-only history chunk.
Show child attributes
Show child attributes
Included for whatsapp.meta_business_agent.handover.updated. Currently limited to Public REST API Agents.
Show child attributes
Show child attributes
Included when type is whatsapp.group.lifecycle_update, whatsapp.group.participants_update, whatsapp.group.settings_update, whatsapp.group.status_update, or when type is whatsapp.message.updated for group message status updates.
Show child attributes
Show child attributes
Included when type is whatsapp.phone_number.deleted, whatsapp.phone_number.name_updated, whatsapp.phone_number.quality_updated, or whatsapp.phone_number.business_username_updated.
Show child attributes
Show child attributes
Included when type is whatsapp.payment.updated.
Show child attributes
Show child attributes
Included when type is whatsapp.template.reviewed, whatsapp.template.quality_updated, whatsapp.template.category_updated, or whatsapp.template.correct_category_detection.
Show child attributes
Show child attributes
Included when type is whatsapp.call.connect.
Show child attributes
Show child attributes
Included when type is whatsapp.call.terminate.
Show child attributes
Show child attributes
Included when type is whatsapp.call.status.updated.
Show child attributes
Show child attributes
Included when type is whatsapp.call.recording.updated.
Show child attributes
Show child attributes
Included when type is whatsapp.call.transcription.updated.
Show child attributes
Show child attributes
Included when type is whatsapp.flow.status_change.
Show child attributes
Show child attributes
Included when type is whatsapp.user.preferences.
Show child attributes
Show child attributes
Ответ
The request is successfully accepted.

