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.
最后更新:
Open Settings → 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; channels are on every plan and don't count as endpoints.
Add an endpoint
- Choose Add and enter the Address, such as
https://example.com/hooks/teksaro. - Optionally add a Description so others know what it's for.
- Tick the Events it should receive.
- To hear only about some of your sites, tick them under Sites. Tick none for every site, including sites added later.
- 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. |
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. |
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 sends
content.publishedwhen its start time arrives (within a minute), not when you publish it ahead of time. It sendscontent.unpublishedwhen its end time passes. Scheduled events carry"scheduled": trueindata. - 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.publishedonce the import finishes, with"imported"indatanaming the source (csv,wordpress,site_copyortenant_import). When more than 50 items arrive published on one site, the site gets oneimport.completedevent with the counts instead, so a large import doesn't send hundreds of requests. Drafts send nothing; items scheduled for later sendcontent.publishedwhen their time comes.
What a request looks like
Every request is a POST with a JSON body and these headers:
Content-Type: application/jsonTeksaro-Event: the event, such asform.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 aspagesorposts) andcontent.id, andscheduled: truewhen a publication schedule made the change. - Bookings:
bookingwith itsid,page(id,slug,name),starts_at,ends_at, the guest'sname,email,notesandguest_timezone; cancellations addcancelled_by(guestorhost) andcancel_reason. - Incidents:
incidentwith itsid,title,impact,status,automatic,started_atandresolved_at. Thetitleof an incident Teksaro opened by itself is in English;title_i18ngives it as a message, akeywith itsvalues(such as{"key": "statusAutoDown", "values": {"monitor": "Website"}}), for showing it in another language. It isnullfor incidents posted by hand. - Testimonials:
testimonialwith itsid,name,role,text,rating(1 to 5, or empty),status(pendinguntil you approve it),sourceandcreated_at. - Comments waiting:
commentwith itsid, the commenter'snameand theitemit is on (type,id,slugandtitle). - Test events (
webhook.test): amessage, andsiteis empty.
A sample of every event, in this shape, is at GET /api/v1/hooks/samples/{event} (API).
Verify signatures
Check the signature before trusting a request, so nobody else can send you events:
- Read the
Teksaro-Signatureheader and split it at the comma intot(a Unix timestamp in seconds) andv1(hex). - Compute the HMAC-SHA256 of the timestamp, a full stop and the raw request body (
<t>.<body>), keyed with the whole secret includingwhsec_. - Compare it with
v1in 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, 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.
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.