Skip to content

Webhooks

Webhooks deliver real-time HTTP POST notifications when background asynchronous tasks complete, such as successful post publishing, failures, or reply dispatches.


MethodPathDescriptionRequired Scope
POST/v1/brand/webhooksRegister a new webhook endpointwebhooks:write or *
GET/v1/brand/webhooksList registered webhook subscriptionswebhooks:read or *
DELETE/v1/brand/webhooks/{webhook_id}Delete a webhook subscriptionwebhooks:write or *

Event NameTrigger Condition
sns.publish.succeededPost successfully published to the target social network
sns.publish.failedPost publishing failed (includes error code and retry eligibility)
sns.publish.blocked_entitlementPublishing blocked due to quota limits or expired plan
sns.reply.succeededReply comment successfully posted
sns.reply.failedReply comment dispatch failed
sns.provider.notification_receivedReal-time webhook received from external SNS provider

📦 Webhook Payload Example (sns.publish.succeeded)

Section titled “📦 Webhook Payload Example (sns.publish.succeeded)”
{
"event_id": "evt_01jm8za2example",
"event_type": "sns.publish.succeeded",
"schema_version": 1,
"occurred_at": "2026-08-16T03:30:00Z",
"brand_ref": "brand_01jm8v4k9example",
"trace_id": "trc_9a8b7c6d",
"data": {
"content_id": "content_01jm8za2example",
"publish_job_id": "job_01jm8za2jobexample",
"sns_type": "instagram",
"connection_id": "conn_01jm8x9k2example",
"provider_post_id": "18029384756102938",
"status": "succeeded"
}
}

Webhook requests include custom verification headers:

  • Social-Webhook-Signature: Signature payload (v1=hex_signature)
  • Social-Webhook-Timestamp: Unix timestamp in seconds
  • Social-Webhook-Id: Delivery identifier
import crypto from 'node:crypto';
export function verifyWebhookSignature(rawBody: string, signatureHeader: string, timestampHeader: string, secret: string): boolean {
const signedPayload = `${timestampHeader}.${rawBody}`;
const expectedSignature = crypto.createHmac('sha256', secret).update(signedPayload).digest('hex');
const actual = Buffer.from(signatureHeader);
const expected = Buffer.from(`v1=${expectedSignature}`);
return actual.length === expected.length && crypto.timingSafeEqual(actual, expected);
}
import hmac
import hashlib
def verify_webhook_signature(raw_body: bytes, signature: str, timestamp: str, secret: str) -> bool:
signed_payload = f"{timestamp}.".encode('utf-8') + raw_body
expected = hmac.new(secret.encode('utf-8'), signed_payload, hashlib.sha256).hexdigest()
return hmac.compare_digest(signature, f"v1={expected}")

[!CAUTION] Signature verification must use the unparsed raw request body.