Authentication
Log in with a one-time code, keep the session alive, and reset passwords
Customers sign in with email and password, then confirm a one-time code. A successful login gives you a short-lived access token (15 minutes) and sets a refresh cookie.
All routes below are under /api/v1/customer/personal/auth.
Log in
Send credentials
curl -X POST https://api.uverusbanking.com/api/v1/customer/personal/auth/login \
-H "Content-Type: application/json" \
-H "origin-domain: bank.example.com" \
-d '{ "email": "[email protected]", "password": "..." }'Depending on the account's security settings the response either already
contains the tokens, or tells you the next step to take: a one-time code sent
by email/SMS (you get a session_id back), or a passkey challenge.
Confirm the code
curl -X POST https://api.uverusbanking.com/api/v1/customer/personal/auth/verify-code \
-H "Content-Type: application/json" \
-d '{ "session_id": "<session_id>", "code": "123456" }'Returns access_token, token_type: "Bearer", expires_in (900 seconds),
session_id and the user.
Call the API
Send Authorization: Bearer <access_token> on every request.
In non-production environments the one-time code may be echoed in the login response so you can test without a real email or SMS inbox. It is never echoed in production.
Keep the session alive
The refresh token is an httpOnly cookie named refresh_token, valid for 7
days; a fresh cookie is issued on every refresh. Your frontend must send cookies
(credentials: "include" in fetch) and be served from a domain allowed by
the API's CORS configuration.
curl -X POST https://api.uverusbanking.com/api/v1/customer/personal/auth/refresh-token \
--cookie "refresh_token=..." \
-H "Content-Type: application/json" \
-d '{ "session_id": "<session_id>" }'Refresh shortly before the access token expires, or on a 401, then retry
the original request once.
Other routes
| Method | Path | Purpose |
|---|---|---|
GET | /me | The signed-in customer |
GET | /validate | Check that the access token is still valid |
POST | /logout | End the session (session_id in the body) |
POST | /forgot-password | Start a reset — sends a one-time code |
POST | /verify-forgot-otp | Check the reset code |
POST | /reset-password | Set a new password |
POST | /resend-forgot-otp | Send the reset code again |
POST | /change-password | Change password while signed in |
Errors and limits
Login, code verification, refresh, logout and every password route are
rate-limited to 5 requests per minute. Exceeding it returns 429. A
wrong or expired code returns 400. A missing or expired token returns 401.
Full schemas: Customer API reference.