Skip to content
GET
/v1/addresses/{address}/checks
curl --request GET \
--url 'https://api.proxymail.qa/v1/addresses/k7f2x9ab12cd%40mailclub.dev/checks?expect_host=staging.example.com&expect_site=myapp.bubbleapps.io%2Fversion-test&expect_text=Welcome%2C%20Maya&expect_language=de&expect_attachment=.pdf&expect_within=5m&type=code&category=auth' \
--header 'Authorization: Bearer <token>' \
--header 'Proxy-Mail-QA-Test: sign-up%20%E2%80%BA%20sends%20one%20code'

Runs checks on one email the address received: the one named by email_id, or the newest matching the filters. Doesn’t wait: wait for the email first (/code, /link or /count). Each check passes, fails, warns or is skipped, with a one-line reason: SPF, DKIM and DMARC (the receiving server’s verdicts), links to localhost or a private address (also after a redirect), plain http links, the site its sign-in, verify, reset or invite link goes to (expect_host), whether that link goes back to the site the test started on (link_site: expect_site, or the address’s site), whether it says when its sign-in code or link expires and when a coupon ends, a plain-text version, the HTML’s size against Gmail’s 102 KB limit, image-only emails, whether it fits a phone, and, when asked, given phrases (expect_text) and the language (expect_language). A marketing email also gets list_unsubscribe, one_click_unsubscribe, unsubscribe_link and preheader; other emails skip them. Verdicts only: never the email’s text or its links (reasons name at most a domain or a link’s host).

address
required
string format: email
<= 254 characters

The test address, URL-encoded. A variant also works: capitals, or a +tag (k7f2x9ab12cd+o’brien@mailclub.dev). It acts on the plain address; waiting on a +tag variant, or listing its messages, only finds mail sent to that variant.

Example

k7f2x9ab12cd@mailclub.dev
email_id
string format: uuid
<= 36 characters

The email to check, as /count gives it. Default: the newest that matches.

since
string format: date-time
<= 35 characters

Only email received at or after this time.

expect_host
string
<= 268 characters

The site its sign-in, verify, reset or invite link should go to, after any redirect (subdomains count). Without it, that check is skipped.

Example

staging.example.com
expect_site
string
<= 2000 characters

The site the test started on, for link_site. Default: the site the address was created with; without either, link_site is skipped.

Example

myapp.bubbleapps.io/version-test
expect_text
Array<string>
<= 10 items

A phrase the subject or body should contain; repeat for more (up to 10). Case, curly quotes and spacing don’t matter, and the answer names only the missing ones.

Example

?expect_text=Welcome%2C%20Maya
expect_language
string
<= 12 characters

The language it should be in, such as de or pt-BR. Without it, that check is skipped.

Example

de
expect_attachment
Array<string>
<= 5 items

Repeat for each attachment it should have: a type (application/pdf, image/), an extension (.ics) or a file name with * (invoice-.pdf) (expected_attachment).

Example

?expect_attachment=.pdf
expect_within
string
<= 8 characters

With since: how soon after it the email should arrive, such as 90s, 5m, 2h or a number of seconds (arrival_time). Without it, that check is skipped.

Example

5m
service
string
<= 253 characters

Only email from this service, by name or domain (e.g. ‘spotify’).

type
string
Allowed values: code link

Only emails with a code, or with a link. Codes leave out coupons, and links count verify, magic_signin, invite and reset, unless subtype says otherwise.

subtype
string

With type, comma-separated: otp or coupon for codes; verify, magic_signin, invite, reset, other, unsubscribe or list_unsubscribe for links; or any (for links: the sign-in kinds and other).

category
string
Allowed values: auth transactional marketing

Only sign-in emails (auth), receipts and notices (transactional), or offers and newsletters (marketing). Emails that arrived before categories were added have none and never match.

Proxy-Mail-QA-Run
string format: uuid
<= 36 characters

A run’s id (POST /v1/runs): adds what this call saw to the run. If it can’t be added (the run finished, or isn’t in this project), the call still works and the Proxy-Mail-QA-Run-Warning response header says why.

Proxy-Mail-QA-Test
string
<= 600 characters

With Proxy-Mail-QA-Run: the test this call belongs to, percent-encoded (encodeURIComponent), up to 200 characters once decoded. The run’s report shows it beside what the call saw.

