Sign Up API
The signup endpoints allow new users to create accounts on the ProductFlo platform. Multiple registration methods are supported, including email, phone number, and OAuth providers.Email Signup
POST /auth/signup
Create a new user account with email and password
Request
- cURL
- JavaScript
- Python
Request Body
string
The user’s first name
string
The user’s last name
string
The user’s full name (alternative to providing first_name and last_name separately)
string
required
The user’s username
string
required
The user’s email address
string
required
The user’s password
string
required
Confirmation of the password (must match password)
Response
object
User information
object
Session information if auto-login is enabled
Phone Signup
POST /auth/phone-signup
Create a new user account with phone number and password
Request
- cURL
- JavaScript
Request Body
string
required
The user’s username
string
required
The user’s phone number in international format (e.g., +12345678901)
string
required
The user’s password
string
required
Confirmation of the password (must match password)
Response
Similar to email signup response, with phone number instead of email.OAuth Provider Signup
POST /auth/provider
Create or login with an OAuth provider
Request
- cURL
- JavaScript
Request Body
string
required
The OAuth provider to use (e.g., google, github, apple)
Response
string
URL to redirect the user to for OAuth authentication
OAuth Callback
GET /auth/callback
Handle OAuth provider callback