Skip to main content
POST
Register User

Endpoint

Register a new user account in the Viax platform. Supports registration for passengers, drivers, and other user types.

Headers

string
required
Must be application/json
string
required
Must be application/json

Request Body

string
required
User’s first name
string
required
User’s last name
string
required
Valid email address. Must be unique in the system.
string
required
Phone number with country code (e.g., +573001234567)
string
required
User password. Should be at least 8 characters.
string
Street address
number
Location latitude in decimal degrees
number
Location longitude in decimal degrees
number
Alternative field for latitude (backend accepts both)
number
Alternative field for longitude (backend accepts both)
string
City name
string
Department/state name
string
default:"Colombia"
Country name

Response

boolean
required
Indicates if registration was successful
string
Success or error message
object
Created user object

Request Example

Response Example

Error Responses

Bad Request
Invalid input data or email already registered
Internal Server Error
Server error during registration process

Notes

After successful registration, the user can immediately login using the /auth/login.php endpoint.
Passwords are hashed on the server. Never store plain-text passwords on the client.

See Also