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

# Get Workflow Logs

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

## Request

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

Returns the workflow logs.

## Path parameters

- `name` string, required

## Query parameters

- `last_n_lines` integer, nullable
- `task_name` string, nullable
- `retry_id` integer, nullable
- `query` string, nullable

## 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
- **2026-04-08** `a8157dc3279d`: 8 info
  - `query` request parameter `last_n_lines` list-of-types was widened by adding types `null`
  - `query` request parameter `query` list-of-types was widened by adding types `null`
  - `query` request parameter `retry_id` list-of-types was widened by adding types `null`
  - `query` request parameter `task_name` list-of-types was widened by adding types `null`
  - …4 more

[Operation history](https://skmtc.dev/nvidia/apis/nvidia-corporation-osmo-api/changes/api/workflow/:name/logs/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)
