Skip to content
GET
/v1/addresses/{address}/link
curl --request GET \
--url 'https://api.proxymail.qa/v1/addresses/k7f2x9ab12cd%40mailclub.dev/link?timeout=30&unused=false&expect_site=staging.example.com' \
--header 'Authorization: Bearer <token>' \
--header 'Proxy-Mail-QA-Run-Retry: true' \
--header 'Proxy-Mail-QA-Test: sign-up%20%E2%80%BA%20sends%20one%20code'

Returns the newest such link received since since, waiting up to timeout seconds. We never open links: whoever calls decides whether to. link_site says whether a verify, sign-in, invite or reset link goes back to the site the test started on.

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
timeout
integer
default: 30 <= 30

Seconds to wait for a match. 0 checks once.

service
string
<= 253 characters

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

since
string format: date-time
<= 35 characters

Only match email received at or after this time: the time just before you asked the app to send it, so a code or link from an earlier email can’t come back. Default: the last 15 minutes.

unused
boolean

True: only a code or link nobody has used yet. One counts as used once it’s returned by a wait, or opened, copied or filled in the app or Proxy Mail QA for Chrome.

expect_site
string
<= 2000 characters

The site the test started on, such as staging.example.com, localhost:3000 or myapp.bubbleapps.io/version-test, for link_site. Default: the site the address was created with.

Example

staging.example.com
type
string

Comma-separated: verify, magic_signin, invite, reset, or any (also other links). Default: the first four. unsubscribe is the email’s own unsubscribe or email-preferences link, and list_unsubscribe the List-Unsubscribe header’s (POST List-Unsubscribe=One-Click to it to do what Gmail’s Unsubscribe button does); asked for only by name.

app
boolean

True: only links that open an app (myapp://verify?…, Expo’s exp://…), for mobile tests. false: only web links. Left out: either; when an email has both for the same thing, the web link comes first.

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
Proxy-Mail-QA-Run-Retry
string
Allowed values: true

True when you’ll call again if nothing arrives (waits longer than 30 seconds), so only the last call’s “nothing arrived” is added to the run.

The link

Media typeapplication/json

A code or link and nothing else from the email.

object
address
string
type
string
Allowed values: code link
subtype

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

string
value

The code, or the link URL.

string
service

Who sent it, e.g. Spotify.

string | null
service_domain
string | null
received_at
string format: date-time
expires_at

Only when the email says how long it lasts.

string | null format: date-time
email_id
string format: uuid
after_seconds

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

integer
note

Set when this code or link was already used, and how to get a newer one.

string
link_site

Whether the verify, sign-in, invite or reset link goes back to the site the test started on (expect_site, or the address’s site), read from the link and the auth provider’s redirect without opening it. For a code, the email’s own links. Missing when there is no site or nothing to compare.

object
status
string
Allowed values: pass fail
problem

When it fails: a localhost link from a hosted site, another site, a preview or the published app instead of the other, plain http, or Bubble’s live app instead of version-test (bubble_live) or the other way (bubble_test).

string
Allowed values: local other_site preview published http bubble_live bubble_test
site

What it was compared with, as host and Bubble version.

string
goes_to

Where the link ends up, as host and Bubble version: never its path or query.

string | null
detail
string
time_to_email

How long the email took after the form was sent (POST /v1/addresses/{address}/submits), by our clock. Missing when no submit came in the 15 minutes before it.

object
submitted_at
string format: date-time
flow
string
Allowed values: sign_up sign_in reset magic_link other
site
string | null
source
string
Allowed values: extension agent
after_seconds

From the submit to the email reaching us.

number
their_seconds

The app and its email provider: from the submit to Cloudflare’s mail server, read from the Received header. Null when it couldn’t be read.

number | null
our_seconds

Proxy Mail QA: from Cloudflare’s mail server to the inbox.

number | null
emails_for_submit

Codes or links that one submit brought. 2 or more: the app sent twice.

integer
position

Which of them this is.

integer
after_wait_gave_up

A wait had already found nothing when it came.

boolean
usual

The site’s and flow’s last 30 days in this project.

object
submits
integer
arrived
integer
nothing

Submits that got no email.

integer
median_seconds

Before today.

number | null
today_median_seconds
number | null
slowest_seconds
number | null
slower_than_usual

Today’s median is more than twice the usual and over 5 seconds longer.

boolean
discount

Coupons only: the discount in our words, such as “20% off”, “$10 off” or “Free shipping”, when the email states one.

string | null
valid_until

Coupons only: the date the email says it is valid until.

string | null format: date

Example

{
"type": "code",
"link_site": {
"status": "pass",
"problem": "local",
"site": "staging.example.com",
"goes_to": "localhost:3000",
"detail": "After the auth step, the link sends people to localhost:3000, which only opens on the computer running that server, but the test started on staging.example.com."
},
"time_to_email": {
"flow": "sign_up",
"site": "staging.example.com/sign-up",
"source": "extension",
"after_seconds": 4.2,
"their_seconds": 3.7,
"our_seconds": 0.5,
"emails_for_submit": 1
}
}

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.

Nothing arrived in time, or the address isn’t in this project. hint says why as far as we can tell; after a wait, refused lists mail we turned away since since.

Media typeapplication/json
object
error
string
message
string
hint

What we refused, or the likeliest cause, such as an email provider in sandbox mode.

string
why

After a wait, which case it is: nothing_arrived (nothing reached Proxy Mail QA since the wait began: the app didn’t send it, a sandbox held it or the app is over a sending cap), no_match (email arrived, so the app is sending, but none matched), turned_away (refused, or turned away by Cloudflare’s mail servers), already_used (with unused, only a used one matched) or arrived_before_since (an unused one arrived shortly before since: up to 2 minutes before it, or before now when since is ahead of our clock; since was probably set after the form was sent, or is ahead; hint says when).

string
Allowed values: nothing_arrived no_match turned_away already_used arrived_before_since
refused

Mail we refused for the address, newest first. Refusals for the same reason within an hour share one entry with a count.

Array<object>
object
reason
string
Allowed values: too_large address_limit daily_limit blocked_site
first_at
string format: date-time
last_at
string format: date-time
count
integer
size_bytes

The largest refused message, in bytes.

integer | null
site

For blocked_site, the site the mail came from, such as Instagram.

string | null
shared_sender

When the last email came from a platform’s built-in sender rather than the app’s own email provider: which one, its cap and the fix. After a wait, only with why nothing_arrived.

object
platform
string
Allowed values: supabase firebase bubble glide base44 cognito auth0
name
string
cap

Its sending cap in a sentence, or null when none is published.

string | null
fix
string
docs
string format: uri
help
string format: uri

Example

{
"error": "not_found",
"why": "nothing_arrived",
"refused": [
{
"reason": "too_large"
}
],
"shared_sender": {
"platform": "supabase",
"name": "Firebase’s built-in email"
},
"help": "https://proxymail.qa/troubleshooting"
}

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.