WorkOS Docs Homepage
Events
API referenceDashboardSign In
Event typesOverviewOverviewAuthentication eventsAuthentication eventsConnection eventsConnection eventsDirectory Sync eventsDirectory Sync eventsEmail verification eventsEmail verification eventsFeature flag eventsFeature flag eventsInvitation eventsInvitation eventsMagic Auth eventsMagic Auth eventsOrganization eventsOrganization eventsOrganization domain eventsOrganization domain eventsOrganization membership eventsOrganization membership eventsPassword reset eventsPassword reset eventsRole eventsRole eventsSession eventsSession eventsUser eventsUser eventsData syncingOverviewOverviewSyncing with events APISyncing with events APISyncing with webhooksSyncing with webhooksData reconciliationData reconciliationObservabilityStreaming to DatadogStreaming to Datadog
API Reference
API Reference
Integrations
Integrations
Migrate to WorkOS
Migrate to WorkOS
SDKs
SDKs

Events

Respond to activity that occurs within WorkOS and third-party providers.

On this page

  • Event object
  • Event types
    • Authentication events
    • Connection events
    • Directory Sync events
    • Email verification events
    • Feature flag events
    • Invitation events
    • Magic Auth events
    • Organization events
    • Organization domain events
    • Organization membership events
    • Password reset events
    • Role events
    • Session events
    • User events

Events represent activity that has occurred within WorkOS or within third-party identity and directory providers. Your app can sync the data via either the events API or webhooks.

Event object

All event objects share a similar structure.

AttributeDescription
eventA string that distinguishes the event type.
idUnique identifier for the event.
dataEvent payload. Payloads match the corresponding API objects.
created_atTimestamp of when the event occurred.
contextAn optional object of extra information relevant to the event.

Event types

Authentication events

Events emitted during each step of the authentication flow. Authentication success events are emitted even when additional steps, such as MFA, are required to complete the process.

Connection events

Events emitted when Single Sign-On connections are activated, deactivated, or deleted. Also emitted when a SAML certificate is renewed for the connection.

Directory Sync events

Events emitted when directory-related resources are changed. To learn what exactly each of these events represents, see the in-depth Directory Sync events guide.

Email verification events

Events emitted when a user is required to verify their email.

Feature flag events

Events emitted when WorkOS feature flags are created, updated, deleted, or their rules are updated.

Invitation events

Events emitted when an AuthKit user is invited to join an organization.

Magic Auth events

Events emitted when a user requests a Magic Auth code.

Organization events

Events emitted when WorkOS organizations are created, updated, or deleted.

Organization domain events

Events emitted when organization domains are created, updated, deleted, or their verification status changes.

Organization membership events

Events emitted when an AuthKit user joins or leaves an organization.

Password reset events

Events emitted when a user requests to reset their password.

Role events

Events emitted when roles are created or deleted in the WorkOS dashboard.

Session events

Events emitted when AuthKit sessions are created.

User events

Events emitted when AuthKit users are created, updated, or deleted.

© WorkOS, Inc.
FeaturesAuthKitSingle Sign-OnDirectory SyncAdmin PortalFine-Grained Authorization
DevelopersDocumentationChangelogAPI Status
ResourcesBlogPodcastPricingSecuritySupport
CompanyAboutCustomersCareersLegalPrivacy
© WorkOS, Inc.