Getting Started
The AiduPlay REST API is accessible at:
Base URL: https://api.aiduplay.com/v1All requests and responses use JSON. Include the Content-Type: application/json header for POST/PATCH requests.
Authentication
Authenticated endpoints require a Bearer token obtained from the advertiser or creator portal under Settings → API Keys.
curl https://api.aiduplay.com/v1/campaigns \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Rate Limits
| Plan | Requests / minute | Requests / day |
|---|---|---|
| Free | 60 | 10,000 |
| Starter | 300 | 100,000 |
| Pro | 1,000 | 1,000,000 |
| Enterprise | Custom | Custom |
Rate limit headers are returned on every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.
Error Handling
Errors return standard HTTP status codes and a JSON body:
{
"error": {
"code": "CAMPAIGN_NOT_FOUND",
"message": "No campaign with ID 'abc123' found for this account.",
"status": 404
}
}400Bad Request — invalid or missing parameters401Unauthorized — missing or invalid API key403Forbidden — valid key but insufficient permissions404Not Found — resource does not exist422Unprocessable — validation failed429Too Many Requests — rate limit exceeded500Internal Server Error — try again laterCampaigns
https://api.aiduplay.com/v1/campaignsList all campaigns for the authenticated advertiser
https://api.aiduplay.com/v1/campaignsCreate a new ad campaign
https://api.aiduplay.com/v1/campaigns/{id}Retrieve a single campaign by ID
https://api.aiduplay.com/v1/campaigns/{id}Update campaign settings or status
https://api.aiduplay.com/v1/campaigns/{id}Archive a campaign
Ads
https://api.aiduplay.com/v1/adsList all ad creatives
https://api.aiduplay.com/v1/adsUpload a new ad creative
https://api.aiduplay.com/v1/ads/{id}Retrieve an ad creative
https://api.aiduplay.com/v1/ads/{id}Delete an ad creative
Analytics
https://api.aiduplay.com/v1/analytics/campaigns/{id}Campaign performance metrics (impressions, views, clicks, CPV)
https://api.aiduplay.com/v1/analytics/campaigns/{id}/dailyDay-by-day breakdown for a campaign
https://api.aiduplay.com/v1/analytics/audienceAudience demographic breakdown across all campaigns
Creators
https://api.aiduplay.com/v1/creatorsBrowse verified creator profiles (public)
https://api.aiduplay.com/v1/creators/{id}Retrieve creator profile and channel stats
https://api.aiduplay.com/v1/creators/me/earningsAuthenticated creator earnings summary
Videos
https://api.aiduplay.com/v1/videosList public videos (supports ?q= search, ?category= filter)
https://api.aiduplay.com/v1/videos/{id}Retrieve video metadata
https://api.aiduplay.com/v1/videosUpload a video (multipart/form-data)
Webhooks
https://api.aiduplay.com/v1/webhooksList registered webhook endpoints
https://api.aiduplay.com/v1/webhooksRegister a new webhook endpoint
https://api.aiduplay.com/v1/webhooks/{id}Delete a webhook endpoint
Webhooks
Subscribe to real-time events by registering a webhook URL. AiduPlay will send a POST request to your endpoint when events occur.
Available events
campaign.createdcampaign.startedcampaign.pausedcampaign.completedcampaign.budget_exhaustedad.approvedad.rejectedcreator.payout.processedimpression.milestone// Example webhook payload
{
"event": "campaign.completed",
"created_at": "2026-04-02T10:30:00Z",
"data": {
"campaign_id": "cmp_abc123",
"total_views": 45231,
"total_spend_inr": 22615.50,
"status": "completed"
}
}SDKs & Libraries
Official SDKs are in active development. Community libraries and direct REST usage are supported now.
JavaScript / TypeScript
Use REST API
Python
Use REST API
REST
Available now
Need help?
Our developer support team is available via email and our Discord community.