Skip to main content

Webhooks

A webhook tells another service what happens in the community the moment it happens: a post is published, a member signs up, someone joins a space. Zapier, Make and n8n take webhooks, and so does any service of your own. Poly Community → Settings → Advanced → Webhooks holds them.

Webhooks: one endpoint at hooks.example.com hearing two events, with Deliveries, Ping and Delete, and the form to add another
Settings → Advanced → Webhooks

Adding an endpoint​

  1. Address (https): the address the service gave you to send to. Only an https address is taken.
  2. What it hears: Everything, or untick it and pick the events, such as A post is published or A member signs up. Each is listed with its name for developers, item.created or member.signed_up.
  3. Add the endpoint. Its secret is shown this once. Copy it into the service, which uses it to check that a delivery came from your site.

Ping sends a test delivery, to see that the service answers.

What is sent​

Each delivery is JSON, sent after what happened is saved, with the event and its references: who did it, to what, and where. It never holds more than a member could see of it, so a private post sends no words.

{
"id": "a unique id, the same when a delivery is sent again",
"event": "item.created",
"at": "2026-12-02T09:30:00+00:00",
"site": "https://example.com/",
"data": { "…": "the references of the event" }
}

Its headers say the event (X-Poly-Event), the delivery (X-Poly-Delivery), when it was sent (X-Poly-Timestamp) and its signature (X-Poly-Signature): sha256= and an HMAC, made with the secret of the endpoint, of the timestamp, a dot and the body. A service that checks it knows the delivery is yours and was not changed on the way.

When it does not answer​

A delivery the service does not take is sent again a minute later, then after 5 minutes, 30 minutes, 2 hours and 12 hours. An endpoint that fails 20 times in a row is turned off, and says Off: it kept failing. Once the service works again, Turn it on again sends to it as before, with the same secret and events.

Deliveries lists the last ones sent to an endpoint: what was sent, how it was answered and after how many tries. Send again sends one of them once more.

The log of deliveries is kept for 30 days, or as set under Data.

Webhooks or automations​

A webhook tells another service. An automation does something on the site itself, and can also call a webhook as one of its steps, for only the members it is about.