Retrieve results of Spam quality check for mailing with provided ID.
1 |
GET https://api.maileon.com/1.0/mailings/:mailingid/checks/spam |
Response
HTTP status code | Description |
---|---|
200 OK |
If everything was ok. |
404 Not found |
Mailing ID cannot be found or results are not available |
409 Conflict |
Mailing is sealed |
Example
200 OK
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
GET https://api.maileon.com/1.0/mailings/141/checks/spam 200 < ?xml version="1.0" encoding="UTF-8" standalone="yes"?> <spamcheck> <mailingid>141</mailingid> <timestamp>2016-03-24T18:29:29.297+01:00</timestamp> <state>warning</state> <results> <item> <completed>true</completed> <spam>false</spam> </item> <item> <completed>true</completed> <spam>true</spam> </item> <item> <completed>true</completed> <spam>false</spam> <details>Failed some message filters:<br />[MARKETING] Message was marked as a Marketing Email.</details> </item> <item> <completed>true</completed> <spam>false</spam> </item> <item> <completed>true</completed> <spam>false</spam> <details>SPAM score of <strong></strong></details> </item> <item> <completed>true</completed> <spam>false</spam> </item> </results> </spamcheck> |
404 Not Found
1 2 3 |
GET https://api.maileon.com/1.0/mailings/3108/checks/spam 404 <error><message>Mailing with id 3108 not found.</message></error> |
409 Conflict
1 2 3 |
GET https://api.maileon.com/1.0/mailings/3008/checks/spam 409 <error><message>Mailing with ID 3008 is sealed.</message></error> |