Authentication API
EstateHub uses role-scoped authentication namespaces. Use the reference matching the account role represented by the token.
Base URL: http://localhost:8000/api/v1
Auth: Simple JWT bearer token where required
Headers: Content-Type: application/json
Customer Authentication→Registration, login, OAuth, refresh, logout, password recovery, email verification, and phone verification.Seller Authentication→Seller registration, login, refresh, logout, password recovery, and contact verification.Administrator Authentication→Administrator login, refresh, logout, password changes, and password recovery.
Token Boundaries
- Customer tokens use
/accounts/customers/routes. - Seller tokens use
/accounts/sellers/routes. - Administrator tokens use
/accounts/admins/routes. - A token issued for one role namespace does not grant access to another namespace.
- Protected requests send
Authorization: Bearer <access-token>.