Get values for a sign-up form
const url = 'https://api.proxymail.qa/v1/form-values';const options = { method: 'POST', headers: { 'Proxy-Mail-QA-Test': 'sign-up%20%E2%80%BA%20sends%20one%20code', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"fields":[{"id":"example","type":"email","test_id":"example","html_id":"example","name":"example","label":"example","placeholder":"DD/MM/YYYY","autocomplete":"new-password","group":"Date of birth","pattern":"example","min_length":1,"max_length":1,"min":1,"max":1,"step":1,"required":true,"options":[{"value":"example","label":"example","disabled":true}],"multiple":true,"checked":true}],"address":"example","site":"staging.acme.dev","environment":"staging","page":"/signup","screen":"Team details","guess":"all","kyc_sandbox":"stripe","kyc_outcome":"pass","label":"example","age":"adult","date_of_birth":"2026-04-15","country":"example","one_name":true,"domain":"example","lifetime_days":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.proxymail.qa/v1/form-values \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Proxy-Mail-QA-Test: sign-up%20%E2%80%BA%20sends%20one%20code' \ --data '{ "fields": [ { "id": "example", "type": "email", "test_id": "example", "html_id": "example", "name": "example", "label": "example", "placeholder": "DD/MM/YYYY", "autocomplete": "new-password", "group": "Date of birth", "pattern": "example", "min_length": 1, "max_length": 1, "min": 1, "max": 1, "step": 1, "required": true, "options": [ { "value": "example", "label": "example", "disabled": true } ], "multiple": true, "checked": true } ], "address": "example", "site": "staging.acme.dev", "environment": "staging", "page": "/signup", "screen": "Team details", "guess": "all", "kyc_sandbox": "stripe", "kyc_outcome": "pass", "label": "example", "age": "adult", "date_of_birth": "2026-04-15", "country": "example", "one_name": true, "domain": "example", "lifetime_days": 1 }'What to type or pick in each field of a sign-up form, from a new test address made for it (201) or from one made earlier (address, 200). Send what the page says about each field: its type, name, label, placeholder, autocomplete, rules and a drop-down’s options. Each field gets a value: the email (and its confirmation), names, a username and a password that fit the field’s rules, the date of birth in the field’s format (or its day, month and year), and a country its drop-down offers. The project’s custom fields decide the fields they match (kind custom), and other fields get a guess from what they suggest (kind guess, as the project’s setting or guess says): check both before submitting. Fields never guessed (payment, phone and ID numbers, secrets, CAPTCHAs, consent boxes, uploads) get null and a note, unless a custom field fills them: every project has a ready-made Phone number (a number set aside for fiction, or the project’s own test number for the account’s country), and a lead can add ready-made ID and tax number fields. Send each screen’s fields as you reach it. What custom fields and guesses gave is kept on the address. A new address gets a date of birth when the form asks for one (adult unless age says otherwise) and a country the form offers; its password is saved on it and shown only in this answer. Proxy Mail QA never sees or fills in the page: you do.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”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.
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%20codeRequest Bodyrequired
Section titled “Request Bodyrequired”object
object
Your name for the field: it comes back with its value. Default: its position. Used to tell what the field is only when it has no name, label, placeholder or autocomplete.
The input type, select for a drop-down, textarea, or radio for a group of radio buttons (one field, with its options).
Example
emailIts data-testid (or data-test, data-test-id, data-cy, data-qa), which custom fields can match.
Its id attribute, which custom fields can match.
Example
DD/MM/YYYYExample
new-passwordWhat the group around it says, or the question a group of tick boxes answers. Send each tick box as a field of its own.
Example
Date of birthA number field’s minimum, or a date field’s earliest date (YYYY-MM-DD).
A number field’s maximum, or a date field’s latest date.
Whether the form requires it. Without it, a required asterisk or “(required)” in the label counts.
object
A drop-down that takes several answers: <select multiple>, or a list the page draws itself, such as a box of chips, sent as a combobox or text field. Send multiple: true on those too. Its answer comes back in values, with value null, and only a custom field set to several options fills it.
A checkbox: whether it is ticked as the page loads.
Use this address (made earlier) instead of making one, such as for the next screen of a sign-up. A password field there gets a new password, saved and returned once, only when the address has none saved; a saved one is not returned.
The site’s host, or the page’s address (which also gives page). Custom fields for one site apply only when it’s sent. A new address records it, as does an address made earlier that has no site yet.
Example
staging.acme.devWhich environment, such as staging, qa or local: recorded on a new address, and on one made earlier that has none yet.
Example
stagingThe page’s path, such as /signup/team, or its address (which also gives site): custom fields for one page apply only when it’s sent, it tells a sign-in or password reset form from a sign-up, and on a sign-up its path is added to the site’s sign-up screens as suggested, unless the list is full (20), when nothing is added. For a native app’s screen, send screen instead.
Example
/signupA native app screen’s name when the form isn’t a web page, such as Team details: it tells a sign-in or password reset screen from a sign-up, and on a sign-up it’s added to the site’s sign-up screens as suggested, or to the project’s app screens when no site matches, unless the list is full (20), when nothing is added. Send page for a web page instead; not both.
Example
Team detailsWhich fields nobody taught get a guess in this call: every field, required fields only, or none. Default: the project’s setting.
A KYC vendor whose sandbox values to use: a new address takes its names and date of birth, ID and business number fields get its values (kind sandbox; ID and tax number fields only where a ready-made custom field fills them), and kyc_sandbox in the answer lists them all. Only for that vendor’s test mode.
With kyc_sandbox: the result the test wants.
When the form asks for a date of birth and the address has none yet (always for a new one): the age. Default: adult.
When the form asks for a country and the address has none yet (always for a new one): where the persona lives; for a new address, JP, CN, IN, PK and ID also name it from that country’s lists. Default: one the form offers, which keeps the usual names.
For a new address: true for a persona with one name and no family name.
Responses
Section titled “Responses”Values from the address given
object
True when this call made the address.
object
A password this call made and saved on the address: for a new address, or a sign-up screen that asks for one when the address has none. Shown only here.
object
Last_name_reading, first_name_reading and full_name_reading: a name’s reading (furigana) in a Japanese form, in the kana and width the field asks for, for an account made with country JP. custom: a project’s custom field decided it (see rule). guess: nobody taught it, so it’s a guess from what the field suggests (see from); check it suits your test. sandbox: a KYC vendor’s sandbox value, from kyc_sandbox.
What to type, or the option’s value to pick. Null to leave it to you.
The custom field, for kind custom.
object
A tick box: tick it (true) or leave it unticked (false).
A field sent with multiple: the value of each option to select. value is null.
The custom field says to leave this field as it is.
What a guess came from.
One screen a site’s sign-up goes over: a page’s path, or a native app screen’s name.
object
Null for one of the app screens, which have no site.
The page’s path, or the native app screen’s name.
A short name people recognise.
Suggested: added by a fill or form-values, or waiting for a lead, and not kept yet.
Which screen of the sign-up it was, when known.
Example
{ "values": [ { "kind": "email", "from": "option" } ], "screen": { "kind": "path", "value": "/signup/team", "label": "Team details", "status": "kept", "origin": "added", "created_via": "app" }}Values from a new address made for this form
object
True when this call made the address.
object
A password this call made and saved on the address: for a new address, or a sign-up screen that asks for one when the address has none. Shown only here.
object
Last_name_reading, first_name_reading and full_name_reading: a name’s reading (furigana) in a Japanese form, in the kana and width the field asks for, for an account made with country JP. custom: a project’s custom field decided it (see rule). guess: nobody taught it, so it’s a guess from what the field suggests (see from); check it suits your test. sandbox: a KYC vendor’s sandbox value, from kyc_sandbox.
What to type, or the option’s value to pick. Null to leave it to you.
The custom field, for kind custom.
object
A tick box: tick it (true) or leave it unticked (false).
A field sent with multiple: the value of each option to select. value is null.
The custom field says to leave this field as it is.
What a guess came from.
One screen a site’s sign-up goes over: a page’s path, or a native app screen’s name.
object
Null for one of the app screens, which have no site.
The page’s path, or the native app screen’s name.
A short name people recognise.
Suggested: added by a fill or form-values, or waiting for a lead, and not kept yet.
Which screen of the sign-up it was, when known.
Example
{ "values": [ { "kind": "email", "from": "option" } ], "screen": { "kind": "path", "value": "/signup/team", "label": "Team details", "status": "kept", "origin": "added", "created_via": "app" }}An error
object
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).
What went wrong and what to do, in words.
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.
object
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).
What went wrong and what to do, in words.
Example generated
{ "error": "example", "message": "example"}Headers
Section titled “Headers”Bearer realm="proxymail-qa", with error="invalid_token" when a key was sent but isn’t valid.
An error
object
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).
What went wrong and what to do, in words.
Example generated
{ "error": "example", "message": "example"}An error
object
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).
What went wrong and what to do, in words.
Example generated
{ "error": "example", "message": "example"}An error
object
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).
What went wrong and what to do, in words.
Example generated
{ "error": "example", "message": "example"}A sign-in or password reset form sent without address: no account was made.
object
Example generated
{ "error": "example", "message": "example"}The request body is over 64 KB, or 256 KB for POST /v1/form-values.
object
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).
What went wrong and what to do, in words.
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.
object
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).
What went wrong and what to do, in words.
Example generated
{ "error": "example", "message": "example"}Headers
Section titled “Headers”Seconds to wait before trying again. Sent with per-minute limits only.