Skip to content

Webhooks

Apps › Webhooks sends what happens on your site to addresses you add, as it happens. Use it with Zapier, Make, n8n or your own code. Webhooks is in Beta, on every plan, in the AI & automation category.

  1. Open Apps and pick Webhooks. Its page shows what you can do with it.
  2. Click Enable.

Once enabled, clicking Webhooks in Apps opens its page (admin/apps/webhooks). Old links to the Webhooks page (…/webhooks/manage) open it too. Its Settings tab has a side menu with four sections: Endpoints, Deliveries, Events and Unsubscribe address.

An endpoint is an address that gets events.

  1. Open Endpoints. Below the list, click Add endpoint.
  2. In Address, paste the address of your receiver, for example the one Zapier, Make or n8n gives you. It must start with https:// and can be up to 500 characters. Private and internal addresses are refused, and redirects aren’t followed.
  3. Add a Description so you know what it’s for, for example Zapier: new posts to Slack.
  4. Tick the events it should get. Events and payloads lists them.
  5. Click Add endpoint.
  6. The new signing secret is shown once. Click Copy and add it to your receiver. It isn’t shown again.

You can add up to 10 endpoints. Each one gets only the events it picked, signed with its own secret.

The Endpoints list shows each endpoint’s address, description, events, the end of its Signing secret and its status (Active, Failing, Off or Switched off after failures), with when it last delivered. Each row has these buttons:

  • Send test event: pick an event and send its example payload. Test events have an id starting with evt_test_ and "test": true. They aren’t retried. Use one to set up your Zapier, Make or n8n trigger.
  • Edit the address, description or events.
  • Rotate secret: makes a new signing secret, shown once with Copy. The old one keeps working for 24 hours, so you have time to update your receiver.
  • Turn off and Turn on: while an endpoint is off, new events are kept for 7 days. Turning it back on sends what it missed.
  • Delete: deletes the endpoint, its secret and its delivery log.

Deliveries lists the last 100 deliveries, newest first: when, the event, the address, the status (Waiting, Delivered, Failed or Expired, with the number of attempts) and your receiver’s answer. Open a row to see the payload and the start of the answer. Deliveries are kept 30 days.

  • Only an answer with a 2xx status within 10 seconds counts as delivered.
  • A failed delivery is tried again after 1 min, 5 min, 30 min, 1 h, 2 h, 4 h, 8 h and 8 h, about a day in all. Then it is Failed.
  • Resend sends a delivery again from the log. A delivery that is still waiting has no Resend.
  • After 20 failed deliveries in a row, the endpoint is switched off. Webhooks shows Needs attention, Apps › Activity gets a line, and super admins and everyone with the Apps permission get an email. Fix the receiver, then Turn on.

Events lists every event with its type and when it is sent. Open one to see its example payload. Below the list, What a receiver gets sums up the request, the signature, duplicates and retries. The full reference is Events and payloads.

All three have a Webhook trigger that gives you an address. Add that address as an endpoint, then send a test event so the tool learns the payload.

  1. Create a Zap. For the trigger, choose Webhooks by Zapier and the event Catch Hook.
  2. Copy the webhook URL Zapier shows.
  3. In Naratica, add it as an endpoint and tick your events.
  4. Click Send test event, then in Zapier click Test trigger. Zapier now knows the fields, for example data.post.title.
  5. Add the actions you want, for example a Slack message.
  1. Create a scenario. Add the Webhooks module Custom webhook, then Add a new webhook.
  2. Copy the address Make shows. Make waits for data.
  3. In Naratica, add it as an endpoint and click Send test event. Make reads the fields.
  4. Add the next modules.
  1. Add a Webhook node. Set HTTP Method to POST.
  2. Copy the Production URL and activate the workflow. (The test URL only works while you listen in the editor.)
  3. In Naratica, add it as an endpoint and click Send test event.
  4. Add the next nodes.

These tools don’t check the Naratica-Signature header by default. Keep their addresses private. To check it, add a code step with the example in Events and payloads.

The Unsubscribe address section gives your site one incoming address. When a reader unsubscribes in another tool, send their email here and they stop getting your newsletter too. It can only unsubscribe: it can’t read data or add anyone.

At the top, the section shows whether the address is on, the end of its key, when the key was made and when it was last used.

  1. Click Make a key. The key is shown once: click Copy now. Only a fingerprint is stored, so it can’t be shown again.
  2. Under How to call it, copy the address, https://yoursite.ro/api/hooks/unsubscribe. In your tool, send a POST to it:
POST /api/hooks/unsubscribe
Authorization: Bearer <key>
Content-Type: application/json
{"email": "ana@example.com"}

Tools that can’t set headers can add ?key=<key> to the address instead, and may send email as a form field. The answer is {"ok": true} whether or not the address was subscribed. A wrong key gets 401.

New key makes a new key, shown once, and stops the old one at once. Turn off turns the address off, and calls with the old key are refused.

Permission What it means
Send the events you pick to the addresses you add Nothing leaves your site until you add an endpoint and tick its events. Each endpoint gets only the events you picked for it.
Unsubscribe newsletter readers through its own address The app has its own unsubscribe address, so a tool like Zapier can unsubscribe a reader. It can only unsubscribe; it can’t read or change anything else.

The switch at the top of the page turns the app off. Remove is at the bottom of Endpoints.

  • Turn off stops the whole app: no events are queued or sent, and the unsubscribe address answers with an error (503). Endpoints, secrets and the key are kept. Events that happen while the app is off are not sent later. (To pause one endpoint and catch up later, use that endpoint’s Turn off instead.)
  • Remove deletes every endpoint, its secrets, the delivery log and the unsubscribe key. Data already sent stays with your receivers.

For the reader events you pick: the reader’s email address and sign-up language, sent to the addresses you add. Comment and membership events carry ids only. See privacy.