API Documentation
Integrate LandinEmail's powerful email marketing features into your applications with our REST API.
API Overview
The LandinEmail API is a RESTful API that allows you to programmatically manage your email campaigns, contacts, and analytics. All API requests must be authenticated using your API key.
Base URL
https://api.landinemail.com/v1
Secure Authentication
API key-based authentication with HTTPS encryption
Rate Limited
1000 requests per hour to ensure fair usage
JSON Response
All responses are in JSON format for easy parsing
Webhooks
Real-time notifications for campaign events
Authentication
All API requests must include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Your API key can be found in your account dashboard under Settings > API Keys.
API Endpoints
Campaigns
Request Body:
{
"name": "Welcome Campaign",
"subject": "Welcome to our newsletter!",
"from_email": "hello@yourcompany.com",
"from_name": "Your Company",
"template_id": "template_123",
"recipients": ["user@example.com"]
}
Contacts
Request Body:
{
"email": "user@example.com",
"first_name": "John",
"last_name": "Doe",
"tags": ["newsletter", "customer"]
}
Templates
Webhooks
Webhooks allow you to receive real-time notifications when events occur in your LandinEmail account.
Available Events
campaign.sent
- Campaign has been sentemail.opened
- Email has been openedemail.clicked
- Link in email has been clickedemail.bounced
- Email has bouncedcontact.subscribed
- New contact subscribedcontact.unsubscribed
- Contact unsubscribed
Webhook Payload Example
{
"event": "email.opened",
"timestamp": "2024-01-15T10:30:00Z",
"data": {
"campaign_id": "camp_123",
"contact_id": "cont_456",
"email": "user@example.com"
}
}
Error Codes
Ready to Get Started?
Sign up for a free account and get your API key to start integrating with LandinEmail.