Link types
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.
Creating a Magic Link
Each link type has its own creation endpoint underhttps://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 aleafUserId. 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 asettings object for branding:
What to do next
- Leaf Link for embedding widgets directly in your application.
- Leaf Connect for sharing data between API owners.
- Magic Link API Reference for full endpoint details.

