Available on the Team, Advanced and Business plans. Not included in Starter or the lifetime plans.
Create a webhook
- In the sidebar, under Configuration, click Webhooks.
- Click Create webhook.
- Fill in the details:
- Name and Callback URL.
- Method: POST (default), GET, PUT or DELETE.
- Content-Type: use
application/json. - Max attempts: 1, 2 or 3 tries in total.
- Secret (Optional): used to sign each request. See Verify the signature.
- Under Events, tick the events you want.
- Click Create and confirm your password if asked.
test event.
Events
There is no event for creating or editing a post.
Payload
Every request has anevent and a data object.
- Post events send the post, in the same format as the API.
post.publishedandpost.publishing_failedalso include theaccountit was sent to. post.deletedsendsuuids(the deleted posts) and eitherdeleted: trueorto_trash: true.account.addedandaccount.updatedsend the account.account.deletedsends the account’suuid.
X-Request-Source header.
Verify the signature
If you set a secret, each request has anX-Signature header. It’s an HMAC-SHA256 hash of the raw request body, made with your secret, in lowercase hex.
Compare it with your own hash of the raw body before you trust the request.
Retries
- A delivery succeeds when your URL replies with status 200, 201 or 202. Any other status, or no reply, is a failure.
- After a failure, PaddyPost tries again up to your Max attempts: 2 minutes later, then 4 minutes after that.
- Retries stop if you make the webhook inactive.