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

# List streams



## OpenAPI

````yaml https://raw.githubusercontent.com/vidinfra/open-api-docs/refs/heads/main/livestream-api.json get /streams
openapi: 3.0.1
info:
  title: Tenbyte Livestream API
  description: >-
    Live video and audio transcoding infrastructure as a service. Ingest via
    RTMP/SRT (push) or pull from upstream sources, transcode to adaptive
    bitrate, deliver via HLS/DASH.
  version: 1.0.0
servers:
  - url: https://api.tenbyte.io/v1/livestream
    description: Production server
security:
  - BearerAuth: []
  - apikey-header-X-API-Key: []
tags:
  - name: Health
  - name: Streams
  - name: Webhooks
paths:
  /streams:
    get:
      tags:
        - Streams
      summary: List streams
      operationId: listStreams
      parameters:
        - name: page
          in: query
          description: Page number (1-based). Values below 1 fall back to 1.
          required: false
          schema:
            type: integer
            default: 1
            minimum: 1
        - name: per_page
          in: query
          description: Items per page. Capped at 100; values below 1 fall back to 10.
          required: false
          schema:
            type: integer
            default: 10
            minimum: 1
            maximum: 100
        - name: order
          in: query
          description: Sort direction by creation time. Unknown values fall back to desc.
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
      responses:
        '200':
          description: Stream list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StreamListResponse'
          headers: {}
        '401':
          $ref: '#/components/responses/Unauthorized'
          description: Missing or invalid authentication
      deprecated: false
      security:
        - BearerAuth: []
        - apikey-header-X-API-Key: []
components:
  schemas:
    StreamListResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
        data:
          type: array
          items:
            $ref: '#/components/schemas/StreamListItemResource'
        meta:
          type: object
          properties:
            pagination:
              type: object
              properties:
                page:
                  type: integer
                  example: 1
                per_page:
                  type: integer
                  example: 10
                total:
                  type: integer
                  format: int64
                  example: 1
                total_pages:
                  type: integer
                  example: 1
    StreamListItemResource:
      type: object
      description: >-
        List-row projection of a stream. Excludes publish credentials
        (stream_key, ingest URLs) and heavy config blocks (ladder, packaging,
        playback, recording, meta) — those appear only on the detail resource.
      properties:
        id:
          type: string
        organization_id:
          type: string
        name:
          type: string
        type:
          $ref: '#/components/schemas/StreamType'
        mode:
          $ref: '#/components/schemas/StreamMode'
        status:
          $ref: '#/components/schemas/StreamStatus'
        region:
          type: string
        ingest:
          type: object
          description: Minimal ingest summary (kind + protocols only).
          properties:
            kind:
              type: string
            protocols:
              type: array
              items:
                type: string
          nullable: true
        output_protocols:
          type: array
          items:
            type: string
        last_live_at:
          type: string
          format: date-time
          nullable: true
        last_ended_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        code:
          type: string
        message:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorItem'
    StreamType:
      type: string
      enum:
        - linear
        - event
      description: '`linear` (24/7) or `event` (up to 6h)'
    StreamMode:
      type: string
      enum:
        - video
        - audio
    StreamStatus:
      type: string
      enum:
        - idle
        - starting
        - live
        - reconnecting
        - stopping
        - errored
    ErrorItem:
      type: object
      properties:
        field:
          type: string
          nullable: true
        code:
          type: string
        message:
          type: string
        details:
          type: object
          properties: {}
          nullable: true
  responses:
    Unauthorized:
      description: Missing or invalid authentication
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            Unauthorized:
              summary: Success
              value:
                success: false
                code: UNAUTHORIZED
                message: >-
                  Missing authorization. Provide Authorization header or
                  X-API-Key header.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: RSA-signed JWT token
    apikey-header-X-API-Key:
      type: apiKey
      in: header
      name: X-API-Key
      description: HMAC-signed API key with prefix `tkb`

````