---
title: "Check automation readiness"
method: GET
path: "/v1/automations/{automation_id}/preflight"
tags: ["Automations"]
---

# Check automation readiness

`GET /v1/automations/{automation_id}/preflight`

## Request

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

Checks the saved Automation definition and email delivery prerequisite without running any action.

## Path parameters

- `automation_id` string, required

## Response `200`

Automation readiness returned

- object
  - `data` AutomationPreflight, required
    - `automation_id` string, required
    - `ready` boolean, required
    - `step_count` integer, required
    - `email_step_count` integer, required
    - `checks` WorkflowReadinessCheck[], required
      - `key` string, required
      - `status` 'passed' | 'blocking', required
      - `message` string, required
    - `checked_at` string, date-time, 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)
