Webhooks
Manage webhook subscriptions for real-time events (post.scheduled, post.published, post.failed, post.approved, post.rejected). Deliveries are signed with HMAC-SHA256.
List webhooks
Create a webhook
Creates a webhook in the key's workspace that receives the chosen events at an HTTPS URL on a public host. The answer carries the signing secret once: save it to check the HMAC-SHA256 signature of each delivery. An organisation has at most 100 webhooks (409 webhook_limit_reached).
Create a webhook › Request Body
urlHTTPS URL to receive events. Must resolve to a public host; private, loopback, link-local and unresolvable hosts are rejected with validation_error. Deliveries go to this exact URL and follow no redirect (a 3xx answer is a failed delivery).
eventsCreate a webhook › Responses
Webhook created. The secret is only returned once at creation.
messageUpdate a webhook
Works on a webhook of the key's workspace or an organisation-wide webhook of its organisation. Setting url or events, or switching the webhook on, makes the key's creator the person behind the webhook. Before each delivery OmniSocials checks that this person still has access to the organisation (and to Ads for Ads events), and switches the webhook off when not. A change of url, events or a switch-on of a webhook that has Ads events after the change needs the ads:read scope and access to Ads (403 insufficient_scope or insufficient_permission otherwise). A new url on an organisation-wide webhook (workspace_id null) makes it a webhook of the key's workspace, so it then receives only that workspace's events; the answer shows the new workspace_id. To keep a webhook organisation-wide, make it in the OmniSocials dashboard.
path Parameters
idUpdate a webhook › Request Body
urleventsis_activetrue switches the webhook on again (also after an automatic switch-off) and resets failure_count.
Update a webhook › Responses
Webhook updated
Rotate webhook secret
Returns a new signing secret, shown once. The old secret keeps signing for 24 hours: during that time every delivery carries X-OmniSocials-Signature (new secret) and X-OmniSocials-Signature-Previous (old secret, same format, same timestamp and body), so the receiver keeps accepting deliveries while it switches to the new secret. Accept a delivery when either signature matches a secret you hold. Rotating again within the 24 hours replaces the previous secret with the one just rotated out. Works on a webhook of the key's workspace or an organisation-wide webhook of its organisation.
path Parameters
idRotate webhook secret › Responses
New secret generated. Save it now. It is shown only once.
message