Login API
The login endpoints allow users to authenticate with the ProductFlo API and obtain access tokens for subsequent API calls.Email Login
POST /auth/login
Authenticate a user with email and password
Request
- cURL
- JavaScript
- Python
Request Body
string
required
The user’s email address
string
required
The user’s password
Response
object
User information
object
Session information
Phone Login
POST /auth/phone-login
Authenticate a user with phone number and password
Request
- cURL
- JavaScript
Request Body
string
required
The user’s phone number in international format (e.g., +12345678901)
string
required
The user’s password
Response
Same structure as the email login response.Magic Link Authentication
POST /auth/magic-link
Send a magic link to the user’s email for passwordless login
Request
- cURL
- JavaScript
Request Body
string
required
The user’s email address
Response
string
Confirmation message
OTP Authentication
POST /auth/phone-otp
Send a one-time password to the user’s phone
Request
- cURL
Request Body
string
required
The user’s phone number in international format
Response
string
Confirmation message
Verify OTP
POST /auth/verify-phone-otp
Verify a one-time password sent to the user’s phone
Request
- cURL
Request Body
string
required
The user’s phone number in international format
string
required
The OTP code received by the user