Integrate SmartSale into your applications with our comprehensive API.
/api/auth/tokenGenerate an API token for authentication
curl -X POST https://api.smartsale.com/auth/token \
-H "Content-Type: application/json" \
-d '{"email": "your@email.com", "password": "your_password"}'/api/leadsList all leads
curl https://api.smartsale.com/leads \
-H "Authorization: Bearer YOUR_API_TOKEN"/api/leadsCreate a new lead
curl -X POST https://api.smartsale.com/leads \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "John Doe", "email": "john@example.com"}'/api/analytics/salesGet sales analytics
curl https://api.smartsale.com/analytics/sales \
-H "Authorization: Bearer YOUR_API_TOKEN"