Magic link & OTP
Send passwordless email
Send a verification email containing either a verification code (OTP), magic link, or both to a user's email address
post/api/v1/passwordless/email/send
Request
- Base URLhttps://$SCALEKIT_ENVIRONMENT_URL
- AuthOAuth 2Client credentialsToken URLhttps://$SCALEKIT_ENVIRONMENT_URL/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"email": "john.doe@example.com",
"expires_in": 300,
"magiclink_auth_uri": "https://yourapp.com/auth/passwordless/callback",
"state": "d62ivasry29lso",
"template_variables": {
"custom_variable_key": "custom_variable_value"
}
}Response
Successfully sent passwordless authentication email. Returns the authentication request details including expiration time and auth request ID
Example response
{
"auth_request_id": "h5Y8kT5RVwaea5WEgW4n-6C-aO_-fuTUW7Vb9-Rh3AcY9qxZqQ",
"expires_in": 300
}Changes
No recorded changes to this operation across all 16 revisions of this API.