curl "https://zeplo.ai/api/campaigns?status=completed&limit=10" \
-H "Cookie: connect.sid=s%3A7HImZ-T2BxWSbUsf9dtWdOlBW4rVuORO.5J0Do0NyvBu%2BkTvu1aHvtNs00BKhkpUKTwiokLS0cpw"
{
"success": true,
"data": [
{
"id": 1,
"name": "New Year Promo",
"status": "completed",
"type": "template",
"channelId": "647015955153740",
"templateName": "new_year_promo",
"totalRecipients": 500,
"sentCount": 480,
"deliveredCount": 470,
"readCount": 320,
"repliedCount": 45,
"failedCount": 20,
"scheduledAt": "2026-01-01T09:00:00Z",
"startedAt": "2026-01-01T09:00:00Z",
"completedAt": "2026-01-01T09:15:00Z",
"createdAt": "2025-12-28T10:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 25,
"totalPages": 3
}
}
Campaigns
GET List Campaigns
Retrieve all marketing campaigns with filtering.
GET
/
api
/
campaigns
curl "https://zeplo.ai/api/campaigns?status=completed&limit=10" \
-H "Cookie: connect.sid=s%3A7HImZ-T2BxWSbUsf9dtWdOlBW4rVuORO.5J0Do0NyvBu%2BkTvu1aHvtNs00BKhkpUKTwiokLS0cpw"
{
"success": true,
"data": [
{
"id": 1,
"name": "New Year Promo",
"status": "completed",
"type": "template",
"channelId": "647015955153740",
"templateName": "new_year_promo",
"totalRecipients": 500,
"sentCount": 480,
"deliveredCount": 470,
"readCount": 320,
"repliedCount": 45,
"failedCount": 20,
"scheduledAt": "2026-01-01T09:00:00Z",
"startedAt": "2026-01-01T09:00:00Z",
"completedAt": "2026-01-01T09:15:00Z",
"createdAt": "2025-12-28T10:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 25,
"totalPages": 3
}
}
List campaigns
GET /api/campaigns
Retrieve a paginated list of campaigns.
Headers
string
required
Session cookie (login via POST /api/auth/login)
Query parameters
integer
default:"1"
Page number.
integer
default:"20"
Items per page.
string
Filter:
draft, scheduled, running, completed, failed.string
Search campaign name.
curl "https://zeplo.ai/api/campaigns?status=completed&limit=10" \
-H "Cookie: connect.sid=s%3A7HImZ-T2BxWSbUsf9dtWdOlBW4rVuORO.5J0Do0NyvBu%2BkTvu1aHvtNs00BKhkpUKTwiokLS0cpw"
{
"success": true,
"data": [
{
"id": 1,
"name": "New Year Promo",
"status": "completed",
"type": "template",
"channelId": "647015955153740",
"templateName": "new_year_promo",
"totalRecipients": 500,
"sentCount": 480,
"deliveredCount": 470,
"readCount": 320,
"repliedCount": 45,
"failedCount": 20,
"scheduledAt": "2026-01-01T09:00:00Z",
"startedAt": "2026-01-01T09:00:00Z",
"completedAt": "2026-01-01T09:15:00Z",
"createdAt": "2025-12-28T10:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 25,
"totalPages": 3
}
}
Get campaigns by user
POST /api/getCampaignsByUserId
curl -X POST https://zeplo.ai/api/getCampaignsByUserId \
-H "Cookie: connect.sid=s%3A7HImZ-T2BxWSbUsf9dtWdOlBW4rVuORO.5J0Do0NyvBu%2BkTvu1aHvtNs00BKhkpUKTwiokLS0cpw" \
-H "Content-Type: application/json" \
-d '{ "userId": 1 }'
