Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/eggarcia98/auth-backend/llms.txt

Use this file to discover all available pages before exploring further.

Send a one-time password (OTP) to the specified email address. The user receives a 6-digit code they can use to authenticate via Verify OTP.

Request

POST /api/v1/auth/login/otp No authentication required.

Body

email
string
required
The email address to send the OTP to. Must be a valid email format.

Response

success
boolean
required
Indicates whether the request succeeded. Always true on success.
data
object

Examples

curl --request POST \
  --url https://your-api.com/api/v1/auth/login/otp \
  --header 'Content-Type: application/json' \
  --data '{
    "email": "user@example.com"
  }'

Success response

200
{
  "success": true,
  "data": {
    "message": "OTP sent to email"
  }
}

Error responses

400
{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid email address"
  }
}

Build docs developers (and LLMs) love