Skip to content

Create Emailpreview Test
deprecated

Request

Creates a new email preview test.

WARNING: This endpoint is deprecated in favor of our V2 endpoint.

Security
basicAuth
Bodyapplication/jsonrequired
subjectstringrequired
htmlstring
mimestring
urlstring
transfer_encodingstring
charsetstring
reference_idstring
customer_idstring
clientsArray of strings
image_blockingboolean
headersobject
spamobject or null
content_checkingobject(github.com-mailgun-emailpreview-clients-preview-TestRequestContentChecking)
user_idstring
folder_idstring
project_namestring
curl -i -X POST \
  -u '<username>:<password>' \
  https://api.mailgun.net/v1/preview/tests \
  -H 'Content-Type: application/json' \
  -d '{
    "subject": "some subject",
    "url": "https://example.com",
    "content_checking": {}
  }'

Responses

A 200 response

Bodyapplication/json
idstring
reference_idstring
customer_idstring
spamobject or null
warningsArray of objects(github.com-mailgun-emailpreview-clients-preview-Warning)
content_checkinggithub.com-mailgun-emailpreview-clients-preview-ContentCheckingResult (object) or null
Any of:
Response
{ "id": "gmail" }