Webhook Targets
Seatmap.pro can notify your own systems when venues, schemas and seatmaps change. This page covers what a webhook target must look like and what happens when a delivery fails.
Events
| Event | Sent when |
|---|---|
venue.created |
A venue is created. |
venue.updated |
A venue is changed. |
venue.deleted |
A venue is deleted. |
schema.created |
A schema is created. |
schema.updated |
A schema is changed. |
schema.deleted |
A schema is deleted. |
seatmap.stored |
A seatmap is saved and redrawn. |
From 1.75.0, seatmap.stored arrives after the save rather than with it: it is sent once the seatmap’s rendered image for booking has been rebuilt, and also when that rebuild fails. This usually takes a few seconds, and longer when many seatmaps are saved at once. While many images are being regenerated, it waits only for the images already being processed, not for the whole regeneration, so act on the event instead of waiting a fixed time after the save. Several quick saves of one schema can produce a single event, so load the current seatmap when it arrives rather than expecting one event per save.
Target requirements
Breaking: from 1.70.0 a webhook target must be a public HTTPS destination. A target that does not meet both conditions is rejected when you save it, and any delivery to it is recorded with the error type TARGET_NOT_ALLOWED.
A target is accepted when:
- The URL is a valid URI with a host.
- The scheme is
https. Plainhttpis rejected, unless a self-hosted operator has enabled it for internal targets — see below. - Every address the host resolves to is publicly routable.
A host is rejected when any of its addresses is loopback, link-local, site-local (private ranges such as 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16), multicast, carrier-grade NAT, or otherwise reserved. IPv6 unique-local addresses are rejected too, as are IPv4-mapped IPv6 addresses whose underlying IPv4 address is blocked. A host that cannot be resolved at all is rejected.
If your endpoint is not public
Terminate TLS on a public hostname and forward internally from there — a reverse proxy or an API gateway in front of your service is enough. Do not expect an internal hostname to work because it resolves publicly to a private address; the check is on the resolved address, not the name.
Self-hosted deployments that genuinely need to deliver inside their own network can set seatmap.webhooks.allow-private-targets to true on the editor service. This turns the address check off, so enable it only when the whole network path is under your control.
If the receiver is only reachable over plain http, also set seatmap.webhooks.allow-insecure-targets to true. Both settings are required together: setting the second one on its own is a configuration error and the editor service will not start.
An http target stays restricted to your internal network even with both settings on: every address the host resolves to must be a private or otherwise non-routable one, so http://receiver.internal:8080/hook is accepted while a public http address is rejected. Traffic to an http target is not encrypted in transit, which is why it is confined this way.
Retries
From 1.76.0 a failed delivery is retried with exponential backoff for about three hours. An event gets up to 8 attempts, the first one included, and with the defaults the retries follow the first attempt by about 10 seconds, 40 seconds, 2 minutes, 7 minutes, 20 minutes, 1 hour and 3 hours. A receiver that is down for a deploy or a short outage still gets the event. Up to 1.75.x an event got 3 attempts within a few seconds.
| Setting | Default | Meaning |
|---|---|---|
timeoutMs |
30000 |
Per-attempt timeout. |
maxRetries |
8 |
Attempts per event, the first one included. |
backoffInitialMs |
10000 |
Delay before the first retry. |
backoffMultiplier |
3.0 |
Multiplier applied to each subsequent delay. |
retryOnHttpStatuses |
500, 502, 503, 504 |
Statuses that are retried. |
skipRetryOnHttpStatuses |
400, 401, 403, 404 |
Statuses that are treated as final. |
Timeouts, network errors and connection errors are retried. A TARGET_NOT_ALLOWED failure is not — the target is invalid, so waiting will not help. A redirect is not followed either. An event answered with a 3xx status fails at once, unless the status is listed in retryOnHttpStatuses, and its error shows the scheme and host the redirect points to, so you can correct the target URL. After the last attempt the event goes to the dead-letter list rather than being dropped silently.
Every attempt of an event carries the same Idempotency-Key header. When an attempt times out after your endpoint has already processed the event, the next attempt delivers it again, so deduplicate on that header.
An organization administrator can send a failed or dead-lettered event again with Retry on the Webhook Events page. The event then gets a new series of up to maxRetries attempts.
Self-hosted deployments set the defaults on the editor service with seatmap.webhooks.max-retries, seatmap.webhooks.backoff-initial-ms and seatmap.webhooks.backoff-multiplier. Set them to 3, 1000 and 2.0 to keep the schedule of earlier releases.
What is stored on a delivery attempt
Each attempt records the status, the error type and a snippet of the response body, so you can see why a delivery failed without instrumenting your own endpoint.
Credential-bearing response headers are stored as [redacted]: authorization, proxy-authorization, set-cookie, set-cookie2, www-authenticate, proxy-authenticate and x-amz-security-token. If your endpoint echoes a token in one of these headers, it does not end up in the delivery log.