Skip to main content

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

Authentication

All API endpoints (except public endpoints like Health Check and Plans) require authentication using a Bearer token.

Getting Your API Key

  1. Log in to your MailGreet Dashboard
  2. Navigate to SettingsIntegrations
  3. Click “Generate New API Key”
  4. Copy and securely store your API key
Your API key grants full access to your account. Keep it secure and never expose it in client-side code or public repositories.

Using Your API Key

Include your API key in the Authorization header of every request:

Test Your Authentication

Before making other requests, verify your API key is working:
Successful Response:

Quick Start

Get started with the MailGreet API in just a few steps:
1

Get Your API Key

Generate your API key from the Integrations page in your dashboard.
2

Test Authentication

Verify your API key works by calling the /test-auth endpoint.
3

Create Your First Subscriber

Add a subscriber using the Subscribers API.
4

Start Building

Explore the full API to build powerful integrations.

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


Rate Limiting

To ensure fair usage and maintain API stability, requests are rate-limited based on your plan: When you exceed the rate limit, you’ll receive a 429 Too Many Requests response with a Retry-After header indicating when you can retry.
Implement exponential backoff in your applications to handle rate limiting gracefully.

Pagination

List endpoints support pagination with the following query parameters: Paginated Response:

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

  1. Import the Collection: Download the JSON file and import it into Postman
  2. Set Variables: Configure the following collection variables:
    • base_url: Your API base URL
    • api_key: Your MailGreet API key
  3. 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


Need Help?

Support

Contact our support team

Documentation

Browse the full documentation