Skip to content

Get Spam Test (V1)

Request

Returns the current state of a spam test. A Retry-After: 10 header is set when the test is still processing.

Security
basicAuth
Path
spam_test_idstringrequired

ID of the spam test

curl -i -X GET \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v1/inspect/spam/{spam_test_id}'

Responses

A 200 response

Bodyapplication/json
metaobject(github.com-mailgun-inspect-internal-spam-ResponseMeta)required
itemobject(github.com-mailgun-inspect-internal-spam-SpamTestResource)required
Response
{ "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": {} }