Skip to main content
POST
/
v1
/
emails
/
validate
/
links
Analyze Email Links
curl --request POST \
  --url https://api.migma.ai/v1/emails/validate/links \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "html": "<string>",
  "timeout": 10000,
  "followRedirects": true
}
'
{
  "success": true,
  "data": {
    "totalLinks": 123,
    "checkedLinks": [
      {
        "url": "<string>",
        "type": "<string>",
        "status": 123,
        "statusText": "<string>",
        "responseTime": 123,
        "error": "<string>"
      }
    ],
    "summary": {
      "workingLinks": 123,
      "brokenLinks": 123,
      "unreachableLinks": 123,
      "averageResponseTime": 123
    },
    "recommendations": [
      "<string>"
    ],
    "metadata": {
      "processingTime": 123,
      "linksChecked": 123,
      "linksSkipped": 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 containing links

timeout
integer
default:10000

Timeout per link in milliseconds

Required range: 1000 <= x <= 30000
followRedirects
boolean
default:true

Follow HTTP redirects when checking links

Response

Link analysis completed

success
boolean
data
object