This API provides functionality to create and manage email preview tests, as well as create shareable links.
Returns a list of clients that can perform an email preview. Response mimics https://api.emailonacid.com/docs/latest/email-clients
A 200 response
A 400 response
A 401 response
A 500 response
A 4xx response
{- "clients": {
- "android10_gmailapp_pixel4_dm": {
- "client": "Gmail App Pixel 4",
- "imageblocking": false,
- "default": true,
- "id": "android10_gmailapp_pixel4_dm",
- "os": "Android 10 (Dark Mode)",
- "category": "Mobile",
- "browser": "",
- "rotate": false,
- "free": false
}
}
}
Returns a list of email preview tests. Response mimics https://api.emailonacid.com/docs/latest/email-testing#get-tests
[- {
- "date": 0,
- "headers": {
- "": ""
}, - "id": "",
- "type": ""
}
]
Creates a new email preview test. Request and response mimics https://api.emailonacid.com/docs/latest/email-testing#create-test
{ "subject": "some subject", "url": "https://example.com" }
{- "id": "gmail"
}
Returns the results for the specified email preview test. Response mimics https://api.emailonacid.com/docs/latest/email-testing#get-results
null
Returns test info. Response mimics https://api.emailonacid.com/docs/5/0/email-testing#get-test
{- "bounced": [
- "string"
], - "subject": "string",
- "date": 0,
- "completed": [
- "string"
], - "processing": [
- "string"
]
}
Deletes the specified test. Response mimics https://api.emailonacid.com/docs/latest/email-testing#delete-test
{- "success": true
}
Reprocesses the test for the passed clients. Response mimics https://api.emailonacid.com/docs/5/0/email-testing#reprocess
null
Gets HTML content of the passed test. Response mimics https://api.emailonacid.com/docs/5/0/email-testing#get-test-content
{- "content": "string"
}
Gets HTML content of the passed test. Response mimics https://api.emailonacid.com/docs/5/0/email-testing#get-test-content
{- "content": "string"
}
{- "expires_at": "0001-01-01 00:00:00 +0000 UTC",
- "enabled": true,
- "test_id": "some-test-id",
- "url": "share.mailgun.com/email-previews/some-uuid",
- "url_uuid": "some-uuid"
}
Re-generates the uuid and share url, and resets the expiration.
{- "enabled": true,
- "url_uuid": "some-new-uuid",
- "url": "share.mailgun.com/email-previews/some-new-uuid",
- "expires_at": "0001-01-01 00:00:00 +0000 UTC",
- "test_id": "some-test-id"
}