Settings Docs

# Webhooks

A webhook is an address of yours that Teksaro calls when something happens in the account. Each request is signed, retried until it gets through, and shown in the endpoint's delivery log.

Última actualización: 27 de noviembre de 2026

**Navegación**

Open **Advanced → Webhooks** as an account owner or admin. Each webhook (an *endpoint*) is an `https://` address of yours, the events it wants, and a signing secret. Teksaro sends each event as a JSON `POST` request, so you can pass leads to a CRM, post bookings to a chat channel or rebuild a static site when content goes live.

Your plan sets how many endpoints the account can have: none on Starter or Premium, 5 on Professional and unlimited on Enterprise.

To hear about events in Slack or Microsoft Teams instead, add a channel under [Integrations](https://www.teksaro.com/support/settings/integrations); channels are on every plan and don't count as endpoints.

## Add an endpoint

1. Choose **Add** and enter the **Address**, such as `https://example.com/hooks/teksaro`.
2. Optionally add a **Description** so others know what it's for.
3. Tick the **Events** it should receive.
4. To hear only about some of your sites, tick them under **Sites**. Tick none for every site, including sites added later.
5. Leave **Send events to this address** ticked, and choose **Save**.

The next page shows the endpoint's **signing secret**, which starts with `whsec_`. Copy it now: it isn't shown again. If you lose it, open the endpoint and choose **New secret**; the old secret stops working at once.

For security, webhooks are only sent to public internet addresses over HTTPS. Addresses on private or local networks, such as `localhost`, `192.168.x.x` or cloud metadata addresses, are refused, also when a name resolves to one. Status page monitors use the same check. Redirects aren't followed, so enter the final address.

## Events

| Event | When |
| --- | --- |
| `form.submitted` | Someone sends one of the account's forms. Submissions kept aside as spam aren't sent. |
| `content.published` | A page, post, news item, event or other content goes live: saved or created as published, published from the list, approved in the editorial workflow, or when its scheduled publication time arrives. |
| `content.unpublished` | Live content goes offline: unpublished by hand or from the list, or when its scheduled end time passes. |
| `booking.created` | A visitor books a time on one of the account's booking pages. |
| `booking.cancelled` | The guest or the host cancels a booking. |
| `incident.opened` | A status page incident opens, by itself after failed checks or posted by hand, or a resolved one is reopened. |
| `incident.resolved` | An incident is resolved. |
| `ticket.created` | A customer or an agent opens a support ticket. |
| `ticket.replied` | A customer replies to a ticket, on the site or by email. |
| `customer.created` | A visitor signs up as a customer, or you add one. |
| `testimonial.received` | A visitor sends a testimonial. Ones kept aside as spam, imported or added by hand aren't sent. |
| `quote.accepted` | A client accepts a quote. |
| `proposal.accepted` | A client accepts a proposal. |
| `quote.declined` | A client declines a quote. |
| `proposal.declined` | A client declines a proposal. |
| `credit_note.issued` | A credit note is issued against an invoice. |
| `order.paid` | A buyer pays for a [store order](https://www.teksaro.com/support/store/orders). |
| `order.fulfilled` | Items of a store order are marked as sent (once per shipment). |
| `order.refunded` | A store order is refunded in part or in full, from the order page or your payment account. |
| `order.cancelled` | A store order is cancelled. |
| `import.completed` | An import or site copy brought in more than 50 published items on one site. It replaces their `content.published` events, with the counts per content type in `data`. |
| `comment.pending` | A visitor's comment waits for approval. Comments approved at once and spam aren't sent. |
| `task.created` | A task is added to a [project](https://www.teksaro.com/support/projects) shared with you. |
| `task.done` | A shared task is marked done, with the items it's linked to. |
| `project.done` | A shared project is marked done. |
| `project.created` | A shared project is made: by hand, from a template, or as the next round of a repeating project. |

Each event only goes to endpoints of the account it happened in, with that account's data only.

### When events are sent

An event is saved together with the change it reports, so it can't get lost: if Teksaro restarts right after a form is sent or a page is published, the event is still sent a few seconds later. If a change doesn't go through, no event is sent for it.

Content events follow what visitors see:

- Content with a [publication schedule](https://www.teksaro.com/support/content) sends `content.published` when its start time arrives (within a minute), not when you publish it ahead of time. It sends `content.unpublished` when its end time passes. Scheduled events carry `"scheduled": true` in `data`.
- Publishing content whose start time is still ahead sends nothing yet; unpublishing it before then sends nothing either.
- Saving content that stays live sends nothing new.
- Content that an import (CSV or WordPress), a site copy or a tenant import brings in published sends `content.published` once the import finishes, with `"imported"` in `data` naming the source (`csv`, `wordpress`, `site_copy` or `tenant_import`). When more than 50 items arrive published on one site, the site gets one `import.completed` event with the counts instead, so a large import doesn't send hundreds of requests. Drafts send nothing; items scheduled for later send `content.published` when their time comes.

## What a request looks like

Every request is a `POST` with a JSON body and these headers:

- `Content-Type: application/json`
- `Teksaro-Event`: the event, such as `form.submitted`.
- `Teksaro-Delivery`: the delivery's number, shown in the delivery log.
- `Teksaro-Signature`: `t=<timestamp>,v1=<signature>`; see Verify signatures.

The body has the same shape for every event:

```
{
  "id": "5f0c1c56-8f43-4a6e-9b0e-2a3c1d9e7b10",
  "type": "form.submitted",
  "created_at": "2026-11-20T14:05:09Z",
  "site": { "id": 3, "name": "Acme", "url": "https://acme.example" },
  "data": {
    "form": { "id": 12, "slug": "contact", "version": 4 },
    "submission": {
      "id": 981,
      "locale": "en",
      "created_at": "2026-11-20T14:05:09+00:00",
      "fields": { "name": "Ada", "email": "ada@example.com", "message": "Hello" }
    }
  }
}
```

`id` identifies the event: if one arrives twice (for example after a timeout on your side), it has the same `id`, so you can skip repeats. `created_at` is when the change happened, even when the request is sent later. `data` depends on the event:

- **Content**: `content.type` (such as `pages` or `posts`) and `content.id`, and `scheduled: true` when a publication schedule made the change.
- **Bookings**: `booking` with its `id`, `page` (`id`, `slug`, `name`), `starts_at`, `ends_at`, the guest's `name`, `email`, `notes` and `guest_timezone`; cancellations add `cancelled_by` (`guest` or `host`) and `cancel_reason`.
- **Incidents**: `incident` with its `id`, `title`, `impact`, `status`, `automatic`, `started_at` and `resolved_at`. The `title` of an incident Teksaro opened by itself is in English; `title_i18n` gives it as a message, a `key` with its `values` (such as `{"key": "statusAutoDown", "values": {"monitor": "Website"}}`), for showing it in another language. It is `null` for incidents posted by hand.
- **Testimonials**: `testimonial` with its `id`, `name`, `role`, `text`, `rating` (1 to 5, or empty), `status` (`pending` until you approve it), `source` and `created_at`.
- **Comments waiting**: `comment` with its `id`, the commenter's `name` and the `item` it is on (`type`, `id`, `slug` and `title`).
- **Projects**: `task` with its `id`, `title`, `status`, `priority`, `due_on`, `done_at`, `url` and its `project` (`id`, `name`, `status`, `starts_on`, `target_on`, `url`); `task.done` adds the task's `links`, the items it's [linked to](https://www.teksaro.com/support/projects/content) (`kind`, `id`, `site`, `title`, `state` and `follows`). `project.created` and `project.done` send the `project` alone. Webhooks belong to your account, so they only ever carry shared projects and tasks: internal work our team keeps for itself sends nothing. A project of the whole account sends its events with your first site.
- **Test events** (`webhook.test`): a `message`, and `site` is empty.

A sample of every event, in this shape, is at `GET /api/v1/hooks/samples/{event}` ([API](https://www.teksaro.com/support/settings/api#hooks)).

## Verify signatures

Check the signature before trusting a request, so nobody else can send you events:

1. Read the `Teksaro-Signature` header and split it at the comma into `t` (a Unix timestamp in seconds) and `v1` (hex).
2. Compute the HMAC-SHA256 of the timestamp, a full stop and the **raw** request body (`<t>.<body>`), keyed with the whole secret including `whsec_`.
3. Compare it with `v1` in constant time, and refuse requests whose timestamp is more than five minutes old.

In Node.js:

```
const crypto = require('node:crypto');

function verify(secret, header, rawBody) {
  const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
  const expected = crypto.createHmac('sha256', secret)
    .update(`${parts.t}.${rawBody}`).digest('hex');
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
  return fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1 ?? ''));
}
```

In Python:

```
import hashlib, hmac, time

def verify(secret: str, header: str, raw_body: bytes) -> bool:
    parts = dict(part.split("=", 1) for part in header.split(","))
    signed = parts["t"].encode() + b"." + raw_body
    expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
    fresh = abs(time.time() - int(parts["t"])) < 300
    return fresh and hmac.compare_digest(expected, parts.get("v1", ""))
```

Use the body exactly as received: parsing and re-encoding the JSON changes it and the signature won't match.

## Deliveries and retries

Answer with any `2xx` status within 10 seconds to accept a delivery. Anything else (another status, a redirect, a timeout or no connection) is retried after 1 minute, then 2, 4, 8 and so on, up to six hours between tries, for 10 attempts in all (about eight hours). After that the delivery is marked **failed**. Do slow work after answering.

Open an endpoint to see its **Deliveries**, newest first: the event, its state (pending, retrying, delivered, failed or discarded), the HTTP status, the number of attempts, when it was last tried, how long it took and any error. Expand an event to see the exact body sent. Choose **Retry** on a failed delivery to send it again with a fresh set of attempts. Deliveries are kept for 30 days.

## Test an endpoint

Choose **Send test** on the endpoint's page. A `webhook.test` event is sent within a few seconds; refresh the page to see the result in the delivery log. Test events are tried once.

## Pause or delete

Choose **Edit** and untick **Send events to this address** to pause an endpoint. While it is paused it gets no new events, and deliveries waiting for it are discarded. **Delete** removes the endpoint and its delivery log.

Events also stop while the account is suspended, and when the account's plan has no webhooks.

## Endpoints added through the API

Tools such as Zapier and Make add their own endpoints through the [API](https://www.teksaro.com/support/settings/api#hooks), one per event, for the sites their key reaches. They are listed here with the others: the endpoint's page shows **Added: Through the API** and its **Sites**. You can pause, edit or delete them like any other; the tool removes them itself when you turn its workflow off.

Every change to an endpoint, each new secret and each test is recorded in the account's [activity log](https://www.teksaro.com/support/settings/activity).

## When your plan ends

If your plan ends, nothing is delivered: deliveries already queued wait and go out if you choose a plan again, new events aren't queued, and **Send test** and **Retry** are refused. See [When your plan ends](https://www.teksaro.com/support/settings/billing#ended).
