The public API is currently in development. This documentation shows what's planned.
API Reference
Build integrations with the Suparev REST API. Manage leads, campaigns, and analytics programmatically.
https://api.suparev.com/v1Quick Start
1. Get your API key
Generate an API key from your dashboard at Settings → API Keys
2. Make your first request
curl -X GET "https://api.suparev.com/v1/leads" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
3. Handle the response
{
"data": [
{
"id": "lead_abc123",
"email": "customer@example.com",
"name": "John Smith",
"score": 85,
"segment": "past_customer",
"created_at": "2024-01-15T10:30:00Z"
}
],
"meta": {
"total": 1247,
"page": 1,
"per_page": 20
}
}Authentication
Bearer Token Authentication
All API requests must include your API key in the Authorization header.
Authorization: Bearer your_api_key_hereSecurity: Never expose your API key in client-side code. Always make API calls from your server.
Endpoints
Authentication
/auth/tokenGet an access token/auth/refreshRefresh an expired tokenLeads
/leadsList all leads/leadsCreate a new lead/leads/:idGet a specific lead/leads/:idUpdate a lead/leads/:idDelete a lead/leads/importBulk import leadsCampaigns
/campaignsList all campaigns/campaignsCreate a new campaign/campaigns/:idGet campaign details/campaigns/:id/launchLaunch a campaign/campaigns/:id/pausePause a campaignMessages
/messagesList sent messages/messages/:idGet message details/repliesList repliesAnalytics
/analytics/overviewDashboard overview stats/analytics/campaigns/:idCampaign performance/analytics/revenueRevenue attributionWebhooks
Real-time Event Notifications
Configure webhook endpoints in your dashboard to receive real-time notifications when events occur in your Suparev account.
Available Events
lead.createdA new lead was createdlead.updatedA lead was updatedcampaign.launchedA campaign was launchedmessage.sentA message was sentreply.receivedA reply was receivedbooking.createdAn appointment was bookedpayment.receivedA payment was processedRate Limits
API requests are rate limited to ensure fair usage and platform stability.
Rate limit headers are included in all responses. Need higher limits? Contact us for enterprise plans.
SDKs & Libraries
Official SDKs for popular languages coming soon. In the meantime, our REST API works great with any HTTP client.