Create an event subscription
Register a public https:// URL that receives this channel’s events. Each delivery is one
ChannelEvent, signed with X-HookMyApp-Signature-256 using the secret returned only in
this response. To rotate the secret or change the URL, delete and create again.
Supported event types by channel type: WhatsApp whatsapp.message.received,
whatsapp.message.status; Instagram instagram.message.received,
instagram.comment.received; Facebook Page: none yet. At most 25 per channel.
Errors: CHANNEL_ACTION_INPUT_INVALID (body shape, unknown type, empty events, label
over 120 characters), CHANNEL_EVENT_TYPE_UNSUPPORTED (a type this channel cannot
produce), WEBHOOK_URL_INVALID (not https or not a public host),
SUBSCRIPTION_LIMIT_REACHED (409).
Authorizations
Authorization: Bearer hmok_... API key or a dashboard session token
Path Parameters
ch_ channel id
^ch_[A-Za-z0-9]{8}$Body
Public https URL that receives the events
1whatsapp.message.received, whatsapp.message.status, instagram.message.received, instagram.comment.received Shown in your delivery log
120Response
Created. secret is returned only here.
^sub_[A-Za-z0-9]{8}$whatsapp.message.received, whatsapp.message.status, instagram.message.received, instagram.comment.received Signs X-HookMyApp-Signature-256 on every delivery. Returned only here.