---
title: "Get Workflow Spec"
method: GET
path: "/api/workflow/{name}/spec"
tags: ["Workflow API"]
---

# Get Workflow Spec

`GET /api/workflow/{name}/spec`

## Request

- The document declares no server URL.
- Auth: none declared

Returns the workflow spec.

## Path parameters

- `name` string, required

## Query parameters

- `use_template` boolean

## Response `200`

Successful Response

## Other responses

- `422`: Validation Error

## Changes

- **2026-08-03** `b9d312a13f5d`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Operation history](https://skmtc.dev/nvidia/apis/nvidia-corporation-osmo-api/changes/api/workflow/:name/spec/get.md)

---

[API](https://skmtc.dev/nvidia/apis/nvidia-corporation-osmo-api.md) - [All operations](https://skmtc.dev/nvidia/apis/nvidia-corporation-osmo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nvidia/apis/nvidia-corporation-osmo-api/revisions/845585a71dbb?raw)
