Users & Authentication
Send OTP
Send a one-time password (OTP) to a customer email address for passwordless sign-in.
GET
Send OTP
Documentation Index
Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
Use this file to discover all available pages before exploring further.
Send OTP
Sends a one-time password to the provided email address for passwordless authentication. The customer enters the OTP in the portal to obtain a bearer token without needing their full password. This supports magic-link and OTP-based sign-in flows.Authentication
No authentication required. This is a public endpoint.Query Parameters
The email address of the customer to send the OTP to. URL-encode this value.
The numeric identifier of the location. Ensures the OTP email uses the correct branding and is associated with the right space.
Response
Returns anActionConfirmation envelope. As with the password-reset flow, the response does not reveal whether the email address is registered.
true when the OTP was dispatched (or when no account was found — intentionally the same to prevent enumeration).Usually
null.HTTP-style status code mirrored in the body.
200 on success.Human-readable message. Usually
null on success.Validation errors.
null on success.Example Response
TypeScript Integration
Usage in Portal
| Context | Source file |
|---|---|
| OTP / magic-link sign-in flow | src/views/auth/SignIn/ |
Error Responses
The
email or businessId parameter is missing or malformed.OTP requests are rate-limited. The customer must wait before requesting another code.
Related Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /api/sys/users/startPasswordReset | Trigger a full password-reset email |
POST | /api/sys/users/exchange | Exchange a JWT (including OTP result) for a token |
POST | /api/token | Standard credential-based sign-in |
Send OTP