Postifuse Docs

Webhooks

Register a webhook

POSThttps://postifuse.com/v1/webhooks

Register a URL. Each event is signed with Postifuse-Signature (HMAC SHA-256 of the raw body) and retried with backoff for 24 h. Every event carries the profile and its external_id, so you route it to the right client without a lookup.

curl --request POST \
  --url 'https://postifuse.com/v1/webhooks' \
  --header 'Authorization: Bearer pf_live_…' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://app.example.com/hooks/postifuse",
  "events": [
    "post.delivered",
    "post.failed",
    "post.held",
    "account.paused"
  ]
}'
{
  "id": "whk_3",
  "secret": "whsec_…",
  "events": [
    "post.delivered",
    "post.failed",
    "post.held",
    "account.paused"
  ]
}

Headers

Authorizationstringrequired

Bearer followed by a workspace key, a profile key or an OAuth token. See authentication.

Example Bearer pf_live_…

Body application/json

urlstring<uri>required

Your HTTPS endpoint.

Example https://app.example.com/hooks/postifuse

eventsarray<string>required

The events to receive.

One of post.scheduled post.held post.delivered post.failed approval.decided account.paused account.disconnected media.ready post.unpublished

Example ["post.delivered","post.failed","post.held","account.paused"]

Response

200The webhook and its secret
403Workspace not active

Events

EventWhen
media.readyThe per-network versions of an adjusted file are ready
post.scheduledA post is accepted for at least one account
post.heldA post needs a person for one account (a video too long, a file to convert); the payload says what to do. Text problems are corrected, not held
post.deliveredOne account published; one event per account, with the live URL
post.failedThe network refused at publish time
post.unpublishedA post was taken down from one account
approval.decidedA person approved or rejected a post
account.pausedPaused by you, or by Postifuse after a network warning
account.disconnectedThe token expired or the owner revoked it; send them a new connect link