Backend Integration
Below is the comprehensive guide to the core REST endpoints provided by our Django backend. All endpoints require a Bearer token except for the initial login route.
Base URL
http://localhost:8000/Format
All payload and response bodies utilize standard application/json.
Authentication
Pass token in header: Authorization: Bearer <token>
Core Endpoints
Authentication LoginPOST
/api/v1/auth/login/
Used to authenticate a user. Returns access and refresh JWT tokens.
User ManagementGET | POST
/api/v1/user/
Fetch the list of users or register/create a new user. Supports pagination.
Current ProfileGET
/api/v1/user/me/
Retrieve the profile details of the currently authenticated user.
Tenant OperationsGET | POST
/api/v1/tenant/
Manage root tenants/organizations. Used to isolate data across different organizations.
Project ManagementGET | POST
/api/v1/project/
Manage projects nested within tenants. Links users and resources to specific workspaces.
App IntegrationGET | POST
/api/v1/app/
Manage discrete apps/services connected to the CRM ecosystem.