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_idstringLength: at most 64 charactersapp_namestringLength: at most 64 charactersemailstring (email) requiredLength: at most 255 charactersnamestringLength: at most 255 charactersreturn_tostring (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
messagestring
Generated sample
{
"message": "string"
}422 Invalid email or validation error
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 Rate limit exceeded
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string
503 consumer_auth_disabled
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.