Base URL
/api. For local development:
Authentication
All endpoints (except where marked Public) require a valid Better Auth session. Include the session cookie in every request β it is set automatically by the browser after login. For programmatic access (e.g. mobile app background services, scripts), pass the session token as a Bearer header:Response Format
All responses are JSON. Successful responses return the data directly (object or array). Errors follow this shape:Role-Based Access
Most endpoints check the authenticated userβs role before responding. If your role does not have access, you receive:API Modules
Leads
Create, list, update, assign, and bulk-import leads. Core of all CRM operations.
Site Visits
Schedule, update, and GPS-verify site visits linked to leads.
Follow-Ups
Create and manage follow-up tasks for individual leads.
Negotiations
Submit and retrieve discount negotiation requests for a lead.
Bookings
Create bookings, upload documents, manage loan cases, agreements, and handovers.
Inventory
Manage projects, towers, units, and possession statuses.
Brokers (CP)
Create and manage the external Channel Partner broker network.
Approvals
Submit and manage discount approval requests and messages.
Marketing β Voice
Create and dispatch AI voice campaigns with full audience and analytics control.
Marketing β WhatsApp
Send broadcasts, manage conversations, flows, templates, and pipelines.
Marketing β SMS
Run SMS campaigns, manage integrations, flows, and track delivery.
Marketing β Email
Send email campaigns, manage integrations, audience, templates, and analytics.
Users & System
User location updates, push tokens, roles, sources, and project lookups.
Webhooks
Inbound webhook endpoints for Meta WhatsApp, SMS gateways, and voice platforms.