Skip to main content
GET
Get a webhook
Needs webhooks:read. Every role in the workspace can read it. See Permissions.
Gives the endpoint when it is in a workspace the key can reach. The signing secret is never in it, and url is cut to the scheme and host (url_masked: true) when your role can’t edit the endpoint.
  • stats_7d counts the deliveries of today and the six days before, oldest first. A delivery that gave up counts as failed.
  • failing_since is when its deliveries started failing; null while they work.
  • After 3 days of failing PostSyncer turns it off: active is false, disabled_reason says why, and the person who set it up is told, or the workspace owner if that person is no longer in the workspace. Update a webhook with "active": true turns it on again.
List webhook deliveries has each request sent and what your server answered.

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.

Response

The webhook.

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.