POST
/api/email/send
Send Email
Send transactional or marketing email
Authentication
Requires API Key in header: Authorization: Bearer sk_txn_xxx
or sk_mkt_xxx
Request Body
{
"to": "recipient@example.com",
"from": "noreply@yourdomain.com",
"subject": "Welcome to our service",
"html": "<h1>Hello World</h1>",
"text": "Hello World"
}
Response Example
{
"success": true,
"messageId": "msg_1234567890",
"creditsUsed": 1,
"creditsRemaining": 1999
}
Code Examples
curl -X POST https://api.ogbae.com/api/email/send \
-H "Authorization: Bearer sk_txn_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "recipient@example.com",
"from": "noreply@yourdomain.com",
"subject": "Welcome to our service",
"html": "<h1>Hello World</h1>",
"text": "Hello World"
}'
Rate Limits
10 requests per minute per API key
Rate Limits
API Endpoints
Email Sending (POST /api/email/send)10/min
Authentication endpoints5/min
Read operations (GET)100/min
Domain operations20/min
Rate Limit Headers
All API responses include rate limit headers:
X-RateLimit-Limit: 10
X-RateLimit-Remaining: 8
X-RateLimit-Reset: 1640995200
When rate limited, you'll receive a 429 Too Many Requests response.
Note: Rate limits are per API key for authenticated endpoints and per IP address for public endpoints. Contact support for higher limits.