Developer API
API Documentation
Build powerful integrations with our RESTful API. Send emails, manage subscribers, and automate your workflows programmatically.
Quick Start
1. Get your API key
Navigate to Settings > API Keys in your dashboard to generate an API key.
2. Make your first request
# Send a test email
curl -X POST https://api.emailpro.com/v1/emails/send \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "user@example.com",
"subject": "Hello from EmailPro!",
"html": "<h1>Welcome!</h1><p>This is your first API email.</p>"
}'
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "user@example.com",
"subject": "Hello from EmailPro!",
"html": "<h1>Welcome!</h1><p>This is your first API email.</p>"
}'
3. Check the response
{
"success": true,
"message_id": "msg_abc123xyz",
"status": "queued"
}
"success": true,
"message_id": "msg_abc123xyz",
"status": "queued"
}
Official SDKs
Use our official libraries for your preferred language
Py
Python
pip install emailpro
JS
Node.js
npm install @emailpro/sdk
PHP
PHP
composer require emailpro/sdk
Rb
Ruby
gem install emailpro
API Endpoints
POST
/v1/emails/sendSend a single email to a recipient
POST
/v1/campaignsCreate and schedule a campaign
GET
/v1/subscribersList all subscribers with pagination
POST
/v1/subscribersAdd a new subscriber to a list
GET
/v1/analytics/campaigns/:idGet detailed analytics for a campaign