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

## Request

- Base URL: `https://api.mabl.com`
- URL: `https://api.mabl.com/journeyRuns/journey/{journey_id}/byPlan`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

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

## Changes

- **2026-10-19** `b602223aa51f`: 3 info
  - added the optional property `guardrail/allOf[#/components/schemas/GuardrailRefusal]/approval` to the response with the `401` status
  - added the optional property `guardrail/allOf[#/components/schemas/GuardrailRefusal]/approval` to the response with the `403` status
  - added the optional property `guardrail/allOf[#/components/schemas/GuardrailRefusal]/approval` to the response with the `default` status
- **2026-10-15** `4e32d22292af`: 6 info
  - added the optional property `error_code` to the response with the `401` status
  - added the optional property `error_code` to the response with the `403` status
  - added the optional property `error_code` to the response with the `default` status
  - added the optional property `guardrail` to the response with the `401` status
  - …2 more

[Operation history](https://skmtc.dev/mabl/apis/mabl-api/changes/journeyRuns/journey/:journey_id/byPlan/get.md)

---

[API](https://skmtc.dev/mabl/apis/mabl-api.md) · [All operations](https://skmtc.dev/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mabl/apis/mabl-api/revisions/b602223aa51f?raw)
