Documentation & API Reference
Welcome to the LeadSoras CRM Developer Docs. Here you will find guides, concepts, and API references to help you integrate LeadSoras CRM into your custom software ecosystem, synchronize databases, and automate your sales pipeline.
Our API is built on RESTful principles, returns JSON-encoded responses, and uses standard HTTP response codes to communicate errors.
WhatsApp Business API Integration Guide
Complete step-by-step documentation for connecting your WhatsApp Business number with LeadSoras CRM. Covers Meta Business setup, Evolution API installation, webhook configuration, and sending messages.
Quickstart Guide
To begin making calls to the API, you must first retrieve an API Access Token. Access Tokens are issued within your CRM Settings page (Admin only).
Include the access token in the HTTP header of all requests:
Authentication API
Perform programmatic agent sign-in or generate JWT credentials using the login endpoint:
Content-Type: application/json
{ "email": "agent@company.com", "password": "yourpassword" }
A successful login response returns user statistics along with the active JWT validation token.
Webhooks
LeadSoras CRM supports webhook integrations for receiving leads from multiple platforms:
POST /api/webhooks/tiktok โ TikTok Lead Ads
POST /api/webhooks/snapchat โ Snapchat Lead Ads
POST /api/webhooks/evolution โ Evolution API (WhatsApp)
POST /api/webhooks/:source โ Generic webhook endpoint
For detailed WhatsApp webhook configuration, see the WhatsApp Integration Guide โ Webhooks section.
WhatsApp API Endpoints
All WhatsApp endpoints require JWT authentication.
POST /api/whatsapp/bulk โ Send bulk messages
GET /api/whatsapp/messages โ Get message history
GET /api/whatsapp/messages/:leadId โ Get messages by lead
GET /api/whatsapp/stats โ Get messaging statistics
POST /api/whatsapp/pause โ Pause message sending
POST /api/whatsapp/resume โ Resume message sending
POST /api/whatsapp/retry/:id โ Retry a failed message
For detailed setup and configuration, see the full WhatsApp Integration Guide.