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

# Stream install logs

> Streams logs from the install pods via Server-Sent Events. Use the `Accept: text/event-stream` header.



## OpenAPI

````yaml /openapi.json get /v1/installs/{id}/logs
openapi: 3.1.0
info:
  title: CNAP API
  version: 1.0.0
  description: >-
    Public API for managing CNAP workspaces, clusters, templates, products, and
    deployments.


    Authenticate with a Personal Access Token via the `Authorization: Bearer
    cnap_pat_...` header.


    Workspace-scoped endpoints require the `X-Workspace-Id` header.
servers:
  - url: https://api.cnap.tech
    description: Production
security: []
paths:
  /v1/installs/{id}/logs:
    get:
      tags:
        - Installs
      summary: Stream install logs
      description: >-
        Streams logs from the install pods via Server-Sent Events. Use the
        `Accept: text/event-stream` header.
      parameters:
        - schema:
            type: string
            description: Install ID
          required: true
          description: Install ID
          name: id
          in: path
        - schema:
            type: string
            minLength: 1
            maxLength: 253
            description: Pod name (all pods if omitted)
          required: false
          description: Pod name (all pods if omitted)
          name: pod
          in: query
        - schema:
            type: string
            minLength: 1
            maxLength: 253
            description: Container name
          required: false
          description: Container name
          name: container
          in: query
        - schema:
            type:
              - boolean
              - 'null'
            default: true
            description: Follow log output
          required: false
          description: Follow log output
          name: follow
          in: query
        - schema:
            type:
              - integer
              - 'null'
            description: Lines to tail
          required: false
          description: Lines to tail
          name: tail
          in: query
        - schema:
            type:
              - integer
              - 'null'
            default: 0
            description: Only return logs newer than this many seconds
          required: false
          description: Only return logs newer than this many seconds
          name: since_seconds
          in: query
      responses:
        '200':
          description: Log stream (text/event-stream)
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Install not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - BearerAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: not_found
            message:
              type: string
              example: Resource not found
            param:
              type: string
              description: The request field that caused the error
              example: name
            suggestion:
              type: string
              example: Run `cnap clusters list` to see available clusters
            details: {}
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at
        https://cnap.tech/account/tokens

````