List spam tests
Returns spam tests belonging to your project. Results are paginated (10 per page, page is zero-indexed) and can be sorted.
order_by— field to sort by.created_at(default) sorts by the test creation date;scoresorts by the final score (the same value exposed asfinal_scoreon each item —btob_scorefor B2B tests,btoc_scorefor B2C, otherwise the rawscore).order— sort direction,ascordesc. Defaults todesc.search— full-text query matched against the testsubjectand senderfrom.
Omit order_by/order to keep the default ordering: newest first (created_at desc).
Note: when
searchandorder_by=scoreare combined, results are sorted by the rawscore(the search index can only sort indexed fields), which differs fromfinal_scoreonly forbtob/btoctests. The non-search list always sorts by the exactfinal_score.
- Type: integerFormat: int32pagerequired
Zero-indexed page number. Each page contains up to 10 spam tests.
- Type: integerFormat: int32automated
_test _id Only return spam tests associated with the given automated test.
- Type: stringsearch
Filter spam tests by subject or sender email.
- Type: stringenumorder
_by Field to sort by.
created_at(default) orscore(the final score). Omit for newest-first.values- created
_at - score
- Type: stringenumorder
Sort direction,
ascordesc. Defaults todesc.values- asc
- desc
- application/json
- application/json
curl 'http://api.mailreach.co/api/v1/spam_tests?page=0&automated_test_id=1234&search=welcome%20email&order_by=score&order=desc' \
--header 'X-Api-Key: YOUR_SECRET_TOKEN'
[
{
"public_full_id": "mlrch-c7a47e3e94e98b6fd78d60a",
"public_id": "c7a47e3e94e98b6fd78d60a",
"results": [
{
"id": 6,
"email": "siobhan@reachsecret.com",
"desc": "Google Workspace with smart features",
"first_name": "Siobhan",
"provider": "gmail",
"received_in": "INBOX",
"raw_headers": "string"
}
],
"paid": true,
"created_at": "2026-04-24T12:09:25.365Z",
"first_message_content": "string",
"test_type": "btob",
"completed": false,
"score": 5.7,
"btob_score": 10,
"btoc_score": 0,
"final_score": 10,
"analysis_results": "string",
"domain": "string",
"summary": {
"INBOX": 16
},
"tld": "string",
"blacklist_links": [
"string"
],
"blacklist_sending_ip": [
"string"
],
"sending_provider": "google.com",
"sending_reverse_dns_value": "mail-sor-f41.google.com",
"automated": false,
"automated_test_id": 8,
"spam": false,
"seedlist": 1,
"is_warming": false,
"autofix_triggered": false,
"account": "string"
}
]