---
title: "Fetch workflow definition"
method: GET
path: "/workflows/*"
---

# Fetch workflow definition

`GET /workflows/*`

Retrieves a workflow definition by key

## Response `200`

OK

- WorkflowDefinition
  - `disabled` boolean — When true, prevents the workflow from being triggered.
  - `key` string, required — Unique identifier for this workflow definition.
  - `steps` object[], required — Ordered list describing each action that will run inside the workflow.
    - `command` string, required — Command to execute (e.g., broadcast, pause, wait, abort)
    - `if` string, nullable — JMESPath condition that must evaluate truthy for the step to run.
    - `input` object, nullable — Optional payload passed to the command when it executes.

---

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