Webhooks
Create a webhook
Make a signed endpoint that gets the PostSyncer events you choose.
POST
Needs
webhooks:create, and a role in the workspace that can manage notifications: owners and managers can. See Permissions.https:// address on your side that gets a signed JSON request for each event it listens for. Webhooks lists the events and what each one holds.
eventsneeds at least one event.account_idskeeps the events about some social accounts. Left out, empty ornull: every account.workspace_idsalso sends the events of other workspaces, where your role must let you manage notifications too. An id may be a number or a string of digits (15or"15"), and comes back as a number.["*"]sends the events of every workspace the owner has, and only the workspace owner can set it. Left out, empty ornull: this workspace alone.active: falsemakes the endpoint switched off: nothing is sent until you turn it on with Update a webhook. Left out, it is on.
2xx within 10 seconds. Redirects aren’t followed: a 3xx answer fails, so use the address it redirects to. A workspace has at most 20 endpoints; one more is refused with 422 on name. Webhooks work on every plan.
Errors
Related
- Send a test event: check your server gets and verifies it.
- Verify webhooks: check the signature.
Authorizations
Body
application/json
The events it gets, at least one.
Minimum array length:
1Available options:
post.published, post.partially_published, post.failed, post.account_published, post.account_failed, post.scheduled, post.deleted, post.needs_media, posts.bulk_removed, approval.requested, approval.approved, approval.rejected, account.needs_reconnect, account.expires_soon, account.paused, account.connected, account.disconnected, account.posts_to_put_back, comment.mentioned, comment.received, share.comment_received, review.received, media.generated, media.generation_failed, brand.learned, team.member_joined, webhook.test Also send the events of these workspaces, where your role must let you manage notifications, or ["*"] for every workspace the owner has (the workspace owner only). An id may be a number or a string of digits (15 or "15"); it comes back as a number. Empty or null: this workspace alone.
Response
The webhook, with its secret.
A signed webhook endpoint.
Available options:
post.published, post.partially_published, post.failed, post.account_published, post.account_failed, post.scheduled, post.deleted, post.needs_media, posts.bulk_removed, approval.requested, approval.approved, approval.rejected, account.needs_reconnect, account.expires_soon, account.paused, account.connected, account.disconnected, account.posts_to_put_back, comment.mentioned, comment.received, share.comment_received, review.received, media.generated, media.generation_failed, brand.learned, team.member_joined, webhook.test