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

const migma = new Migma('YOUR_API_KEY');

const { data, error } = await migma.emails.getGenerationStatus(
  'CONVERSATION_ID'
);
{
  "success": true,
  "data": {
    "conversationId": "<string>",
    "status": "pending",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "error": "<string>",
    "result": {
      "subject": "<string>",
      "previewText": "<string>",
      "html": "<string>",
      "screenshotUrl": "<string>",
      "screenshotFullUrl": "<string>",
      "stats": {
        "imageCount": 123,
        "buttonCount": 123,
        "estimatedLength": "<string>",
        "colors": [
          "<string>"
        ]
      },
      "languages": [
        "<string>"
      ]
    }
  },
  "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 → API Integration.

Path Parameters

conversationId
string
required

The conversation ID returned from the generate endpoint

Response

Email status retrieved

success
boolean
required
data
object
error
string | null