---
title: "A site’s journey | Proxy Mail QA"
description: "Developer docs for Proxy Mail QA: the MCP server for coding agents, the REST API for test suites, and the Chrome extension."
url: https://proxymail.qa/docs/reference/operations/journey
---

# A site’s journey

GET

/v1/journeys

```js
const url = 'https://api.proxymail.qa/v1/journeys?phase=after_signup&country_unknown=1&age_unknown=1';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```sh
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>.

## Authorizations

- **[apiKey](https://proxymail.qa/docs/reference.html#apikey)**
- **[apiKeyHeader](https://proxymail.qa/docs/reference.html#apikeyheader)**

## Parameters

### Query Parameters

**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.

## Responses

### 200

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 

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

### 400

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

```json
{
  "error": "example",
  "message": "example"
}
```

### 401

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

```json
{
  "error": "example",
  "message": "example"
}
```

#### Headers

**WWW-Authenticate**

string

`Bearer realm="proxymail-qa"`, with `error="invalid_token"` when a key was sent but isn’t valid.

### 403

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

```json
{
  "error": "example",
  "message": "example"
}
```

### 404

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

```json
{
  "error": "example",
  "message": "example"
}
```

### 429

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

```json
{
  "error": "example",
  "message": "example"
}
```

#### Headers

**Retry-After**

integer

\>= 1

Seconds to wait before trying again. Sent with per-minute limits only.

[Previous](https://proxymail.qa/docs/reference/operations/cleanuplist.html): Test addresses to clean up from your app

[Next](https://proxymail.qa/docs/reference/operations/flowchecks.html): Checks for a sign-up, password reset or magic-link flow
