Skip to main content
POST
/
v1
/
emails
/
validate
/
compatibility
Check Email Compatibility
curl --request POST \
  --url https://api.migma.ai/v1/emails/validate/compatibility \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "html": "<string>",
  "clients": [
    "<string>"
  ]
}
'
{
  "success": true,
  "data": {
    "clientIssues": [
      {
        "client": "<string>",
        "issues": [
          {}
        ],
        "warnings": [
          {}
        ]
      }
    ],
    "summary": {
      "totalErrors": 123,
      "totalWarnings": 123,
      "compatibilityScore": 123
    },
    "supportedClients": [
      "<string>"
    ],
    "metadata": {
      "processingTime": 123,
      "clientsTested": 123
    }
  }
}

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

clients
string[]

Specific email clients to test (optional, defaults to all 40+ clients)

Response

Compatibility check completed

success
boolean
data
object