---
title: "Build output after a line number. With follow=true (or Accept: application/x-ndjson) the lines stream as they are written."
method: GET
path: "/v1/images/{id}/logs"
tags: ["images"]
---

# Build output after a line number. With follow=true (or Accept: application/x-ndjson) the lines stream as they are written.

`GET /v1/images/{id}/logs`

## Request

- Base URL: `https://api.withruntime.com`
- URL: `https://api.withruntime.com/v1/images/{id}/logs`
- Auth: HTTP bearer

Streamed: {type: line, seq, at, stream, text} for each line, then {type: done, state, image} when the build has ended, or {type: continue, after} after 110 s, to reconnect with after set.

## Path parameters

- `id` string, required: Resource identifier (UUID).

## Query parameters

- `after` integer
- `limit` integer
- `follow` boolean: Stream lines as NDJSON until the build ends.

## Response `200`

Success

- object
  - `lines` object[], required
    - `seq` integer
    - `at` string
    - `stream` 'build' | 'system'
    - `text` string
  - `nextAfter` integer, required: Pass as after next time.
  - `state` string
  - `truncated` boolean
  - `done` boolean, required: The build has ended; no more lines will come.

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/withruntime/apis/runtime-cloud-api.md) · [All operations](https://skmtc.dev/withruntime/apis/runtime-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/withruntime/apis/runtime-cloud-api/revisions/6f4012286988?raw)
