Skip to main content
POST
/
v1
/
emails
/
validate
/
all
Run All Validation Checks
curl --request POST \
  --url https://api.migma.ai/v1/emails/validate/all \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "html": "<string>",
  "subject": "<string>",
  "options": {
    "checkCompatibility": true,
    "checkLinks": true,
    "checkSpelling": true,
    "checkDeliverability": true,
    "clients": [
      "<string>"
    ],
    "languages": [
      "<string>"
    ]
  }
}
'
{
  "success": true,
  "data": {
    "overallScore": 123,
    "compatibility": {},
    "linkAnalysis": {},
    "spelling": {},
    "deliverability": {},
    "summary": {
      "criticalIssues": 123,
      "warnings": 123,
      "passed": [
        "<string>"
      ],
      "failed": [
        "<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 validate

subject
string

Email subject line

options
object

Response

All validations completed

success
boolean
data
object