---
title: "Preview an automation journey"
method: GET
path: "/v1/automations/{automation_id}/journey-preview"
tags: ["Automations"]
---

# Preview an automation journey

`GET /v1/automations/{automation_id}/journey-preview`

## Request

- Base URL: `https://api.mailrith.com`
- URL: `https://api.mailrith.com/v1/automations/{automation_id}/journey-preview`
- Auth: HTTP bearer

Shows the bounded path a selected Subscriber would take through the current saved conditions without running actions or writing history.

## Path parameters

- `automation_id` string, required

## Query parameters

- `subscriber_id` string, required

## Response `200`

Automation journey preview returned

- object
  - `data` AutomationJourneyPreview, required
    - `automation_id` string, required
    - `subscriber_id` string, required
    - `side_effect_free` true, required
    - `evaluation_basis` 'current_saved_subscriber_state', required
    - `ended` boolean, required
    - `cycle_detected` boolean, required
    - `triggers` object[], required
      - `type` string, required
    - `steps` object[], required
      - `position` integer, required
      - `step_id` string, required
      - `kind` 'event' | 'action' | 'condition', required
      - `type` string, required
      - `condition_matched` boolean, nullable, required
      - `selected_branch` 'yes' | 'no', nullable, required
      - `next_step_id` string, nullable, required

## Other responses

- `404`: Automation not found

---

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