Skip to main content
Magic Link generates shareable URLs that give your users access to Leaf’s provider connection or file upload flows, without requiring you to embed any widget code. Send the link via email, SMS, or in-app notification. The link controls the entire authentication or upload experience and can be customized with your branding. There are three types of Magic Links: Provider (multiple providers) lets the user connect to any of your enabled providers in one session. Requires provider app info to be registered with Leaf first (same setup as Leaf Link). Authentication (single provider) restricts the flow to one specific provider. Useful when you know which provider the user needs to connect. File Upload lets the user upload .zip files containing machine data for processing. Each link type has its own creation endpoint under https://api.withleaf.io/services/widgets/api.

With an existing Leaf user

With automatic Leaf user creation

You can also create a Magic Link without specifying a leafUserId. In that flow, Leaf creates or reuses the Leaf user as part of link creation based on the external ID you provide:

Endpoints

Customization

All Magic Link creation endpoints accept a settings object for branding:

What to do next

Last modified on March 24, 2026