Skip to content
Sign in Create account

Request consumer magic link

POST /api/v1/consumer-auth/magic-link/request

Public, enumeration-safe passwordless sign-in request. For a valid email, the endpoint returns the same 200 response when consumer sign-in is enabled. Rate limits or disabled sign-in can return errors. A single-use link is sent when delivery is available. The return_to origin is resolved against the gateway allowlist.

This operation needs no authentication.

Request body

application/json object

  • app_id string
    Length: at most 64 characters
  • app_name string
    Length: at most 64 characters
  • email string (email) required
    Length: at most 255 characters
  • name string
    Length: at most 255 characters
  • return_to string (uri)
    Length: at most 2048 characters

Generated sample

{
  "app_id": "string",
  "app_name": "string",
  "email": "user@example.com",
  "name": "string",
  "return_to": "https://example.com"
}

Responses

200 Enumeration-safe response

application/json object

  • message string

Generated sample

{
  "message": "string"
}
422 Invalid email or validation error

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 Rate limit exceeded

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string

503 consumer_auth_disabled

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.