List Emails

Retrieve and filter your sent emails.

Endpoint

GET https://getmailer.co/api/emails

Query Parameters

ParameterTypeDescription
limitnumberMax results to return (default: 20, max: 100)
offsetnumberNumber of results to skip (for pagination)
statusstringFilter by status (sent, delivered, bounced, etc.)
tagstringFilter by tag
fromstringFilter by sender email
tostringFilter by recipient email
sincestringISO 8601 datetime - only emails after this time

Response

{
  "emails": [
    {
      "id": "clx1abc123def456",
      "from": "[email protected]",
      "to": ["[email protected]"],
      "subject": "Welcome!",
      "status": "delivered",
      "tags": ["welcome"],
      "createdAt": "2024-01-15T10:30:00Z",
      "deliveredAt": "2024-01-15T10:30:02Z"
    }
  ],
  "total": 150,
  "limit": 20,
  "offset": 0
}

Email Status Values

StatusDescription
queuedEmail is queued for sending
sentEmail sent to the recipient's mail server
deliveredEmail accepted by recipient's mail server
bouncedEmail bounced (invalid address, full mailbox, etc.)
complainedRecipient marked email as spam
scheduledEmail is scheduled for future delivery

cURL Example

curl "https://getmailer.co/api/emails?limit=10&status=delivered&tag=welcome" \
  -H "Authorization: Bearer gm_your_api_key"

Get Single Email

Retrieve a specific email by its ID:

GET https://getmailer.co/api/emails/:id
curl "https://getmailer.co/api/emails/clx1abc123def456" \
  -H "Authorization: Bearer gm_your_api_key"

Related

List Emails - GetMailer Docs | GetMailer