Zernio Webhooks API
Configure webhooks for real-time notifications, from the dashboard (Settings → Webhooks) or via this API. **Events:** - Posts: `post.scheduled`, `post.published`, `post.failed`, `post.partial`, `post.cancelled`, `post.recycled`, `post.platform.published`, `post.platform.failed`, `post.platform.deleted`, `post.tiktok.url_resolved`, `post.external.created`, `post.external.updated`, `post.external.deleted`, `post.tracking_completed`, `post.authenticity_changed` - Accounts and analytics: `account.connected`, `account.disconnected`, `account.permissions_changed`, `account.ads.initial_sync_completed`, `account.ads.sync_failed`, `account.ads.sync_recovered`, `account.rate_limited`, `account.restricted`, `account.recovered`, `account.privacy_request`, `analytics.synced` - Messages: `message.received`, `message.sent`, `message.edited`, `message.deleted`, `message.delivered`, `message.read`, `message.played`, `message.failed`, `reaction.received`, `referral.received`, `conversation.started`, `conversation.control_changed` - Calls: `call.received`, `call.ended`, `call.failed`, `call.permission_request`, `call.transcript_segment`, `call.recording_ready` - Engagement and leads: `comment.received`, `mention.received`, `review.new`, `review.updated`, `review.deleted`, `review.restored`, `lead.received` - Ads: `ad.status_changed`, `ad.created`, `ad.updated`, `campaign.created`, `campaign.updated`, `ad_set.created`, `ad_set.updated`, `ad.review.approved`, `ad.review.rejected`, `ad.delivery_issue`, `campaign.budget.depleted`, `ad_account.status_changed`, `campaign.status_changed`, `ad.video.processed`, `ad_rule.triggered`, `tracking_site.ready` - WhatsApp: `whatsapp.template.status_updated`, `whatsapp.template.category_updated`, `whatsapp.account.name_status_updated`, `whatsapp.account.quality_updated`, `whatsapp.account.status_updated`, `whatsapp.account.alert_received`, `whatsapp.contact.identity_changed`, `whatsapp.automatic_event` - WhatsApp numbers: `whatsapp.number.activated`, `whatsapp.number.declined`, `whatsapp.number.action_required`, `whatsapp.number.verification_required`, `whatsapp.number.suspended`, `whatsapp.number.reactivated`, `whatsapp.number.released`, `whatsapp.number.kyc_submitted` - Telephony: `phone_number.stock_available`, `verification.approved`, `verification.failed`, `sms.registration.action_required`, `sms.registration.status_updated`, `branded_calling.identity.status_updated`, `branded_calling.identity.action_required`, `branded_calling.number.status_updated`, `rcs.agent.status_updated` - Commerce: `commerce.product.created`, `commerce.product.updated`, `commerce.product.deleted`, `commerce.order.created`, `commerce.order.updated`, `commerce.order.refunded` - Contacts and automations: `contact.tag_added`, `contact.tag_removed`, `contact.field_changed`, `contact.updated`, `contact.deleted`, `sequence.enrolled`, `sequence.exited`, `workflow.run.started`, `workflow.run.completed`, `workflow.run.failed`, `support.run.completed`, `support.run.failed`, `automation.check.completed`, `automation.action.applied`, `automation.action.failed`, `automation.action.unknown`, `automation.alert.opened`, `automation.alert.escalated`, `automation.alert.resolved` - Creator campaigns: `campaign_submission.received`, `campaign_submission.flagged`, `campaign_submission.pending_review`, `campaign_submission.approved`, `campaign_submission.rejected`, `creator_campaign.budget_exhausted`, `creator_campaign.closed`, `campaign_payout.payable`, `campaign_payout.settled`, `campaign_payout.failed`, `campaign_participant.joined`, `campaign_participant.pending`, `campaign_participant.approved`, `campaign_participant.denied`, `campaign_participant.suspended`, `campaign_participant.removed`, `campaign_draft.submitted`, `campaign_draft.approved`, `campaign_draft.revision_requested`, `campaign_draft.rejected`, `campaign_sample.requested`, `campaign_sample.approved`, `campaign_sample.shipped`, `campaign_sample.declined` - Calendar and files: `calendar.event.created`, `calendar.event.updated`, `calendar.event.deleted`, `file.created`, `file.updated`, `file.deleted`, `file.picked` - Email: `email.sent`, `email.opened`, `email.link_clicked`, `email.thread_replied`, `email.send_failed`, `email.bounced`, `email.updated`, `email.deleted` - Billing: `balance.low`, `balance.empty`, `balance.charged`, `billing.publishing_blocked`, `billing.publishing_unblocked` - Notifications: `notification.sent` - Other: `api.changelog.published`, `webhook.test` **Headers.** Every delivery carries `X-Zernio-Event` (event name) and `X-Zernio-Event-Id` (the payload `id`). That UUID is minted once per event and is identical across every subscribed endpoint, automatic retry and redelivery, so dedupe on it. **Security.** Optional HMAC-SHA256 signature in the `X-Zernio-Signature` header: configure a secret key to enable verification. Custom headers are supported. Legacy `X-Late-Event`, `X-Late-Event-Id` and `X-Late-Signature` duplicates are still sent and will be removed in a future major version. **Resource groups.** Every event belongs to one group: - publishing: `post.*` - messages: `message.*`, `reaction.*`, `conversation.*`, `call.*`, `whatsapp.automatic_event`, `sequence.*`, `workflow.run.*` - engagement: `comment.*`, `review.*` - contacts: `lead.*`, `contact.*` - ads: `ad.*`, `ad_account.*`, `ad_rule.*`, `campaign.*` - accounts: `account.*`, `whatsapp.template.*`, `whatsapp.account.*` - analytics: `analytics.*` - telephony: `whatsapp.number.*`, `verification.*`, `sms.registration.*` - creator_campaigns: `campaign_submission.*`, `creator_campaign.*`, `campaign_payout.*`, `campaign_participant.*`, `campaign_draft.*`, `campaign_sample.*` - money: `balance.*` - webhooks: `api.changelog.published`, `webhook.test` Support Assistant events (`support.run.*`) belong to no single group: they need every resource group enabled and a first-party full-scope caller (a session or a full-scope key, never an OAuth token or a profile-scoped key). Two independent controls use that mapping: 1. A restricted (`zrk_`) API key can only subscribe to, test-fire, redeliver, or read delivery logs for events in the groups it holds, so it can never create a subscription broader than itself. 2. Each subscription carries its own `disabledResourceGroups` denylist. Events in a disabled group are dropped before delivery to that endpoint, on live delivery and every replay path, whichever key or session created the subscription. Changing the denylist applies to every event emitted after the change. Events already queued can still be delivered for up to five minutes after enqueue, because the delivery worker trusts a five-minute enqueue-time snapshot before re-checking. Absent or empty means the subscription receives everything it subscribes to (the behavior of every subscription created before the field existed). **Profile and account filters.** A subscription can carry `profileIds` (an allowlist of profiles) and `accountIds` (an allowlist of connected accounts, same semantics). Each non-empty list narrows delivery; a subscription with both must satisfy both. Absent or empty means every profile (or every account). A scoped subscription only gets events it can attribute to one of those profiles: the profile of the connected account behind the event, or, for an aggregate `post.*` event, the profile of every account the post targets (a post spanning two scoped endpoints' profiles reaches both). This lets an integrator route the profile holding test accounts to a staging endpoint while a second subscription, scoped to production profiles, keeps production traffic. Events that belong to no profile (`verification.*`, `phone_number.*`, and a legacy post whose accounts were deleted) reach only unscoped subscriptions. The filter runs when an event is emitted; redelivery replays a delivery already made to that endpoint, and test fires ignore it.