Welcome to the MailGreet API
The MailGreet API provides programmatic access to your email marketing platform, enabling you to automate subscriber management, trigger campaigns, and integrate with your existing tools seamlessly.Quick Start
Get up and running in 5 minutes
Authentication
Learn how to authenticate your requests
Subscribers API
Manage your subscriber list
Postman Collection
Download and test the API
Base URL
All API requests should be made to the following base URL:Production
Development
Authentication
All API endpoints (except public endpoints like Health Check and Plans) require authentication using a Bearer token.
Getting Your API Key
- Log in to your MailGreet Dashboard
- Navigate to Settings → Integrations
- Click “Generate New API Key”
- Copy and securely store your API key
Using Your API Key
Include your API key in theAuthorization header of every request:
Test Your Authentication
Before making other requests, verify your API key is working:Quick Start
Get started with the MailGreet API in just a few steps:Your First API Call
Here’s how to create a subscriber:Response Format
All API responses follow a consistent JSON structure:Success Response
Error Response
HTTP Status Codes
| Status Code | Description |
|---|---|
200 | Success - Request completed successfully |
201 | Created - Resource created successfully |
400 | Bad Request - Invalid request parameters |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - API key lacks required permissions or limit exceeded |
404 | Not Found - Resource doesn’t exist |
422 | Unprocessable Entity - Validation error |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error - Something went wrong on our end |
Rate Limiting
To ensure fair usage and maintain API stability, requests are rate-limited based on your plan:| Plan | Rate Limit |
|---|---|
| Free | 60 requests/minute |
| Starter | 300 requests/minute |
| Pro | 600 requests/minute |
| Enterprise | Custom |
429 Too Many Requests response with a Retry-After header indicating when you can retry.
Pagination
List endpoints support pagination with the following query parameters:| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number |
per_page | integer | 20 | Items per page (max: 100) |
Available Endpoints
Authentication
Test API key authentication
Subscribers
Create, read, update, delete subscribers
Health Check
Check API availability (no auth required)
Plans
View available subscription plans
Postman Collection
We provide a complete Postman collection for testing all API endpoints.Download Postman Collection
Import into Postman and start testing immediately
Setup Instructions
- Import the Collection: Download the JSON file and import it into Postman
- Set Variables: Configure the following collection variables:
base_url: Your API base URLapi_key: Your MailGreet API key
- Start Testing: Run any request to test the API
SDKs & Libraries
Official SDKs are coming soon! In the meantime, you can use the API directly with any HTTP client.
Community Libraries
| Language | Library | Status |
|---|---|---|
| JavaScript/Node.js | Coming Soon | 🚧 |
| Python | Coming Soon | 🚧 |
| PHP | Coming Soon | 🚧 |
| Ruby | Coming Soon | 🚧 |

