Carrier Login
POST/truckers/auth/login
Authenticate a carrier in the system. Verify the credentials and return a JWT if they are valid.
Flow:
- Validate email and password
- Verify the account is active
- Record the access in the history log
- Generate a JWT token with user data
Common errors:
- WRONG_CREDENTIALS: Incorrect credentials (400)
- USER_NOT_ACTIVE: Account suspended or not activated (401)
Request
Responses
- 200
- 400
- 401
Authentication successful
Response Headers
Invalid credentials or incorrect format
Response Headers
Account not active or suspended