> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fynn.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# Request a login link for the customer portal

> Sends an email with a login link to the customer portal. The customer can click the link to access their portal without entering a password. Always returns success to prevent email enumeration.

Public endpoint for customers to request a login link to the customer portal.

## How It Works

1. Customer enters their email address on the login page
2. An email with a login link is sent to the customer
3. Customer clicks the link and is logged in automatically

<Note>
  This endpoint always returns `success: true` to prevent email enumeration attacks. The email is only sent if the address matches an existing customer.
</Note>

## Difference to OTP

This endpoint replaces the OTP (one-time password) flow for customer portal login. Instead of entering a 6-digit code, customers simply click a link in their email - a much smoother experience, especially on mobile devices.

The OTP flow (`/public/customer/request-otp` and `/public/customer/otp-login`) is still available and used in the checkout flow where inline verification is required.


## OpenAPI

````yaml post /public/customer/request-login-link
openapi: 3.1.0
info:
  title: Fynn API
  description: ''
  termsOfService: https://www.fynn.eu/tos
  contact:
    name: Fynn UG (haftungsbeschränkt)
    url: https://www.fynn.eu
    email: hi@fynn.eu
  license:
    name: Proprietary
    url: https://www.fynn.eu/license
  version: 0.0.0
servers:
  - url: https://coreapi.io
    description: Production
  - url: https://preview.coreapi.io
    description: Sandbox
security:
  - JWT: []
tags: []
paths:
  /public/customer/request-login-link:
    parameters: []
    post:
      tags:
        - CustomerOtp
      summary: Request a login link for the customer portal
      description: >-
        Sends an email with a login link to the customer portal. The customer
        can click the link to access their portal without entering a password.
        Always returns success to prevent email enumeration.
      operationId: requestCustomerLoginLink
      parameters: []
      requestBody:
        description: The customer email address
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: The email address of the customer
                  example: customer@example.com
              required:
                - email
        required: true
      responses:
        '200':
          description: >-
            Login link request accepted. An email will be sent if the address
            matches a customer.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    example: true
                    type: boolean
      deprecated: false
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |-
            curl -X POST \
             /public/customer/request-login-link \
             --header "Content-Type: application/json" \
             --data '{
                "email": "customer@example.com"
            }'
components:
  securitySchemes:
    JWT:
      type: http
      scheme: bearer

````