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

# List log streams

> List the log streams that belong to a log source.



## OpenAPI

````yaml /openapi.json get /log-streams
openapi: 3.2.0
info:
  title: Sazabi Public API
  version: 1.0.0
  description: >
    Public REST API for Sazabi. Authenticate using a secret API key in the
    Authorization header.


    ## Pagination


    This API uses two pagination strategies depending on the endpoint type:


    ### Cursor-Based Pagination (List Endpoints)


    List endpoints (threads, messages, keys) use cursor-based pagination for
    efficient, consistent results:


    - **Parameters**: `limit` (items per page, default 50, max 100), `cursor`
    (opaque pagination token)

    - **Response**: Includes `nextCursor` field - pass this as `cursor` in the
    next request

    - **End of results**: When `nextCursor` is `null`, there are no more results

    - **Example**: `GET
    /v1/threads?limit=20&cursor=01234567-89ab-cdef-0123-456789abcdef`


    ### Page-Based Pagination (Search Endpoints)


    Search endpoints use page-based pagination due to the underlying search
    engine:


    - **Parameters**: `limit` (items per page, default 20, max 100), `page`
    (1-indexed page number)

    - **Response**: Includes `pagination` object with `page`, `limit`,
    `totalResults`, `totalPages`

    - **Example**: `GET /v1/search/threads?q=error&limit=10&page=2`
servers:
  - url: https://api.sazabi.com/v1
    description: Production
security: []
tags:
  - name: 'section: Send data'
    summary: Send data
    kind: nav
  - name: 'section: Detect issues'
    summary: Detect issues
    kind: nav
  - name: 'section: Triage issues'
    summary: Triage issues
    kind: nav
  - name: 'section: Ask Sazabi'
    summary: Ask Sazabi
    kind: nav
  - name: 'section: Explore logs'
    summary: Explore logs
    kind: nav
  - name: 'section: Ship fixes'
    summary: Ship fixes
    kind: nav
  - name: 'section: Integrations'
    summary: Integrations
    kind: nav
  - name: 'section: Organization and access'
    summary: Organization and access
    kind: nav
  - name: 'section: Billing'
    summary: Billing
    kind: nav
  - name: 'section: Webhooks and events'
    summary: Webhooks and events
    kind: nav
  - name: 'section: CLI onboarding support'
    summary: CLI onboarding support
    kind: nav
  - name: Log Sources
    summary: Log Sources
    kind: nav
    parent: 'section: Send data'
  - name: Log Streams
    summary: Log Streams
    kind: nav
    parent: 'section: Send data'
  - name: Public Keys
    summary: Public Keys
    kind: nav
    parent: 'section: Send data'
  - name: Signals
    summary: Signals
    kind: nav
    parent: 'section: Detect issues'
  - name: Issues
    summary: Issues
    kind: nav
    parent: 'section: Triage issues'
  - name: Components
    summary: Components
    kind: nav
    parent: 'section: Triage issues'
  - name: Notification delivery rules
    summary: Notification delivery rules
    kind: nav
    parent: 'section: Triage issues'
  - name: Notification channels
    summary: Notification channels
    kind: nav
    parent: 'section: Triage issues'
  - name: Tasks
    summary: Tasks
    kind: nav
    parent: 'section: Triage issues'
  - name: Task creation rules
    summary: Task creation rules
    kind: nav
    parent: 'section: Triage issues'
  - name: Task status mapping
    summary: Task status mapping
    kind: nav
    parent: 'section: Triage issues'
  - name: Work Items
    summary: Work Items
    kind: nav
    parent: 'section: Triage issues'
  - name: Threads
    summary: Threads
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Messages
    summary: Messages
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Runs
    summary: Runs
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Search
    summary: Search
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Memory
    summary: Memory
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Artifacts
    summary: Artifacts
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Tool permissions
    summary: Tool permissions
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Sandbox Environment Variables
    summary: Sandbox Environment Variables
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Sandbox Init Script
    summary: Sandbox Init Script
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Logs
    summary: Logs
    kind: nav
    parent: 'section: Explore logs'
  - name: Dashboards
    summary: Dashboards
    kind: nav
    parent: 'section: Explore logs'
  - name: AgentDispatches
    summary: AgentDispatches
    kind: nav
    parent: 'section: Ship fixes'
  - name: Pull Requests
    summary: Pull Requests
    kind: nav
    parent: 'section: Ship fixes'
  - name: Repos
    summary: Repos
    kind: nav
    parent: 'section: Ship fixes'
  - name: Integrations
    summary: Integrations
    kind: nav
    parent: 'section: Integrations'
  - name: MCP Connectors
    summary: MCP Connectors
    kind: nav
    parent: 'section: Integrations'
  - name: Connected Accounts
    summary: Connected Accounts
    kind: nav
    parent: 'section: Integrations'
  - name: Sandbox CLIs
    summary: Sandbox CLIs
    kind: nav
    parent: 'section: Integrations'
  - name: Auth
    summary: Auth
    kind: nav
    parent: 'section: Organization and access'
  - name: Organizations
    summary: Organizations
    kind: nav
    parent: 'section: Organization and access'
  - name: Projects
    summary: Projects
    kind: nav
    parent: 'section: Organization and access'
  - name: Members
    summary: Members
    kind: nav
    parent: 'section: Organization and access'
  - name: Teams
    summary: Teams
    kind: nav
    parent: 'section: Organization and access'
  - name: SSO
    summary: SSO
    kind: nav
    parent: 'section: Organization and access'
  - name: Secret Keys
    summary: Secret Keys
    kind: nav
    parent: 'section: Organization and access'
  - name: Support Tickets
    summary: Support Tickets
    kind: nav
    parent: 'section: Organization and access'
  - name: Billing
    summary: Billing
    kind: nav
    parent: 'section: Billing'
  - name: Webhooks
    summary: Webhooks
    kind: nav
    parent: 'section: Webhooks and events'
  - name: Webhook events
    summary: Webhook events
    kind: nav
    parent: 'section: Webhooks and events'
  - name: Onboarding
    summary: Onboarding
    kind: nav
    parent: 'section: CLI onboarding support'
  - name: Onboarding Tasks
    summary: Onboarding Tasks
    kind: nav
    parent: 'section: CLI onboarding support'
  - name: Recommendations
    summary: Recommendations
    kind: nav
    parent: 'section: CLI onboarding support'
