curl https://zeplo.ai/api/admin/plans \
-H "x-api-key: YOUR_API_KEY" \
-H "x-api-secret: YOUR_API_SECRET" \
-H "x-channel-id: YOUR_CHANNEL_ID"
{
"success": true,
"data": [
{
"id": 1,
"name": "Starter",
"description": "Perfect for small businesses",
"price": 29.99,
"currency": "USD",
"interval": "monthly",
"features": {
"maxContacts": 1000,
"maxMessages": 5000,
"maxChannels": 1,
"maxTeamMembers": 3,
"campaigns": true,
"automations": false,
"analytics": true,
"apiAccess": false
},
"status": "active",
"gatewayPlanId": "price_abc123",
"createdAt": "2026-01-01T08:00:00Z"
}
]
}
Subscriptions & Plans
GET List Plans
Retrieve available subscription plans.
GET
/
api
/
admin
/
plans
curl https://zeplo.ai/api/admin/plans \
-H "x-api-key: YOUR_API_KEY" \
-H "x-api-secret: YOUR_API_SECRET" \
-H "x-channel-id: YOUR_CHANNEL_ID"
{
"success": true,
"data": [
{
"id": 1,
"name": "Starter",
"description": "Perfect for small businesses",
"price": 29.99,
"currency": "USD",
"interval": "monthly",
"features": {
"maxContacts": 1000,
"maxMessages": 5000,
"maxChannels": 1,
"maxTeamMembers": 3,
"campaigns": true,
"automations": false,
"analytics": true,
"apiAccess": false
},
"status": "active",
"gatewayPlanId": "price_abc123",
"createdAt": "2026-01-01T08:00:00Z"
}
]
}
List plans
GET /api/admin/plans
Retrieve all subscription plans.
Headers
string
required
Your API key
string
required
Your API secret key
string
required
WhatsApp channel ID
curl https://zeplo.ai/api/admin/plans \
-H "x-api-key: YOUR_API_KEY" \
-H "x-api-secret: YOUR_API_SECRET" \
-H "x-channel-id: YOUR_CHANNEL_ID"
{
"success": true,
"data": [
{
"id": 1,
"name": "Starter",
"description": "Perfect for small businesses",
"price": 29.99,
"currency": "USD",
"interval": "monthly",
"features": {
"maxContacts": 1000,
"maxMessages": 5000,
"maxChannels": 1,
"maxTeamMembers": 3,
"campaigns": true,
"automations": false,
"analytics": true,
"apiAccess": false
},
"status": "active",
"gatewayPlanId": "price_abc123",
"createdAt": "2026-01-01T08:00:00Z"
}
]
}
Create plan (superadmin)
POST /api/admin/plans
{
"name": "Enterprise",
"description": "For large organizations",
"price": 199.99,
"currency": "USD",
"interval": "monthly",
"features": {
"maxContacts": -1,
"maxMessages": -1,
"maxChannels": 10,
"maxTeamMembers": -1,
"campaigns": true,
"automations": true,
"analytics": true,
"apiAccess": true
}
}
Get plan by ID
GET /api/admin/plans/:id
Update plan (superadmin)
PUT /api/admin/plans/:id
Delete plan (superadmin)
DELETE /api/admin/plans/:id
Sync plans to payment gateway (superadmin)
POST /api/admin/plans/:id/sync-gateway
POST /api/admin/plans/sync-all-gateways