Luma webhooks in production: duplicates, ordering, retries and timeouts

Published · Updated

This guide covers the problems Luma webhooks cause in production and how to handle each one. It's about Luma the event hosting and ticketing platform, not Luma AI. What Luma sends is on the Luma webhooks overview, every event type is on Luma webhook events, and signature verification code is on Verify Luma webhooks.

At a glance

ProblemWhat to doWith Event Gateway
TimeoutsReturn a 2xx within 5 seconds; process in a background jobAccepts the delivery at once, then queues it for your service
DuplicatesRecord each Webhook-Id and skip repeatsCan drop repeats before they reach your handler
OrderingFetch the guest or event from the API when current state mattersLogs every event and attempt, so you can see arrival order when debugging
RetriesKeep the receiver up, never return 410 by accident, reconcile from the APIAccepts deliveries while your service is down and replays them
Choosing eventsPick one event per action; subscribe only to what you handleFilters and routes on type
TestingTrigger real actions on a separate calendarForwards to localhost and replays past events
Other limitsPlan for Luma Plus, per-calendar webhooks and no IP listFans one webhook out to many destinations

Luma webhook timeouts and slow handlers

Return a 2xx within 5 seconds, then do the work in a background job.

Why it happens: Luma's docs ask for a response within 5 seconds, and an endpoint that fails to respond gets retried. A handler that updates your CRM and sends a welcome email before it responds can run past that, even though the work succeeds. With only three retries, each timeout uses up part of a small budget.

Fix it in your handler:

  1. Verify the signature, store the event and return 200.
  2. Call your CRM or email tool from a worker. See why to process webhooks asynchronously.
  3. Keep the request path free of calls to other services.

With Event Gateway: Hookdeck accepts each Luma delivery immediately, then queues it and delivers it to your service with its own timeout and retries. Slow downstream calls no longer cause Luma retries.

Duplicate Luma webhooks

Luma says that in rare cases you may receive the same event more than once. Record each Webhook-Id and skip any you've already handled.

Why it happens: Luma's docs don't give a cause. A delivery that succeeds on your side but times out on Luma's is a likely one, because Luma would retry it. Webhook-Id is the unique ID Luma puts on each webhook event, and it isn't part of the signed content.

Fix it in your handler:

  1. Store each Webhook-Id before you process the event, with a unique constraint. See our guide to webhook idempotency.
  2. Skip any ID you've seen, and still return a 2xx so Luma stops retrying.
  3. Treat this separately from overlapping events: a new registration firing guest.registered and guest.updated is two events, not a duplicate. See choosing events.

With Event Gateway: Deduplication can compare the fields you choose and drop repeats within a time window before they reach your handler.

Out-of-order Luma webhooks

Luma's docs don't address delivery order, so don't rely on it. When current state matters, fetch it from the API.

Why it happens: A failed delivery comes back 1, 2 and 4 minutes later, so a retried guest.updated can arrive after a newer one for the same guest. Luma's guest and event schemas have no version or updated-at field to compare, so a payload can't tell you it's stale.

Fix it in your handler:

  1. Treat guest.updated and event.updated as a signal that something changed. Read the current record from the Get Guest or Get Event endpoint before you overwrite your copy.
  2. Don't assume guest.registered arrives before guest.updated. Make whichever comes first create the guest in your system.
  3. Compare Webhook-Timestamp only as a rough guide. Luma describes it as when the webhook was sent, not when the change happened.

With Event Gateway: Hookdeck logs every event and delivery attempt, so when state looks wrong you can see the order events arrived in and replay them.

Luma webhook retries and paused webhooks

Luma retries a failed delivery up to 3 times, at 1, 2 and 4 minutes. An outage longer than about seven minutes loses events, unless you recover them from the API.

Why it happens: No response or an error status counts as a failure. After the third retry Luma documents nothing further: no resend button and no replay call. Separately, a 410 Gone response pauses the webhook automatically. Luma doesn't say what happens to events that fire while a webhook is paused, so assume you'll need to reconcile them.

Fix it in your handler:

  1. Keep the receiver's work small and its uptime high: verify, store, return a 2xx.
  2. Don't return 410 for anything but a webhook you want paused. Check that a framework or proxy won't send it for you.
  3. Check the webhook's recent deliveries (delivered, pending or failed) in Settings > Developer after an incident.
  4. Resume a paused webhook from the same page, or with POST /v2/webhooks/update and a status of active.
  5. Reconcile the gap from the API: GET /v1/calendars/events/list for events and GET /v1/events/guests/list for guests. Calendar API keys are limited to 200 requests a minute, so pace the job.