paths:
  /log-streams:
    get:
      tags:
        - Log Streams
      summary: List log streams
      description: List the log streams that belong to a log source.
      operationId: logStreams.list
      parameters:
        - name: logSourceId
          in: query
          required: true
          schema:
            type: string
            format: uuid
            description: Log source ID to list log streams for.
          allowEmptyValue: true
          allowReserved: true
        - name: enabled
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: string
            description: >-
              Optional filter on log stream ingestion state. Omit to list all
              log streams; pass true for only enabled log streams or false for
              only paused log streams.
          allowEmptyValue: true
          allowReserved: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  streams:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        logSourceId:
                          type: string
                          format: uuid
                          description: >-
                            Root log source ID. Every log stream roots on
                            exactly one log source.
                        displayName:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: >-
                            Log stream name, assigned by the server at creation
                            and immutable: the vendor object's name when the log
                            source connection supplies one, a generated mnemonic
                            otherwise, and the log source's own name for manual
                            log streams. Null only on legacy log streams created
                            before names became required.
                        config:
                          type: object
                          propertyNames:
                            type: string
                          additionalProperties: {}
                        status:
                          enum:
                            - pending
                            - provisioning
                            - active
                            - error
                          type: string
                          description: >-
                            Provisioning status. `pending`: created and waiting
                            its turn in the provider account's provisioning
                            queue; the dashboard and CLI display it as
                            Provisioning. `provisioning`: being set up at the
                            provider. `active`: delivering. `error`:
                            provisioning failed; see errorMessage.
                        errorMessage:
                          anyOf:
                            - type: string
                            - type: 'null'
                        enabled:
                          type: boolean
                          description: >-
                            Whether the log stream is currently ingesting.
                            Independent of provisioning status: a paused log
                            stream stays configured but stops accepting new
                            data.
                        provisionedVia:
                          enum:
                            - manual
                            - auto
                          type: string
                          description: >-
                            How this log stream was created. "manual" for every
                            user-initiated create (single add, select-all, API);
                            "auto" only when the auto-provisioning scan created
                            it because a new vendor object matched the log
                            source's saved scope.
                        createdAt:
                          type: string
                          format: date-time
                        endpointCards:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                enum:
                                  - logs
                                  - traces
                                  - metrics
                                  - listener
                                  - endpoint
                                type: string
                                description: >-
                                  Stable identity for this card, computed by the
                                  platform. Address a card by this rather than
                                  by its position in the array or its label,
                                  both of which change for display reasons.
                                  `logs`/`traces`/`metrics` identify a
                                  signal-specific destination; `listener` is a
                                  non-keyed host+port; `endpoint` is the single
                                  keyed URL a source exposes when it does not
                                  split by signal. Unique within one log
                                  stream's cards.
                              kind:
                                enum:
                                  - url
                                  - hostPort
                                type: string
                                description: >-
                                  Card shape. `url` = a complete keyed URL whose
                                  hostname authenticates; `hostPort` = a
                                  non-keyed listener host + port whose
                                  credential travels separately.
                              label:
                                type: string
                                description: >-
                                  Card label. Present when a log source exposes
                                  several endpoints (e.g. separate logs and
                                  traces destinations).
                              url:
                                type: string
                                description: >-
                                  The complete keyed intake URL. Present when
                                  kind is `url`.
                              host:
                                type: string
                                description: >-
                                  The regional listener hostname (no scheme).
                                  Present when kind is `hostPort`.
                              port:
                                type: integer
                                minimum: -9007199254740991
                                maximum: 9007199254740991
                                description: >-
                                  The listener port. Present when kind is
                                  `hostPort`.
                              description:
                                type: string
                                description: >-
                                  Vendor-specific guidance rendered under the
                                  value.
                              extraCredential:
                                type: object
                                properties:
                                  label:
                                    type: string
                                  value:
                                    type: string
                                  description:
                                    type: string
                                required:
                                  - label
                                  - value
                                description: >-
                                  The credential the sender must attach when the
                                  hostname alone does not authenticate. Present
                                  when kind is `hostPort`.
                            required:
                              - id
                              - kind
                          description: >-
                            Server-computed endpoint card(s) for this log
                            stream's delivery key — where to point the sender.
                            Present only for log streams that carry their own
                            intake key.
                        signatureVerification:
                          anyOf:
                            - type: object
                              properties:
                                scheme:
                                  type: string
                                  description: >-
                                    Signature scheme id deliveries are checked
                                    with.
                                mode:
                                  enum:
                                    - enforce
                                    - shadow
                                  type: string
                                  description: >-
                                    `enforce`: a delivery whose signature fails
                                    is answered 401 and not stored. `shadow`:
                                    failures are counted but stored; set only by
                                    Sazabi for managed migrations.
                                secrets:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        format: uuid
                                        description: Verification secret ID.
                                      last4:
                                        type: string
                                        description: Last four characters of the secret.
                                      createdAt:
                                        type: string
                                        format: date-time
                                      retiresAt:
                                        anyOf:
                                          - type: string
                                            format: date-time
                                          - type: 'null'
                                        description: >-
                                          When a rotated-out secret stops being
                                          accepted. Null for the current secret.
                                    required:
                                      - id
                                      - last4
                                      - createdAt
                                      - retiresAt
                                  description: >-
                                    Active verification secrets, at most two
                                    (the current one and one retiring after a
                                    rotation). Secret values are never answered.
                                needsSecret:
                                  type: boolean
                                  description: >-
                                    True when a `shadow` stream received a
                                    delivery none of its secrets verified: add
                                    the secret the platform signs with (for a
                                    native Vercel stream, the drain's signature
                                    secret). Adding a secret restarts the shadow
                                    period. Always false for an enforced stream.
                              required:
                                - scheme
                                - mode
                                - secrets
                            - type: 'null'
                          description: >-
                            The stream's webhook signature verification, or null
                            when deliveries are not verified.
                      required:
                        - id
                        - logSourceId
                        - displayName
                        - config
                        - status
                        - errorMessage
                        - enabled
                        - provisionedVia
                        - createdAt
                required:
                  - streams

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.