Comprehensive API Documentation

Doposta
API Reference

248+ RESTful API endpoints to integrate email marketing into your applications. Build powerful integrations with webhooks, real-time tracking, and comprehensive analytics.

248+
API Endpoints
26
Webhook Events
99.9%
API Uptime
<100ms
Avg Response

Quick Start

Get your API key and start integrating in minutes

1

Get Your API Key

Sign up and generate your API key from the dashboard

2

Make Your First Call

Use our REST API to send your first email or fetch analytics

3

Set Up Webhooks

Configure webhooks to receive real-time event notifications

Example Request
curl -X POST https://api.doposta.com/v1/campaigns \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My Campaign",
    "subject": "Hello World",
    "from_email": "sender@example.com",
    "content": "<h1>Welcome!</h1>"
  }'

API Endpoints

Browse our comprehensive API reference

Campaigns

POST/api/campaignsCreate a new campaign
GET/api/campaignsList all campaigns
GET/api/campaigns/:idGet campaign details
PUT/api/campaigns/:idUpdate campaign
DELETE/api/campaigns/:idDelete campaign
POST/api/campaigns/:id/sendSend campaign

Contacts

POST/api/contactsAdd new contact
GET/api/contactsList contacts
PUT/api/contacts/:idUpdate contact
DELETE/api/contacts/:idDelete contact
POST/api/contacts/importBulk import contacts

Analytics

GET/api/analytics/overviewGet overview stats
GET/api/analytics/campaigns/:idCampaign analytics
GET/api/tracking/opensGet email opens
GET/api/tracking/clicksGet link clicks
GET/api/tracking/bouncesGet bounces

Webhooks

POST/api/webhooksCreate webhook
GET/api/webhooksList webhooks
PUT/api/webhooks/:idUpdate webhook
DELETE/api/webhooks/:idDelete webhook
POST/api/webhooks/:id/testTest webhook

Webhook Events

26 real-time event types to keep your application in sync

email.sent
email.delivered
email.opened
email.clicked
email.bounced
email.complained
email.unsubscribed
campaign.started
campaign.completed
campaign.paused
contact.created
contact.updated
contact.deleted
conversion.created
affiliate.conversion
payment.received

Secure Authentication

API keys with rate limiting and IP whitelisting for maximum security

Real-Time Updates

WebSocket connections and webhooks for instant event notifications

SDKs Available

Official libraries for Python, Node.js, PHP, Ruby, and more

Ready to Start Building?

Get your API key and access 248+ endpoints today