---
title: "Get Sub-DAG Run Specification"
method: GET
path: "/dag-runs/{name}/{dagRunId}/sub-dag-runs/{subDAGRunId}/spec"
tags: ["dag-runs"]
---

# Get Sub-DAG Run Specification

`GET /dag-runs/{name}/{dagRunId}/sub-dag-runs/{subDAGRunId}/spec`

Returns the YAML specification used for a specific sub-DAG run

## Path parameters

- `name` string, regex, required — Name of the DAG
- `dagRunId` string, required — Unique identifier for the DAG-run. The special value 'latest' can be used to reference the most recent DAG-run.
- `subDAGRunId` string, required

## Query parameters

- `remoteNode` string

## Response `200`

Sub-DAG specification retrieved successfully

- object
  - `spec` string, required — YAML specification of the sub-DAG

## Other responses

- `404` — Sub-DAG run not found
- `default` — Generic error response

---

[API](https://skmtc.net/dagucloud/apis/dagu.md) · [All operations](https://skmtc.net/dagucloud/apis/dagu/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dagucloud/dagu/revisions/4a98622e8b7e/schema)
