Welcome to the Campaign Tracker Backend API. Below are the available endpoints.
/api/campaigns
List all campaigns.
/api/campaigns
Create a new campaign.
curl -X POST https://campaign-tracker-backend-eight.vercel.app/api/campaigns -H "Content-Type: application/json" -d '{
"name": "Test Campaign",
"platform": "Google Ads",
"status": "Active",
"budget": 1000,
"start_date": "2023-10-01",
"end_date": "2023-10-31",
"goal": "Traffic"
}'
/api/campaigns/<id>
Retrieve a specific campaign.
/api/campaigns/<id>
Update a campaign.
/api/campaigns/<id>
Delete a campaign.
/api/dashboard/stats
Get aggregated dashboard statistics.
/api/dashboard/performance
Get monthly performance metrics for charts.
/api/insights/trends?query=marketing
Get trend analysis and related keywords.