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

# Read build steps or one page of step output

> **Token scope:** `account` · `org` · `project` — read-only tokens allowed.



## OpenAPI

````yaml /openapi/project.json get /projects/{id}/builds/{source}/{buildId}/logs
openapi: 3.1.0
info:
  title: InstaCloud API — Project level
  version: 0.1.0
  description: >-
    Endpoints under `/projects/{projectId}`: branches, services, deploys,
    secrets, databases, storage, cron, observability, governance. Callable with
    any token whose binding covers the project.


    Generated from the platform's own OpenAPI document
    (https://api.instacloud.com/openapi.json); see the [API
    overview](/reference/api/overview) for authentication and token scopes.
servers:
  - url: https://api.instacloud.com
    description: InstaCloud
security:
  - bearerAuth: []
tags:
  - name: Projects
    description: Projects inside an organization.
  - name: Branches
    description: >-
      Branch environments of a project: isolated database, storage and compute
      per branch.
  - name: Services
    description: 'Services on a branch: compute, postgres, storage and managed databases.'
  - name: Deploy
    description: Deploy an image or a source to a compute service.
  - name: Compute
    description: Build output of a compute service.
  - name: Secrets
    description: User secrets, service credentials and how they bind into compute env.
  - name: Database
    description: Postgres databases, extensions, credentials and ad-hoc SQL.
  - name: Storage
    description: Objects in a storage service.
  - name: Backups
    description: Database backups and restores.
  - name: Cron
    description: Scheduled HTTP calls against a service or an external URL.
  - name: Observability
    description: Logs, metrics, deploy events and database insight.
  - name: Governance
    description: Per-project agent policy and the approval queue.
  - name: Audit
    description: The project's event timeline, including agent-ingested events.
  - name: Domains
    description: >-
      Domains bought through InstaCloud, bring-your-own zones and their DNS
      records.
  - name: Billing
    description: Usage, cycles, invoices and credits.
  - name: Templates
    description: Deploy a template into a project.
paths:
  /projects/{id}/builds/{source}/{buildId}/logs:
    get:
      tags:
        - Compute
      summary: Read build steps or one page of step output
      description: >-
        **Token scope:** `account` · `org` · `project` — read-only tokens
        allowed.
      operationId: readBuildLogs
      parameters:
        - schema:
            pattern: ^sha256:[a-f0-9]{64}$
            type: string
          in: query
          name: step
          required: false
        - schema:
            maxLength: 16384
            type: string
          in: query
          name: cursor
          required: false
        - schema:
            format: uuid
            type: string
          in: path
          name: id
          required: true
        - schema:
            anyOf:
              - type: string
                enum:
                  - github
              - type: string
                enum:
                  - archive
          in: path
          name: source
          required: true
        - schema:
            format: uuid
            type: string
          in: path
          name: buildId
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuildLogPage'
components:
  schemas:
    BuildLogPage:
      type: object
      properties:
        state:
          type: string
          enum:
            - ready
            - pending
            - unsupported
            - unavailable
        buildState:
          type: string
        error:
          type: string
        steps:
          type: array
          items:
            type: object
            properties:
              digest:
                type: string
              name:
                type: string
              cached:
                type: boolean
              hasLogs:
                type: boolean
              startedAt:
                type: string
              completedAt:
                type: string
              error:
                type: string
            required:
              - digest
              - name
              - cached
              - hasLogs
        entries:
          type: array
          items:
            type: object
            properties:
              timestamp:
                type: string
              message:
                type: string
            required:
              - timestamp
              - message
        nextCursor:
          description: >-
            Opaque pagination cursor. No cursor means the current page is the
            tail, not that a running build has finished logging.
          type: string
      required:
        - state
        - buildState
        - steps
        - entries
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Session access JWT or an API token (`insta_<prefix>_<secret>`).

````