Mailgun Email Preview service with RESTful JSON HTTP API for providing email previews.
Mailgun Inspect/API Documentation//
- Retrieve Export Job Details for Email Preview Test Screenshots
List Clients
Get Test Results
Reprocess Emailpreview Test
Get Test Content (empty)
Get Test Content
Generate Preview Address
List/Search Tests V2
Create Email Preview Test V2
Get Test Results by client ID V2
Get Emailpreview Test Information V2
Delete Emailpreview Test V2
Retrieve Export Job Details for Email Preview Test Screenshots
Create Export Job for Email Preview Test Screenshots
Generate Preview Address
Create PreviewShare
Get PreviewShare
Update PreviewShare
Delete PreviewShare
Rotate PreviewShare
Returns PreviewShare record by UUID.
List Emailpreview Tests
Create Emailpreview Test
Get Emailpreview Test Info
Delete Emailpreview Test
Retrieve Export Job Detai...
Email Preview API (1.0.0)
Download OpenAPI description
Languages
Servers
US Mailgun
https://api.mailgun.net/
EU Mailgun
https://api.eu.mailgun.net/
Code Analysis
The Code Analysis API analyzes HTML email content to detect CSS features and provides comprehensive compatibility reports across major email clients, including support statistics, version-specific compatibility data, and detailed feature breakdowns to ensure optimal email rendering.
Operations
- US Mailgun
https://api.mailgun.net/v2/preview/tests/{test_id}
- EU Mailgun
https://api.eu.mailgun.net/v2/preview/tests/{test_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
-u <username>:<password> \
'https://api.mailgun.net/v2/preview/tests/{test_id}'Response
application/json
{ "success": true }
- US Mailgun
https://api.mailgun.net/v2/preview/tests/{test_id}/exports/{job_id}
- EU Mailgun
https://api.eu.mailgun.net/v2/preview/tests/{test_id}/exports/{job_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.mailgun.net/v2/preview/tests/{test_id}/exports/{job_id}'Response
application/json
{ "job_id": "67b469d74b911fa30a4d782e", "test_id": "98b469d74b956fa30a4d125f", "clients": [ "android11_gmailapp_pixel5_dm", "android12_gmailapp_pixel6_dm" ], "job_status": "Completed", "zip_url": "https://example.com/export.zip" }
- US Mailgun
https://api.mailgun.net/v2/preview/tests/{test_id}/exports
- EU Mailgun
https://api.eu.mailgun.net/v2/preview/tests/{test_id}/exports
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.mailgun.net/v2/preview/tests/{test_id}/exports'Response
application/json
{ "job_id": "67b469d74b911fa30a4d782e", "test_id": "98b469d74b956fa30a4d125f", "clients": [ "android11_gmailapp_pixel5_dm", "android12_gmailapp_pixel6_dm" ], "job_status": "Completed", "zip_url": "https://example.com/export.zip" }