---
title: "Retrieve last 10 test runs of a test for each plan the test is in"
method: GET
path: "/journeyRuns/journey/{journey_id}/byPlan"
tags: ["TestRun"]
---

# Retrieve last 10 test runs of a test for each plan the test is in

`GET /journeyRuns/journey/{journey_id}/byPlan`

Used to retrieve last n test runs for each test-plan combination

## Path parameters

- `journey_id` string, required

## Query parameters

- `maxRunsPerJourney` integer, required

## Response `200`

History for journeys in the specified workspace

- TestPlanHistory[]
  - `plan_id` string
  - `journey_runs` TestRunStatusSummary[]
    - `journey_run_id` string
    - `status` string
    - `started_time` integer
    - `completed_time` integer

## Other responses

- `401` — User not authenticated
- `403` — User not authorized
- `default` — Unknown error

---

[API](https://skmtc.net/mabl/apis/mabl-api.md) · [All operations](https://skmtc.net/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/d0fc0114da66/schema)
