← Files WorkOSARCHIVED FILE

references/workos-events.md

1.45 KB · Oct 4, 2026 · 12:06 UTC

↓ Download file

# WorkOS Events

## Docs

- https://workos.com/docs/events/index
- https://workos.com/docs/events/observability/datadog
- https://workos.com/docs/events/data-syncing/webhooks
- https://workos.com/docs/events/data-syncing/index
- https://workos.com/docs/events/data-syncing/events-api
- https://workos.com/docs/events/data-syncing/data-reconciliation
- https://workos.com/docs/reference/events
- https://workos.com/docs/reference/events/list
  If this file conflicts with fetched docs, follow the docs.

## Gotchas

- Do not implement both webhooks and Events API polling simultaneously — this causes duplicate event processing.
- Webhook endpoints must return 200 OK within 5 seconds. Acknowledge immediately, process asynchronously.
- Verify webhook signature before processing using the raw request body. JSON-parsing the body before verification breaks the signature check.
- `WORKOS_WEBHOOK_SECRET` is shown only once when registering the endpoint. Save it immediately.
- WorkOS may retry webhook deliveries. All event processing must be idempotent — deduplicate using `event.id`, not webhook delivery ID.
- For Events API polling, `last_event_id` must be stored persistently. If lost, you must backfill via date-range queries.
- Do NOT backfill by replaying webhooks. Webhook signatures expire. Always use the Events API for historical data.

## Endpoints

| Endpoint  | Description   |
| --------- | ------------- |
| `/events` | events        |
| `/list`   | events - list |

SHA-256: ebb2ac59a60d0d6f5b7240ba80301c04b5c2cb7799f2afc49ac947586b278019