---
title: "Get Run Dag"
method: GET
path: "/api/v1/runs/{run_id}/graph"
tags: ["runs"]
---

# Get Run Dag

`GET /api/v1/runs/{run_id}/graph`

Get the DAG for a given pipeline run.

Args:
    run_id: ID of the pipeline run to use to get the DAG.

Returns:
    The DAG for a given pipeline run.

## Path parameters

- `run_id` string, uuid, required

## Response `200`

Successful Response

- LineageGraph — A lineage graph representation of a PipelineRunResponseModel.
  - `nodes` union[]
    - union
      - StepNode — A class that represents a step node in a lineage graph.
        - `id` string, required
        - `type` string
        - `data` StepNodeDetails, required — Captures all artifact details for the node.
          - `execution_id` string, required
          - `name` string, required
          - `status` 'initializing' | 'failed' | 'completed' | 'running' | 'cached', required — Enum that represents the current status of a step or pipeline run.
          - `entrypoint_name` string, required
          - `parameters` object, required
          - `configuration` object, required
          - `inputs` object, required
          - `outputs` object, required
          - `metadata` array[], required
            - unknown[]
              - …
      - ArtifactNode — A class that represents an artifact node in a lineage graph.
        - `id` string, required
        - `type` string
        - `data` ArtifactNodeDetails, required — Captures all artifact details for the node.
          - `execution_id` string, required
          - `name` string, required
          - `status` 'cached' | 'created' | 'external' | 'unknown', required — Enum that represents the status of an artifact.
          - `is_cached` boolean, required
          - `artifact_type` string, required
          - `artifact_data_type` string, required
          - `parent_step_id` string, required
          - `producer_step_id` string, nullable, required
          - `uri` string, required
          - `metadata` array[], required
            - unknown[]
              - …
  - `edges` Edge[]
    - `id` string, required
    - `source` string, required
    - `target` string, required
  - `root_step_id` string, nullable
  - `run_metadata` array[]
    - unknown[]
      - unknown

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/zenml-io/apis/zenml-2.md) · [All operations](https://skmtc.net/zenml-io/apis/zenml-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zenml-io/zenml-2/versions/febb01b8bce3/schema)
