Skip to main content
PUT
Needs webhooks:update, and a role that can manage notifications (owners and managers) in the endpoint’s workspace and in every workspace it also sends events from. See Permissions.
Send only what changes: a field left out stays as it is. events, when sent, replaces the whole list and needs at least one event. The signing secret doesn’t change.
  • "active": true turns the endpoint on again, and clears failing_since and disabled_reason. "active": false turns it off: nothing is sent until it is on.
  • account_ids sent as [] or null gives it every account again; workspace_ids sent as [] or null keeps it to its own workspace.
  • An endpoint that sends from every workspace (["*"]) can be changed only by the person who set it up.

Errors

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

The webhook's id.

Body

application/json
name
string

A name for the endpoint.

Maximum string length: 100
url
string

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

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

The events it gets, at least one. This replaces the whole list.

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

true turns it on again and clears failing_since and disabled_reason. false turns it off: nothing is sent until it is on.

Response

The webhook after the change.

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.