API
Webhook events
Add an endpoint and choose its events. Each event is one signed POST with a JSON body; failed deliveries are retried for about 14 hours.
Endpoints
POST /v1/webhooks { "url": "https://yourapp.com/hooks", "events": ["post.published", "dm.received"] }
GET /v1/webhooks/events the event names
POST /v1/webhooks/{webhook_id}/test send a webhook.test event now
GET /v1/webhooks/{webhook_id}/deliveries the delivery log
POST /v1/webhooks/{webhook_id}/deliveries/{id}/retry send one delivery againAn empty events list, or "*", subscribes to every event. The URL must be public https; private addresses are refused.
The envelope
{
"event": "comment.received",
"data": {
"id": "8c1e…",
"platform": "instagram",
"type": "comment",
"account_id": "…",
"brand_id": "…",
"author": { "id": "1784…", "name": "Asha", "username": "asha.cooks" },
"content": { "text": "Love this!" },
"received_at": "2026-11-22T09:14:03Z",
"platform_post_id": "1790…",
"permalink": "https://www.instagram.com/p/…"
},
"raw_payload": { … }
}- Comment, DM and mention events share that
datashape. DMs carryplatform_id(the message id) andconversation_id; comments carryplatform_post_id. raw_payload, when present, is what the platform sent us, untouched.- WhatsApp
dm.receivedhasmetadata.phone_number_id, and for button, list and quick reply tapsmetadata.payloadandmetadata.interactive_type. Telegram DMs havemetadata.chat_idandmetadata.message_id. dm.status.*from WhatsApp: one event per message withid,message_id,recipient_id,statusand, on failure,error_code,error_titleanderror_message. From Facebook and Instagram: one event per receipt with themidsit covers.account.updatedhaschange, for examplepermissions_reducedwith the lostpermissions.account.disconnectedis sent when the platform cut access (reconnect_required: true), not when you callDELETE /v1/accounts/{id}.
All 25 events
| Event | When | Sent by |
|---|---|---|
post.scheduled | A post was scheduled | Every platform you publish to |
post.published | A post reached every target | Every platform you publish to |
post.failed | A post failed on every target | Every platform you publish to |
post.partial | A post reached some targets and failed on others | Every platform you publish to |
post.updated | A post was edited (before publishing, or its live text after) | Every platform you publish to |
post.deleted | A post was deleted | Every platform you publish to |
post.unpublished | A published post was removed from a platform | Every platform you publish to |
post.retried | A failed post was retried | Every platform you publish to |
comment.received | A new comment arrived on a post | Instagram, Facebook (also edited comments), Threads, YouTube, X, Bluesky, LinkedIn Pages |
dm.received | A direct message arrived | Instagram, Facebook, WhatsApp, Telegram, X, Bluesky, Zalo |
dm.sent | A direct message was sent from the account | Replies sent through the API, and replies typed in the Instagram or Messenger app |
dm.referral | Someone opened a conversation from an ad or link | Instagram, Facebook |
dm.postback | Someone tapped a button in a message | Instagram, Facebook (button and quick reply taps) |
dm.deleted | A message was deleted by its sender | Instagram (the sender unsent it) |
dm.status.sent | A sent message was accepted by the platform | |
dm.status.delivered | A sent message was delivered | WhatsApp, Facebook, Instagram |
dm.status.read | A sent message was read | WhatsApp, Facebook, Instagram |
dm.status.failed | A sent message failed | |
review.received | A new review arrived | Google Business (App Store reviews send no event) |
review.updated | A review was edited | Google Business |
mention.received | The account was mentioned or tagged | Instagram, Threads, X, Bluesky |
account.connected | An account was connected | Every platform |
account.disconnected | The platform ended access to an account (not sent when you disconnect it yourself) | Every platform |
account.updated | An account's status or details changed | Every platform |
page.removed | A Page is no longer available to its login |
post.updated also follows an edit of a live post (with changed_fields).
Verify the signature
Each endpoint has its own secret. Compute HMAC-SHA256 of <timestamp>.<raw body> with it and compare, in constant time, with X-SocialHub-Signature-V2 (sha256=<hex>). Reject timestamps more than 5 minutes old. Code for Node and Python is on Webhooks.
| Header | Value |
|---|---|
X-SocialHub-Event | The event name. |
X-SocialHub-Delivery | The delivery id: the same on every retry and resend. Use it to drop duplicates. Absent on test events. |
X-SocialHub-Timestamp | Unix seconds when this request was signed. |
X-SocialHub-Signature-V2 | sha256=<hex HMAC of timestamp.body>. |
X-SocialHub-Signature | sha256=<hex HMAC of the body alone>. Older form without a freshness check: prefer V2. |
Retries
- Answer with any 2xx within 10 seconds. Anything else is a failed attempt.
- When the attempt fails to connect, or your server answers 429 or a 5xx other than 501, it is sent once more 2 seconds later, inside the same attempt and with the same delivery id.
- A delivery gets 10 attempts. The waits between them are 10 s, 1 min, 5 min, 15 min, 30 min, 1 h, 2 h, 4 h and 6 h, each varied by up to 10%: about 14 hours in all.
- After the last attempt the delivery is marked failed and a
webhook.delivery_failedentry appears in the event log. Resend it from the dashboard or with the retry endpoint. - Deliveries to a disabled endpoint fail at once.