Authentication and session management
Login
POST
https://odoopi.usescrub.io
/api/v1/auth/login
Authenticate with email and password. Returns a JWT access token (and optional refresh token) for dashboard sessions.
Request Body
emailstring · email · requiredExample: user@example.compasswordstring · requiredExample: securepassword123
Responses
access_tokenstringrefresh_tokenstringtoken_typestringExample: beareruserobject
Get authenticated user
GET
https://odoopi.usescrub.io
/api/v1/auth/me
Returns the current user for a valid JWT access token.
Responses
idintegeremailstringusernamestringfull_namestringphonestringcompanystringcompany_sizestringindustrystringrolestringcountrystringis_activebooleanis_verifiedbooleancreated_atstring · date-timelast_login_atstring · date-time