Analytics and deliverability
Sending statistics, engagement analytics and deliverability reports.
/v1/transactional/analytics/advanced/geographicAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
date-timedate-time"opened"Response Body
application/json
curl -X GET "https://example.com/v1/transactional/analytics/advanced/geographic"[ { "countryCode": "string", "city": "string", "eventCount": 0, "uniqueUsers": 0, "isProxy": true }]/v1/transactional/analytics/advanced/devicesAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
date-timedate-time"opened"Response Body
application/json
curl -X GET "https://example.com/v1/transactional/analytics/advanced/devices"[ { "deviceType": "string", "browser": "string", "emailClient": "string", "eventCount": 0, "uniqueUsers": 0, "isProxy": true }]/v1/transactional/analytics/advanced/time-of-dayAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
date-timedate-time"opened"Response Body
application/json
curl -X GET "https://example.com/v1/transactional/analytics/advanced/time-of-day"[ { "hour": 0, "dayOfWeek": 0, "eventCount": 0 }]/v1/transactional/analytics/advanced/email-clientsAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
date-timedate-timeResponse Body
application/json
curl -X GET "https://example.com/v1/transactional/analytics/advanced/email-clients"[ { "emailClient": "string", "opens": 0, "clicks": 0, "uniqueUsers": 0, "isProxy": true }]/v1/transactional/analytics/advanced/engagement-heatmapAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
date-timedate-timeResponse Body
application/json
curl -X GET "https://example.com/v1/transactional/analytics/advanced/engagement-heatmap"[ { "hour": 0, "dayOfWeek": 0, "opens": 0, "clicks": 0 }]/v1/transactional/analytics/advanced/export/excelAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
date-timedate-timeResponse Body
application/json
curl -X GET "https://example.com/v1/transactional/analytics/advanced/export/excel"{ "fileContents": "string", "contentType": null, "fileDownloadName": null, "lastModified": null, "entityTag": null, "enableRangeProcessing": true}/v1/transactional/analytics/advanced/export/pdfAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
date-timedate-timeResponse Body
application/json
curl -X GET "https://example.com/v1/transactional/analytics/advanced/export/pdf"{ "fileContents": "string", "contentType": null, "fileDownloadName": null, "lastModified": null, "entityTag": null, "enableRangeProcessing": true}/v1/transactional/analytics/events/summaryAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
Start date (default: 30 days ago)
date-timeEnd date (default: now)
date-timeAlias for 'from' - for frontend compatibility
date-timeAlias for 'to' - for frontend compatibility
date-timeFilter by email type: 0 = Transactional, 1 = Marketing, null = all
Value in
- "transactional"
- "marketing"
If true, bypasses cache and fetches fresh data
falseResponse Body
application/json
curl -X GET "https://example.com/v1/transactional/analytics/events/summary"{ "from": "2019-08-24T14:15:22Z", "to": "2019-08-24T14:15:22Z", "sent": 0, "delivered": 0, "opened": 0, "clicked": 0, "bounced": 0, "complained": 0, "totalClicks": null, "uniqueLinkClicks": null, "uniqueClickers": null, "filteredBotClicks": null, "clicksFrom": null, "clicksTo": null, "source": "string", "data_source": "string", "fallback_reason": null, "is_degraded": true, "queryTimeMs": 0}/v1/transactional/analytics/stats/dailyAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
Start date (default: the last 7 whole UTC days, the dashboard's window)
date-timeEnd date (default: end of today, UTC)
date-timeAlias for 'from' - for frontend compatibility
date-timeAlias for 'to' - for frontend compatibility
date-timeFilter by email type: 0 = Transactional, 1 = Marketing, null = all
Value in
- "transactional"
- "marketing"
Response Body
application/json
curl -X GET "https://example.com/v1/transactional/analytics/stats/daily"[ { "date": "2019-08-24T14:15:22Z", "sent": 0, "delivered": 0, "opened": 0, "clicked": 0, "bounced": 0 }]/v1/transactional/analytics/links/topAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
Start date (default: 30 days ago)
date-timeEnd date (default: now)
date-timeAlias for 'from' - for frontend compatibility
date-timeAlias for 'to' - for frontend compatibility
date-timeMaximum number of links to return (default: 10)
^-?(?:0|[1-9]\d*)$int3210Filter by email type: 0 = Transactional, 1 = Marketing, null = all
Value in
- "transactional"
- "marketing"
Response Body
application/json
curl -X GET "https://example.com/v1/transactional/analytics/links/top"[ { "url": "string", "clicks": 0, "uniqueRecipients": 0 }]/v1/transactional/analytics/ratesAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
Start date (default: 30 days ago)
date-timeEnd date (default: now)
date-timeAlias for 'from' - for frontend compatibility
date-timeAlias for 'to' - for frontend compatibility
date-timeFilter by email type: 0 = Transactional, 1 = Marketing, null = all
Value in
- "transactional"
- "marketing"
Response Body
application/json
curl -X GET "https://example.com/v1/transactional/analytics/rates"{ "from": "2019-08-24T14:15:22Z", "to": "2019-08-24T14:15:22Z", "deliveryRate": 0, "openRate": 0, "clickRate": 0}/v1/transactional/analytics/proxy-shareAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
Start date (default: 30 days ago)
date-timeEnd date (default: now)
date-timeAlias for 'from'
date-timeAlias for 'to'
date-timeFilter by email type: 0 = Transactional, 1 = Marketing, null = all
Value in
- "transactional"
- "marketing"
Response Body
application/json
curl -X GET "https://example.com/v1/transactional/analytics/proxy-share"{ "from": null, "to": null, "openedMessages": 0, "proxyOnlyMessages": 0, "proxyShare": 0, "byProvider": { "google": 0, "yahoo": 0, "apple": 0 }}/v1/transactional/analytics/volume/hourlyAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
Number of days to look back (default: 7, max: 30)
^-?(?:0|[1-9]\d*)$int327Response Body
application/json
curl -X GET "https://example.com/v1/transactional/analytics/volume/hourly"[ { "hour": "2019-08-24T14:15:22Z", "sent": 0, "baseline": null }]/v1/deliverability/scoreAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Response Body
application/json
curl -X GET "https://example.com/v1/deliverability/score"{ "totalScore": 0, "label": "string", "hasSufficientData": true, "totalSentLast30Days": 0, "dnsScore": { "name": "string", "score": 0, "maxScore": 0, "detail": "string" }, "bounceScore": { "name": "string", "score": 0, "maxScore": 0, "detail": "string" }, "complaintScore": { "name": "string", "score": 0, "maxScore": 0, "detail": "string" }, "engagementScore": { "name": "string", "score": 0, "maxScore": 0, "detail": "string" }, "engagementIncluded": true, "calculatedAt": "2019-08-24T14:15:22Z"}/v1/deliverability/overviewAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
Period: 7, 30, or 90 days (default: 30)
^-?(?:0|[1-9]\d*)$int3230Response Body
application/json
curl -X GET "https://example.com/v1/deliverability/overview"{ "totalSent": 0, "totalDelivered": 0, "totalBounced": 0, "totalPlatformRefused": 0, "totalAttemptsExpired": 0, "totalMarketingSent": 0, "totalComplained": 0, "totalOpened": 0, "totalClicked": 0, "totalUnsubscribed": 0, "deliveryRate": 0, "bounceRate": 0, "complaintRate": 0, "openRate": 0, "clickRate": 0, "unsubscribeRate": 0}/v1/deliverability/trendsAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
Period: 7, 30, or 90 days (default: 30)
^-?(?:0|[1-9]\d*)$int3230Response Body
application/json
curl -X GET "https://example.com/v1/deliverability/trends"[ { "date": "2019-08-24T14:15:22Z", "sent": 0, "delivered": 0, "bounced": 0, "complained": 0, "opened": 0, "deliveryRate": 0, "bounceRate": 0, "complaintRate": 0, "openRate": 0 }]/v1/deliverability/providersAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
Period: 7, 30, or 90 days (default: 30)
^-?(?:0|[1-9]\d*)$int3230Max number of domains (default: 10, max: 50)
^-?(?:0|[1-9]\d*)$int3210Response Body
application/json
curl -X GET "https://example.com/v1/deliverability/providers"[ { "domain": "string", "sent": 0, "delivered": 0, "bounced": 0, "opened": 0, "clicked": 0, "complained": 0, "deliveryRate": 0, "openRate": 0, "bounceRate": 0 }]/v1/deliverability/bounce-breakdownAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
Period: 7, 30, or 90 days (default: 30)
^-?(?:0|[1-9]\d*)$int3230Response Body
application/json
curl -X GET "https://example.com/v1/deliverability/bounce-breakdown"{ "hardBounces": 0, "softBounces": 0, "blockedBounces": 0, "unknownBounces": 0, "platformRefusedBounces": 0, "attemptsExpiredBounces": 0, "totalBounces": 0, "topReasons": [ { "reason": "string", "count": 0 } ]}/v1/deliverability/dns-statusAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Response Body
application/json
curl -X GET "https://example.com/v1/deliverability/dns-status"[ { "domainId": "string", "domainName": "string", "spfStatus": "string", "dkimStatus": "string", "dmarcStatus": "string", "lastCheckedAt": null, "isFullyAuthenticated": true }]/v1/deliverability/score/historyAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Query Parameters
Number of days of history (default: 30, max: 90)
^-?(?:0|[1-9]\d*)$int3230Response Body
application/json
curl -X GET "https://example.com/v1/deliverability/score/history"[ { "date": "2019-08-24", "totalScore": 0, "label": "string", "dnsScore": 0, "bounceScore": 0, "complaintScore": 0, "engagementScore": 0, "bounceRate": 0, "complaintRate": 0, "openRate": 0, "deliveryRate": 0, "totalSent": 0, "hasSufficientData": true }]/v1/deliverability/recommendationsAuthorization
ApiKey Your API key, created in the dashboard under API keys. Production sending keys start with ml_pet_ (transactional) or ml_pem_ (marketing); sandbox keys with ml_set_ or ml_sem_.
In: header
Response Body
application/json
curl -X GET "https://example.com/v1/deliverability/recommendations"[ { "id": "string", "category": "string", "severity": "string", "titleKey": "string", "descriptionKey": "string", "actionUrl": null, "impact": 0, "parameters": null }]