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

Magic Auth events

Events emitted when a user requests a Magic Auth code.

On this page

  • Magic Auth created

Events emitted when a user requests a Magic Auth code.

Magic Auth created

Event name: magic_auth.created

Triggered when a user initiates Magic Auth and an authentication code is created.

Payload data corresponds to the Magic Auth object with the code omitted.

Magic Auth created event
JSON
{
"event": "magic_auth.created",
"id": "event_01HWWSTZVFADJG9M9EJMKXB043",
"data": {
"object": "magic_auth",
"id": "magic_auth_01HWWSVXCRMA5481VK9601SKQX",
"user_id": "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E",
"email": "todd@example.com",
"expires_at": "2023-11-16T21:32:25.235Z",
"created_at": "2023-11-16T21:32:25.235Z",
"updated_at": "2023-11-16T21:32:25.235Z"
},
"created_at": "2023-11-16T16:32:25.239Z",
"context": {
"client_id": "client_123456789"
}
}
© WorkOS, Inc.
FeaturesAuthKitSingle Sign-OnDirectory SyncAdmin PortalFine-Grained Authorization
DevelopersDocumentationChangelogAPI Status
ResourcesBlogPodcastPricingSecuritySupport
CompanyAboutCustomersCareersLegalPrivacy
© WorkOS, Inc.