Integrate SmartSale into your applications with our comprehensive API.
/api/auth/token
Generate 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/leads
List all leads
curl https://api.smartsale.com/leads \
-H "Authorization: Bearer YOUR_API_TOKEN"
/api/leads
Create 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/sales
Get sales analytics
curl https://api.smartsale.com/analytics/sales \
-H "Authorization: Bearer YOUR_API_TOKEN"