Spam Tests API
Create and retrieve spam test results via API
The Spam Tests API is the core InboxIssue API for email deliverability testing. Use this API to create tests, send your emails, and view results.
Viewing Results: Spam test results are typically viewed on the shareable reports page in the InboxIssue dashboard. Each test has a unique URL you can share with your team or clients.
Create Spam Test
Create a new spam test with selected providers.
Request Body
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
spam_test.name | string | No | Human-readable test name |
provider_types | array | No | Provider types to include: consumer, business, protected |
You can also pass external_test parameters to create an external-style test through this endpoint. See External Tests API for that use case.
Response
Response Fields
| Field | Type | Description |
|---|---|---|
test.tracking_id | string | Public ID for the test — use this to retrieve results |
test.name | string | Test name |
test.source | string | Source identifier (if created as external test) |
test.metadata | object | Custom metadata (if provided) |
instructions.send_to | object | Email addresses grouped by provider type — send your test email to all of these |
Error Responses
422 — Invalid provider types:
503 — Email monitoring setup failed:
Get Spam Test
Retrieve a spam test by ID, public ID, or key.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Test ID, public ID (e.g., ABC123), or tracking key |
Response
Response Fields
| Field | Type | Description |
|---|---|---|
data.key | string | Tracking key for the test |
data.name | string | Test name |
data.test_results | array | Array of per-provider results |
test_results[].delivered_to | string | Delivery folder: INBOX, Spam, Promotions, etc. null if not yet received |
test_results[].dkim_pass | boolean | DKIM verification passed |
test_results[].spf_pass | boolean | SPF verification passed |
test_results[].dmarc_pass | boolean | DMARC policy check passed |
test_results[].to | string | Recipient email address |
test_results[].from | string | Sender email address |
Delivery folders: Gmail results may show INBOX, Spam, Promotions, Social, Updates, or Forums. Microsoft results show INBOX or Spam (mapped from Junk).
Additional Endpoints
List Email Services
Returns available email providers grouped by type.
Response
Reference
Delivery Folder Values
| Folder | Description |
|---|---|
INBOX | Primary inbox |
Spam | Spam or junk folder |
Promotions | Gmail Promotions tab |
Social | Gmail Social tab |
Updates | Gmail Updates tab |
Forums | Gmail Forums tab |
Authentication Results
Each result includes authentication analysis:
| Field | Type | Description |
|---|---|---|
spf_pass | boolean | SPF verification result |
dkim_pass | boolean | DKIM signature verification |
dmarc_pass | boolean | DMARC policy compliance |