Perform a deliverability check
Generates a a deliverability report for the specified email. The domain of the sender is checked to ensure the deliverability of the email. Content of the email is also checked to highlight issues that may cause the email to be marked as illegitimate. Content is also checked via SpamAssassin which is one of the most common spam checkers on the market, these results can be used to understand how common spam checkers will view your email.
Path parameters
- Name
id
- Type
string
- Required
required
- Description
- The identifier of the email to be analyzed.
GET /api/analysis/deliverability/:id
curl \
-u api:YOUR_API_KEY \
https://mailosaur.com/api/analysis/deliverability/MESSAGE_ID
{
"spf": {
"result": "Pass",
"description": null,
"rawValue": null,
"tags": {}
},
"dkim": [
{
"result": "Pass",
"description": null,
"rawValue": null,
"tags": {}
}
],
"dmarc": {
"result": "Pass",
"description": null,
"rawValue": "v=DMARC1; p=reject; rua=mailto:dmarc@abc1234.mailosaur.net;",
"tags": {
"v": "DMARC1",
"p": "reject",
"rua": "mailto:dmarc@abc1234.mailosaur.net"
}
},
"blockLists": [
{
"id": "ABC123",
"name": "ABC",
"result": "Pass"
},
{
"id": "DEF123",
"name": "DEF",
"result": "Warning"
},
{
"id": "GHI123",
"name": "GHI",
"result": "Fail"
},
],
"content": {
"embed": false,
"iframe": false,
"object": false,
"script": false,
"shortUrls": false,
"textSize": 123,
"totalSize": 3456,
"missingAlt": false,
"missingListUnsubscribe": false
},
"dnsRecords": {
"a": [
"mailosaur.net. 30 IN A 192.168.1.1"
],
"mx": [
"mailosaur.net. 30 IN MX 0 mailosaur.net."
],
"ptr": []
},
"spamAssassin": {
"score": 0,
"result": "Pass",
"rules": [
{
"score": 0.0,
"rule": "ABC123",
"description": "ABC123"
}
]
}
}
Perform a spam test
Perform spam testing on the specified email.
Path parameters
- Name
id
- Type
string
- Description
- The identifier of the email to be analysed.
GET /api/analysis/spam/:id
curl \
-u api:YOUR_API_KEY \
https://mailosaur.com/api/analysis/spam/MESSAGE_ID
{
"spamFilterResults": {
"spamAssassin": [
{
"score": 0,
"rule": "ABC123",
"description": "ABC123"
}
]},
"score": 0
}