Skip to main content
GET
/
v1
/
emails
/
{emailId}
/
logs
Node.js SDK
import Migma from 'migma';

const migma = new Migma('YOUR_API_KEY');

const { data } = await migma.emails.logs('EMAIL_ID', { limit: 50 });
console.log(data.emails);
{
  "success": true,
  "data": {
    "emails": [
      {
        "id": 123,
        "tracking_id": "<string>",
        "domain": "<string>",
        "from_email": "<string>",
        "to_email": "<string>",
        "subject": "<string>",
        "status": "<string>",
        "opened_at": "<string>",
        "clicked_at": "<string>",
        "open_count": 123,
        "click_count": 123,
        "bounce_type": "<string>",
        "complaint_type": "<string>",
        "created_at": "<string>"
      }
    ],
    "nextCursor": "<string>",
    "hasMore": true
  },
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → Developers → API Keys.

Path Parameters

emailId
string
required

Email ID returned in generation status result.emails[].emailId.

Pattern: ^[0-9a-fA-F]{24}$

Query Parameters

limit
integer

Max rows per page (capped at 100).

Required range: 1 <= x <= 100
cursor
string

Pagination cursor from a previous response's nextCursor.

status
enum<string>

Filter rows by delivery/engagement status.

Available options:
delivered,
opened,
clicked,
bounced,
complained,
suppressed,
sent

Response

Email send log

success
boolean
required
data
object
error
string | null