---
title: "Get journey run counts"
method: GET
path: "/v1/journeys/{id}/stats"
tags: ["Journeys"]
---

# Get journey run counts

`GET /v1/journeys/{id}/stats`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/journeys/{id}/stats`
- Auth: API key in header `x-api-key`

Counts one published version's runs by status, and per node the live runs there now and the runs that have entered it. Defaults to the newest published version.

## Path parameters

- `id` string, required

## Query parameters

- `version` string, nullable

## Response `200`

JourneyStats

- JourneyStats
  - `journeyId` string, required
  - `version` integer, required
  - `runs` JourneyRunCounts, required
    - `active` integer, required
    - `paused` integer, required
    - `exited` integer, required
    - `failed` integer, required
  - `nodes` JourneyNodeStats[], required
    - `nodeId` string, required
    - `current` integer, required
    - `entered` integer, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

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