# Magic link prelogin

Initiate passwordless authentication by sending a magic link to the user's email address.
This is the first step in the magic link passwordless login flow for local users. The system sends an email containing a secure login link to the provided address.
Request body must include:
- `email`
: The email address of the user initiating the login.
- `invitationToken`
 (optional): Include if the user is signing up through an invitation.
- `recaptchaToken`
 (optional): Required if reCAPTCHA is enabled for login.

Use this endpoint to start the magic link authentication process by delivering a login link to the user's email inbox.

Endpoint: POST /resources/auth/v1/passwordless/magiclink/prelogin
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Request fields (application/json):

  - `recaptchaToken` (string)

  - `invitationToken` (string)

  - `email` (string, required)

  - `userId` (string, required)

  - `username` (string, required)

## Response 400:

  - `400` (unknown)
    Invalid authentication type, magic link authentication should be enabled

