Skip to content
GET
/v1/journeys
curl --request GET \
--url 'https://api.proxymail.qa/v1/journeys?phase=after_signup&country_unknown=1&age_unknown=1' \
--header 'Authorization: Bearer <token>'

A site’s journey, as the Journeys page draws it: the emails the project’s test accounts got from it, in order, combined into one map. Each step has how many accounts got it out of how many, the wait before it, who got it by country and age band, which accounts are still due and which did not get it, and its warnings; where accounts got different emails, a split names each path, with the query that shows it alone. It starts with the page’s sentence and gives a link that opens the page on the same view. Steps are named by kind, sender and key, never by subject, in the sentence too. The filter is the page’s: the same names as its address. In Labs: answers 403 until the key’s creator switches on Journeys in Account settings → Labs. See https://proxymail.qa/docs/rest-api#journeys.

site
string
<= 300 characters

The journey: a site’s host, or sender: and a domain, such as sender:acme.dev, for accounts with no site. Defaults to the first in journeys.

phase
string
Allowed values: after_signup signing_in password_reset invites ongoing

Only this phase’s steps. The sentence and the counts stay whole.

country
string

Accounts in any of these countries, comma-separated: GB,DE.

country_unknown
string
Allowed values: 1

Accounts with no country.

age
string

Accounts in any of these age bands today, comma-separated: under-18, 18-24, 25-34, 35-44, 45-54, 55-plus.

age_unknown
string
Allowed values: 1

Accounts with no date of birth.

any_tags
string

Accounts with any one of these tags, comma-separated. A comma inside a tag is %2C before the query is URL-encoded, so %252C in the URL.

address
string
<= 254 characters

One account’s own journey (capitals and a +tag name the same account): the other filters are then ignored.

got_step
string

Accounts that got every one of these steps, by key, comma-separated.

not_got_step
string

Accounts that got none of these steps, by key, comma-separated.

The journey

Media typeapplication/json
object
showing
required

The page’s sentence: “Showing 2 of 7 test accounts on staging.example.com: Country: DE.” A step in it is named by kind, sender and key, not by subject.

string
notes
required

What to know first, such as a filter value left off.

Array<string>
link
required

Opens the Journeys page on this view.

string format: uri
journey
required

The key of the journey shown.

string
name
required

The site’s host, or the sender’s name.

string
by
required
string
Allowed values: site sender
journeys
required

The project’s journeys: sites first, then senders of accounts with no site.

Array<object>
object
journey
required
string
name
required
string
by
required
string
Allowed values: site sender
accounts
required
integer
accounts
required
object
shown
required
integer
total
required
integer
with_no_email
required
integer
emails
required

Emails the accounts shown got.

integer
truncated
required

The 5,000-email limit left the oldest mail out, so did_not_get is null.

boolean
filters_left_off
required

Filter values this journey doesn’t have, left off.

integer
filter_values
required

What can be asked for, each with how many accounts it would show. Accounts with no country or no date of birth are under country_unknown and age_unknown, the parameters that ask for them, only while there are some.

object
country
Array<object>
object
value
string
accounts
integer
chosen
boolean
country_unknown
object
accounts
integer
chosen
boolean
age
Array<object>
object
value
string
accounts
integer
chosen
boolean
age_unknown
object
accounts
integer
chosen
boolean
tags
Array<object>
object
value
string
accounts
integer
chosen
boolean
phases
required
Array<object>
object
phase
required
string
Allowed values: after_signup signing_in password_reset invites ongoing
name
required
string
started_by
required

Where its walk-throughs start: “7 accounts made”.

string
steps
required

In order. A step (type “step”) has key, kind, kind_name, sender, got, of, wait (ms, kind, all_ms, range_ms, from), countries, age_bands, still_due, did_not_get (null where it can’t be said), warnings and emails (id, address, received_at). A split (type “split”) has by and paths, each with label, accounts, query (this endpoint’s query string that shows the path alone), filter (the same as arguments: lists and true flags, as npm’s and Python’s journey() take them) and its steps.

Array<object>
object
type
required
string
Allowed values: step split
good_practice
required
Array<object>
object
rule
required
string
name
required
string
checked
required
integer
warned
required
integer

Example

{
"by": "site",
"journeys": [
{
"by": "site"
}
],
"phases": [
{
"phase": "after_signup",
"steps": [
{
"type": "step"
}
]
}
]
}

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"
}

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.