---
title: "Stream build logs"
method: GET
path: "/v2/revisions/{revision}/build_logs"
tags: ["revisions"]
---

# Stream build logs

`GET /v2/revisions/{revision}/build_logs`

Stream build logs for a revision.

Supports both Server-Sent Events (SSE) (`Accept: text/event-stream`) and JSON Lines (`Accept: application/x-ndjson`) formats. Use the `Accept` header to specify the desired format.

The stream remains open during active builds and closes when the build completes.

## Path parameters

- `revision` string, required

## Query parameters

- `step` 'preparing' | 'installing' | 'building' | 'deploying' — Filter logs by build step
- `timeline` string — Filter logs by timeline slug

## Response `200`

OK

---

[API](https://skmtc.net/deno/apis/deploy.md) · [All operations](https://skmtc.net/deno/apis/deploy/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deno/deploy/versions/5a56038d108e/schema)
