> ## Documentation Index
> Fetch the complete documentation index at: https://docs.suprsend.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Workflow

> Get workflow details

Retrieve detailed information for a specific workflow by its slug. Requires `--slug`. Returns the full workflow definition including nodes, connections, and configuration. Use `--mode` to switch between draft and live versions.

## Syntax

```bash theme={"system"}
suprsend workflow get [flags]
```

## Flags

| Flag                  | Description                          | Default |
| --------------------- | ------------------------------------ | ------- |
| `-h, --help`          | Show help for the command            | –       |
| `-g, --slug string`   | Workflow slug to retrieve (required) | –       |
| `--mode string`       | Version mode (`draft` or `live`)     | `live`  |
| `-o, --output string` | Output format (`json`, `yaml`)       | `json`  |

<Tip>
  Use `-o json` for machine-readable JSON output, `-o yaml` for YAML.
</Tip>

## Example

```bash theme={"system"}
# Get a workflow by slug
suprsend workflow get --slug welcome-email

# Get the draft version
suprsend workflow get --slug welcome-email --mode draft

# Get workflow in YAML format
suprsend workflow get --slug welcome-email --output yaml

# Get workflow from production workspace
suprsend workflow get --slug welcome-email --workspace production
```
