Skip to main content
POST
/
v1
/
emails
/
validate
/
deliverability
Analyze Email Deliverability
curl --request POST \
  --url https://api.migma.ai/v1/emails/validate/deliverability \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "html": "<string>",
  "subject": "<string>",
  "fromName": "<string>",
  "fromEmail": "[email protected]"
}
'
{
  "success": true,
  "data": {
    "prediction": {
      "category": "inbox",
      "confidence": 123,
      "score": 123,
      "reasoning": "<string>"
    },
    "contentSignals": {
      "promotional": [
        "<string>"
      ],
      "transactional": [
        "<string>"
      ],
      "spam": [
        "<string>"
      ],
      "engagement": [
        "<string>"
      ]
    },
    "spamScore": {
      "score": 123,
      "triggers": [
        "<string>"
      ],
      "recommendations": [
        "<string>"
      ]
    },
    "recommendations": {
      "critical": [
        "<string>"
      ],
      "important": [
        "<string>"
      ],
      "suggested": [
        "<string>"
      ]
    },
    "metadata": {
      "processingTime": 123,
      "analysisType": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use 'Authorization: Bearer ' where the JWT token is obtained from the login endpoint.

Body

application/json
html
string
required

Email HTML content to analyze

subject
string

Email subject line

fromName
string

Sender name

fromEmail
string<email>

Sender email address

Response

Deliverability analysis completed

success
boolean
data
object