Skip to main content

Sign Up

Register a new user account.

Endpoint

POST /api/auth/signup

Request Body

{
"email": "user@example.com",
"password": "securepassword123",
"full_name": "John Doe"
}

Response

{
"message": "OTP sent to user@example.com",
"expires_in_minutes": 10
}

Verify OTP

After receiving the OTP via email:

POST /api/auth/verify-otp
{
"email": "user@example.com",
"otp": "123456"
}

Errors

CodeMessage
400Email already registered
422Invalid email format
422Password too weak