Returns the current state of a spam test. A Retry-After: 10 header is set when the test is still processing.
Security
basicAuth
- US Mailgunhttps://api.mailgun.net/v1/inspect/spam/{spam_test_id}
- EU Mailgunhttps://api.eu.mailgun.net/v1/inspect/spam/{spam_test_id}
curl -i -X GET \
-u '<username>:<password>' \
'https://api.mailgun.net/v1/inspect/spam/{spam_test_id}'Response
- github.com-mailgun-inspect-internal-spam-SpamTestResults
- null
{ "meta": {}, "item": { "id": "67a654ba0f53254b9fdca3e2", "status": "completed", "subject": "Welcome to Mailgun", "region": "us1", "results": { … }, "created_at": "2026-03-11T10:00:00Z", "updated_at": "2026-03-11T10:01:30Z" }, "links": {} }