---
title: "Get Step Logs"
method: GET
path: "/api/v1/steps/{step_id}/logs"
tags: ["steps"]
---

# Get Step Logs

`GET /api/v1/steps/{step_id}/logs`

Get the logs of a specific step.

Args:
    step_id: ID of the step for which to get the logs.
    offset: The offset from which to start reading.
    length: The amount of bytes that should be read.

Returns:
    The logs of the step.

Raises:
    HTTPException: If no logs are available for this step.

## Path parameters

- `step_id` string, uuid, required

## Query parameters

- `offset` integer
- `length` integer

## Response `200`

Successful Response

- string

## 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)
