Skip to main content
GET
List webhooks
Needs webhooks:read. Every role in a workspace can read its webhooks. See Permissions.
Gives the webhook endpoints of every workspace the key can reach, oldest first, as a list (not wrapped in data, and not paged). workspace_id keeps one workspace’s; a workspace the key can’t reach gives [], not an error. The signing secret is never in the answer: secret_last4 tells secrets apart. An address can carry a token, so url is in full only when your role lets you edit the endpoint, in its workspace and in every workspace it also sends events from. Otherwise url is the scheme and host alone, like https://hooks.haldencoffee.com/…, and url_masked is true. active: false with a disabled_reason means PostSyncer turned the endpoint off after 3 days of failing. Update a webhook with "active": true turns it on again.

Errors

Authorizations

Authorization
string
header
required

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

Query Parameters

workspace_id
integer

Only this workspace's webhooks.

Response

The webhooks.

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.