API Documentation
Integrate AdPilot into your applications using our REST API
Quick Start
1
Generate an API Key
Go to Dashboard → API Keys and create a new key
2
Make Your First Request
Use your API key in the Authorization header
curl -X GET "https://api.adpilot.io/api/portfolios" \ -H "Authorization: Bearer apk_your_api_key_here" \ -H "Content-Type: application/json"
Authentication
All API requests require authentication using an API key. Include your key in the Authorization header:
Authorization: Bearer apk_your_api_key_hereEndpoints
Portfolios
GET
/api/portfoliosList all portfoliosPOST
/api/portfoliosCreate a portfolioGET
/api/portfolios/:idGet portfolio by IDPUT
/api/portfolios/:idUpdate a portfolioDELETE
/api/portfolios/:idDelete a portfolioUsage
GET
/api/usageGet your API usage statsWebhooks
GET
/api/webhooksList your webhooksPOST
/api/webhooksCreate a webhookDELETE
/api/webhooks/:idDelete a webhookExport
GET
/api/export?type=usage&format=csvExport usage as CSVGET
/api/export?type=portfolios&format=jsonExport portfolios as JSONRate Limits
| Plan | Requests/minute | Monthly quota |
|---|---|---|
| Free | 30 | 100 |
| Starter | 60 | 1,000 |
| Pro | 120 | 10,000 |
| Enterprise | Unlimited | 100,000+ |