Get Campaigns
Retrieve a paginated list of SMS campaigns with optional date filtering.
curl -X GET "https://accounts.netvox.ng/api/v2/Campaign?ApiKey=YOUR_API_KEY&ClientId=YOUR_CLIENT_ID&start=0&length=10&fromdate=2024-01-01&enddate=2024-12-31" \
-H "Content-Type: application/json"
Parameters
Your API key for authentication
Your client identifier for authentication
Starting index for pagination (0-based)
Number of campaigns to retrieve per page
Start date filter in yyyy-mm-dd format
End date filter in yyyy-mm-dd format
Response
Error code (0 for success)
Description of the result
Array of campaign objects
Unique identifier for the campaign
Sender ID used for the campaign
Number of messages in the campaign
Success Response
{
"ErrorCode": 0,
"ErrorDescription": "Success",
"Data": [
{
"CampaignId": 2272,
"CampaignName": "Camp_07-Mar-2018 14:34",
"Message": "zxczxc",
"CreatedDate": "Jan 01,0001 12:00:00",
"SenderId": "WEBSMS",
"MessageCount": 1
}
]
}
Use Cases
- Campaign overview: View all your SMS campaigns
- Analytics: Analyze campaign performance over time
- Audit trail: Track campaign history and details
- Integration: Sync campaign data with your CRM or analytics platform