API Documentation
Build integrations with the DailyDraft REST API. Manage newsletters, issues, and subscribers programmatically.
Paid Feature: API access requires a paid subscription ($97/month per newsletter).
Quick Links
Authentication
API keys and authentication
Newsletters
Get and update newsletter settings
Issues
Create, send, and manage issues
Subscribers
Add, update, and remove subscribers
Webhooks
Real-time event notifications
Errors
Error codes and handling
Base URL
https://dailydraft.ai/api/v1
Authentication
All API requests require an API key passed in the header:
X-API-Key: your_api_key_here
Generate API keys from Newsletter Settings → API Keys.
Rate Limits
| Endpoint | Rate Limit |
|---|---|
| GET requests | 1000/hour |
| POST/PUT/DELETE | 100/hour |
| Bulk operations | 10/hour |
Response Format
All responses are JSON:
{
"data": { ... },
"meta": {
"total": 100,
"page": 1,
"per_page": 25
}
}
Quick Example
Add a subscriber with curl:
curl -X POST https://dailydraft.ai/api/v1/subscriptions \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"name": "John Doe",
"tags": ["vip"]
}'
SDKs & Libraries
Official SDKs are coming soon. In the meantime, use any HTTP library:
- Ruby:
HTTParty,Faraday - JavaScript:
fetch,axios - Python:
requests - PHP:
Guzzle
Need Help?
Having trouble with the API? Check our troubleshooting guide or email [email protected].
Still need help?
Can't find what you're looking for? Chat with our AI assistant or create a support ticket.
Sign in to get support