Finish a run
const url = 'https://api.proxymail.qa/v1/runs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/finish';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"failed":false}'};
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/runs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/finish \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "failed": false }'Passed, unless an email was missing, one came when none should have, an email check failed, a note or a test failed it, or failed: true says your tests failed. Finishing a finished run changes nothing.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Body
Section titled “Request Body”object
Responses
Section titled “Responses”The run
object
object
The run in the app.
object
What the run saw, oldest first. Not in lists.
object
Email: type, subtype, service, received_at, after_seconds, and code (with a coupon’s discount) or link and goes_to ({ site, path }). missing: what was waited for and hint. none: arrived, since, until, and the email (type, subtype, category). count: count. checks: the email (type, subtype, category), passed, failed, warnings, notes and spam_score. checkout: tags and until. test: name, status, duration_ms and error, or totals. unsubscribe: action, sender and watches. offers: sender, reused and variants (never the codes). coupon: code, result, message, discount_applied and verdict. note: text.
object
Only in a single run: how many results it recorded, such as emails that arrived, email checks and tests. At 0 the run can still say passed, as nothing failed, but nothing was checked.
Only in a single run that checked any email: how many emails were checked, how many look likely to be rejected or filed as spam, may go to spam, carry a harmful attachment, and the lowest inbox score out of 10 (10 is good). With the project’s spam checks off, only checked counts: the others are 0 and the scores null.
object
The lowest inbox score out of 10 among them (10 is good).
Deprecated: the highest spam points; use lowest_inbox_score.
Only in a single run: how it differs from up to 10 finished runs before it with the same name; null without any.
object
How many earlier runs it was compared with.
object
Words, { code } for a value, or { quote } for text from an email or client.
Example
{ "source": "ci", "status": "running", "events": [ { "kind": "address" } ], "comparison": { "changes": [ { "kind": "new_failure" } ] }}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"}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.