POST request to your endpoint with the details.
Add an endpoint
Owners and admins can add up to 10 endpoints per team.- In the app
- With the API
Open Settings › Webhooks, click Add endpoint, then enter your URL and pick the events to send. Copy the signing secret it shows you, because it’s shown only once.
https URL.
Events
Most apps start with
post.published and post.failed.
What a request looks like
data.post has the same fields as a post from the API, without actions. data.account has the same fields as a channel. Some fields are left out above to keep it short.
Before you trust a request, check its signature.
Answer quickly
Answer with any2xx status within 10 seconds. If your work takes longer, answer first and do the work afterwards, for example in a background job.
Retries
If your endpoint doesn’t answer with a2xx in time, Postploy tries again, up to 8 times over about an hour, waiting longer between each try.
Postploy switches an endpoint off when:
- 10 events in a row fail, after all their retries, or
- your endpoint answers
410 Gone.
disabledReason. Turn it back on in Settings › Webhooks, or with Update an endpoint and { "enabled": true }.
Repeats and order
The same event can arrive more than once, for example when your answer is lost on the way back. Every try of a delivery has the samePostploy-Delivery id, so keep the ids you’ve handled and skip repeats.
Events can also arrive out of order. Use createdAt to tell which came first, or get the post to see where it is now.
Test and debug
- Send a test. Send a test event or the button in Settings › Webhooks sends a
pingevent. It’s sent even while the endpoint is switched off. - See what was sent. List deliveries shows the last 50 deliveries and how your endpoint answered. Deliveries are kept for 30 days.
- Send one again. Retry a delivery sends it again with the same body and id.
