> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shardcloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Stream a Custom Docker Image's build logs

> Server-Sent Events stream — replays build history so far, then streams live lines while a build is running, or the last completed build's log if nothing is currently building. At most 2 concurrent streams per image. Heartbeat comment every 5s.



## OpenAPI

````yaml /api-reference/openapi.json get /custom-images/{image_id}/logs
openapi: 3.0.0
info:
  title: Shard Cloud API
  description: >-
    API reference for Shard Cloud's authenticated management endpoints — Apps,
    Databases, VMs, Custom Docker Images, and project-level Alerts & Backups.
    Every endpoint on this page requires a JWT bearer token (see Authentication
    below). CDN endpoints have their own reference under the CDN tab.
  version: 2.0.0
servers:
  - url: https://shardcloud.app/api
    description: API base path
security: []
tags:
  - name: Databases
    description: PostgreSQL, MySQL, MongoDB, and Redis database services.
  - name: Apps
    description: Web application deployment, files, domains, and configuration.
  - name: VMs
    description: Full Linux virtual machines with SSH access.
  - name: Custom Images
    description: User-built Docker images, deployable straight to an App.
  - name: Project
    description: >-
      Resource alerts and backups — shared across App, Database, and VM
      projects.
paths:
  /custom-images/{image_id}/logs:
    get:
      tags:
        - Custom Images
      summary: Stream a Custom Docker Image's build logs
      description: >-
        Server-Sent Events stream — replays build history so far, then streams
        live lines while a build is running, or the last completed build's log
        if nothing is currently building. At most 2 concurrent streams per
        image. Heartbeat comment every 5s.
      parameters:
        - name: image_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: text/event-stream of `log` events, each a raw log line string.
          content:
            text/event-stream:
              schema:
                type: string
      security:
        - JWTAuth: []
components:
  securitySchemes:
    JWTAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Send your API token (Dashboard → Settings → API Token) as
        `Authorization: Bearer <token>`.

````