With Event Gateway: Hookdeck keeps accepting Luma's deliveries while your service is down, so your outages don't use up Luma's retries. Failed events can be retried on the status codes you choose, automatically or in bulk once you recover.

Choosing and routing Luma events

Subscribe only to what you handle, and pick one event for each action. One registration can produce several deliveries.

Why it happens: The events overlap. A new registration fires both guest.registered and guest.updated, because guest.updated fires for new registrations too. ticket.registered fires once per ticket, so a guest who buys three tickets produces three. An event created on your calendar matches both event.created and calendar.event.added, whose reference page lists being created on the calendar as one of its triggers.

Fix it in your handler:

  1. Use guest.registered for once-per-person work such as a welcome email, and ticket.registered for per-ticket work such as a QR code or badge.
  2. Use calendar.event.added if you also need syndicated and external events. Its data has a platform of luma or external and fewer fields than the event.* object, and an external event has no cover_url or hosts.
  3. Don't expect event.updated for guest registrations, or guest.updated for profile edits. Luma says to fetch the guest through the API when you need current names and emails.
  4. Fetch ticket types from /v1/events/ticket-types/list after event.updated. The payload is the event, without ticket type details.
  5. Expect no guest.refunded for a refund issued directly in Stripe. It covers only refunds through Luma, including partial ones, and refund describes the refund that just happened while event_ticket_orders holds cumulative amounts.
  6. Mirror opt-outs with calendar.person.unsubscribed. Its payload has the full email address but not whether it was an unsubscribe, a block or a spam report. It covers only opt-outs after you create the webhook, and doesn't fire when you remove or block a contact yourself.
  7. Subscribe to calendar.event.submitted through the API if you need it. It's in the event_types list for POST /v2/webhooks/create, but Luma's help page leaves it out of the dashboard's list of action types.

With Event Gateway: Hookdeck filters can route each type to a different destination, so a CRM sync and a badge printer each get only what they handle.

Testing Luma webhooks

Luma documents no test event or sandbox, so test with real actions on a calendar you can afford to clutter.

Why you need a plan: A delivery only happens when something real happens on the calendar, and webhooks need Luma Plus. Luma also publishes schemas rather than example bodies, so there's nothing official to build fixtures from.

Test it safely:

  1. Use a separate calendar if you can, so test registrations stay out of your real guest lists and contacts. A webhook belongs to one calendar, and that calendar needs Luma Plus.
  2. Register a guest, change their approval status and cancel a test event to produce guest.registered, guest.updated and event.canceled.
  3. Save the bodies you receive as fixtures, and check them against the schemas in Luma's API reference. They hold real names and email addresses, so scrub them first.
  4. Read the delivery list in Settings > Developer to see whether an attempt was made when your handler saw nothing.

With Event Gateway: The Hookdeck CLI receives webhooks on your machine without a public server, and you can replay past events to your handler as you change it.

Other Luma webhook limits

Luma webhooks need a paid plan, are scoped to one calendar and carry personal data.

Luma Plus only. Webhooks and the API both need a Luma Plus subscription on the calendar.

One calendar per webhook. Each webhook belongs to the calendar it's created on and has its own whsec_ secret. If you run several calendars, you'll have several webhooks and secrets to manage.

Personal data in payloads. Guest payloads carry names, email addresses and phone numbers, and calendar.person.* events carry email addresses. Treat stored events and logs accordingly.

No source IP list. Luma doesn't publish IP addresses for webhook traffic, so the signature is how you authenticate a delivery.

No fixed replay window. Luma suggests rejecting timestamps more than a few minutes old but doesn't set a number. Any window is your own choice.

With Event Gateway: Hookdeck sends one Luma webhook's events to as many destinations as you need, so the secret only has to live in one place and your own services never need it.

Keep a short outage from losing your Luma events.

Event Gateway verifies the signature and answers Luma as soon as it accepts each delivery, then queues the event and retries to your service on your schedule, well past Luma's three retries.

Not affiliated with Luma. Facts are compiled from public sources and linked inline.