Skip to main content
POST
Needs webhooks:create, and a role in the workspace that can manage notifications: owners and managers can. See Permissions.
Makes an endpoint: a public 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.
The answer has the signing secret in full, in secret, this once. Store it now: the API never gives it again. In the app, under Settings → Notifications → Webhooks, you can see it again or make a new one. Verify webhooks shows how to check each request with it.
  • events needs at least one event.
  • account_ids keeps the events about some social accounts. Left out, empty or null: every account.
  • workspace_ids also 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 (15 or "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 or null: this workspace alone.
  • active: false makes the endpoint switched off: nothing is sent until you turn it on with Update a webhook. Left out, it is on.
The address must be public: private, loopback and reserved addresses are refused, and PostSyncer checks again each time it sends. Your server should answer with a 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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspace_id
integer
required

The workspace it belongs to. It must be one the key can reach.

name
string
required

A name for the endpoint.

Maximum string length: 100
url
string
required

A public https:// address that gets the events. Private, internal and reserved addresses are refused.

Maximum string length: 2048
events
enum<string>[]
required

The events it gets, at least one.

Minimum array length: 1
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
account_ids
integer[] | null

Only events about these social accounts, each one the key can reach. Empty or null: every account.

workspace_ids
(integer | string | enum<string>)[] | null

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.

active
boolean
default:true

false makes it switched off: nothing is sent until you turn it on with Update a webhook.

Response

The webhook, with its secret.

A signed webhook endpoint.

id
integer
required
workspace_id
integer
required

The workspace it belongs to.

kind
enum<string>
required
Available options:
webhook
name
string
required
Maximum string length: 100
url
string
required

Where the events go. In full when your role lets you edit the endpoint; otherwise the scheme and host alone, like https://hooks.haldencoffee.com/….

url_masked
boolean
required

True when url is cut to the scheme and host.

secret_last4
string
required

The secret's last four characters, to tell secrets apart.

events
enum<string>[]
required
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
account_ids
integer[] | null
required

Only events about these accounts; null for every account.

workspace_ids
(integer | enum<string>)[] | null
required

The other workspaces it gets events from, as numbers (an id sent as a string of digits comes back as a number), or ["*"] for every workspace the owner has; null for its own workspace alone.

active
boolean
required

False when it is turned off: nothing is sent to it.

failing_since
string<date-time> | null
required

When its deliveries started failing; null while they work. After 3 days failing it is turned off.

disabled_reason
string | null
required

Why PostSyncer turned it off, like It has been failing for 3 days.; null otherwise.

created_at
string<date-time>
required
updated_at
string<date-time>
required
stats_7d
object
required

Deliveries over the last 7 days: today and the six days before, oldest first. A delivery that gave up counts as failed.

last_delivery_at
string<date-time> | null
required

When the latest delivery was made; null before the first.

secret
string

Only in the answer to Create a webhook: the signing secret in full, whsec_ and 32 characters.