---
title: "Retrieve DAG specification"
method: GET
path: "/dags/{fileName}/spec"
tags: ["dags"]
---

# Retrieve DAG specification

`GET /dags/{fileName}/spec`

Fetches the YAML specification of a DAG definition

## Path parameters

- `fileName` string, regex, required — Name of the DAG file

## Query parameters

- `remoteNode` string

## Response `200`

A successful response

- object
  - `dag` DAGDetails — unresolved $ref
  - `spec` string, required — The DAG spec in YAML format
  - `errors` string[], required — List of errors in the spec
  - `valueReferenceNotices` ValueReferenceNotice[], required — Passive value-reference notices produced while loading this spec. These notices are not persisted.
    - `message` string, required — Human-readable explanation of the unresolved reference.
    - `fieldPath` string — DAG field path associated with the unresolved reference.
    - `token` string — Original value-reference token that was preserved.

## Other responses

- `default` — Generic error response

## Changes

- **2026-06-18** (v1) `162df20bbef8` — 5 info
  - added the optional property `dag/handlerOn/abort/outputs` to the response with the `200` status
  - added the optional property `dag/handlerOn/exit/outputs` to the response with the `200` status
  - added the optional property `dag/handlerOn/failure/outputs` to the response with the `200` status
  - added the optional property `dag/handlerOn/success/outputs` to the response with the `200` status
  - …1 more
- **2026-06-17** (v1) `85dce880eeb5` — 1 info
  - added the required property `valueReferenceNotices` to the response with the `200` status
- **2026-05-24** (v1) `8a2d5d3e9608` — 1 warning
  - added the new `rate_limited` enum value to the `code` response property for the response status `default`
- **2026-05-19** (v1) `7699c11d9c61` — 1 info
  - added the optional property `dag/resources` to the response with the `200` status
- **2026-04-30** (v1) `50e1d517afc1` — 1 breaking, 18 warning, 12 info
  - removed the required property `valueReferenceNotices` from the response with the `200` status
  - removed the optional property `dag/handlerOn/abort/outputs` from the response with the `200` status
  - removed the optional property `dag/handlerOn/abort/preconditions/items/eval` from the response with the `200` status
  - removed the optional property `dag/handlerOn/abort/repeatPolicy/condition/eval` from the response with the `200` status
  - …27 more

[Change history](https://skmtc.dev/dagucloud/apis/dagu/changes/dags/:fileName/spec/get.md)

---

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