Example

sign-up%20%E2%80%BA%20sends%20one%20code

The checks

Media typeapplication/json
object
address
string
email

Which email was checked, without its content.

object
id
string format: uuid
received_at
string format: date-time
service
string | null
service_domain
string | null
type

Its main code or link.

string | null
Allowed values: code link
subtype
string | null
category

Sign-in, transactional or marketing; null for an email from before types.

string | null
Allowed values: auth transactional marketing
passed

No check failed. Warnings don’t count.

boolean
failed
Array<string>
warnings
Array<string>
checks
Array<object>
object
check
string
Allowed values: spf dkim dmarc shared_sender local_links plain_http expected_host link_site expiry coupon_expiry plain_text size images_only layout expected_text language arrival_time expected_attachment list_unsubscribe one_click_unsubscribe unsubscribe_link preheader after_unsubscribe offer_reuse coupon_result marketing_consent prechecked_consent double_opt_in unsubscribe_deadline postal_address sender_identity minor_marketing harmful_attachment spam_risk misleading_subject ad_label code_length link_length auth_length subject_length one_action
status
string
Allowed values: pass fail warn skip
detail
string
inbox_score

Spam_risk only: the inbox score out of 10, where 10 is good: 10 less the points of the markers below. 5 or below fails (likely rejected or sent to spam); 8.5 or below warns.

number
score

Spam_risk only. Deprecated: the spam points, adding up the markers below (inbox_score is 10 less this). Kept until the next major version.

number
markers

Spam_risk only: what lowers the inbox score, most points first, such as no_dkim or shortener; points is what each takes off.

Array<object>
object
id
string
points
number

Example

{
"email": {
"type": "code",
"category": "auth"
},
"checks": [
{
"check": "spf",
"status": "pass",
"detail": "The sending server is allowed to send for acme.example."
}
]
}

An error

Media typeapplication/json
object
error

What went wrong, as a code, such as bad_request (400), unauthorized (401), plan_required (402), forbidden (403), not_found (404), method_not_allowed (405), conflict (409), content_too_large (413), rate_limited, daily_limit or account_held (429), or server_error (500).

string
message

What went wrong and what to do, in words.

string

Example generated

{
"error": "example",
"message": "example"
}

No API key, or one that isn’t valid: it may have been revoked, or its creator no longer has access to the project.

Media typeapplication/json
object
error

What went wrong, as a code, such as bad_request (400), unauthorized (401), plan_required (402), forbidden (403), not_found (404), method_not_allowed (405), conflict (409), content_too_large (413), rate_limited, daily_limit or account_held (429), or server_error (500).

string
message

What went wrong and what to do, in words.

string

Example generated

{
"error": "example",
"message": "example"
}
WWW-Authenticate
string

Bearer realm="proxymail-qa", with error="invalid_token" when a key was sent but isn’t valid.

An error

Media typeapplication/json
object
error

What went wrong, as a code, such as bad_request (400), unauthorized (401), plan_required (402), forbidden (403), not_found (404), method_not_allowed (405), conflict (409), content_too_large (413), rate_limited, daily_limit or account_held (429), or server_error (500).

string
message

What went wrong and what to do, in words.

string

Example generated

{
"error": "example",
"message": "example"
}

Too many requests. With a Retry-After header, a per-minute limit was reached: the key’s requests (60 a minute on Free, 600 on Team), password reveals (30 a minute per person), or keys that aren’t valid from one network (120 a minute). Without one, error says which longer limit: daily_limit, the space’s new addresses for today (50 on Free), until midnight UTC; account_held, 10 addresses a day while a Free account’s recent use is looked at; or rate_limited when something is full, such as a project’s 50 custom fields.

Media typeapplication/json
object
error

What went wrong, as a code, such as bad_request (400), unauthorized (401), plan_required (402), forbidden (403), not_found (404), method_not_allowed (405), conflict (409), content_too_large (413), rate_limited, daily_limit or account_held (429), or server_error (500).

string
message

What went wrong and what to do, in words.

string

Example generated

{
"error": "example",
"message": "example"
}
Retry-After
integer
>= 1

Seconds to wait before trying again. Sent with per-minute limits only.