Skip to content
GET
/v1/addresses/{address}/count
curl --request GET \
--url 'https://api.proxymail.qa/v1/addresses/k7f2x9ab12cd%40mailclub.dev/count?type=code&category=auth' \
--header 'Authorization: Bearer <token>' \
--header 'Proxy-Mail-QA-Test: sign-up%20%E2%80%BA%20sends%20one%20code'

How many emails reached the address since since, for checks such as “exactly one verification email”. Doesn’t wait. Each email is summarised by when it arrived, its sender and the kind of its main code or link, never its content. Count after the wait for the first email has returned, so a duplicate has time to arrive.

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
since
string format: date-time
<= 35 characters

Only email received at or after this time. Default: every email the address has received.

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 count

Media typeapplication/json
object
address
string
since
string | null format: date-time
count
integer
emails

The first 50, oldest first.

Array<object>

An email without its content: when it arrived, who sent it and the kind of its main code or link.

object
received_at
string format: date-time
service

Who sent it, e.g. Spotify.

string | null
service_domain
string | null
type
string | null
Allowed values: code link
subtype

Otp or coupon; verify, magic_signin, invite, reset or other.

string | null
email_id
string format: uuid
after_seconds

With since: how many seconds after it the email arrived.

integer
category

What kind of email; null for one from before categories were added.

string | null
Allowed values: auth transactional marketing
gap_seconds

Seconds since the previous matching email; null for the first.

integer | null
attachment_count

How many files are attached; null for an email from before they were recorded.

integer | null
attachments

Up to 5: each file’s type, extension and size in bytes (never its name), and a calendar invite’s method.

Array<object>
object
type
string
extension
string
size
integer
method
string

Example

{
"emails": [
{
"type": "code",
"category": "auth"
}
]
}

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.