This page lists the endpoints. The events, the signature and how to verify it in Node.js and Python are in the webhooks guide. Up to 5 endpoints, on every plan.
GET /api/webhooks: List your webhook endpoints (the signing secret is never returned)
POST /api/webhooks: Add a webhook endpoint; the response carries its signing secret, once
GET /api/webhooks/{id}/deliveries: The delivery log of an endpoint: the last 50 deliveries with status, attempts, the endpoint's answer and the payload
PostWire calls your endpoints when a post goes out or fails on a network, when a connection must be signed in again, and (only for an endpoint that asks for them) when a post is held for approval and when someone decides. Every plan; up to 5 endpoints. Events and signature: postwire.io/docs/webhooks/ (payload schema: components.schemas.WebhookEvent).
Needs an API key: Authorization: Bearer pw_live_….
Responses
Status
Means
200
{ webhooks: [Webhook], events: [string] (every event an endpoint can ask for), default_events: [string] (what an endpoint created without events gets), max: 5 }
503
code webhooks_unavailable: webhooks are not switched on on this server yet
Needs an API key: Authorization: Bearer pw_live_….
Body (JSON)
Field
Type
Description
urlrequired
string (uri)
A public https URL. Redirects are not followed.
events
array of string
Default: post.published, post.failed and connection.reauth_required. approval.requested and approval.decided are sent only to an endpoint that lists them. One of: post.published, post.failed, connection.reauth_required, approval.requested, approval.decided.
description
string
Up to 200 characters.
Responses
Status
Means
201
{ webhook: Webhook, secret: "whsec_…" } — keep the secret: it is not shown again
400
code bad_url (not https, not public, malformed), bad_request (unknown event) or too_many (5 endpoints already)