> ## Documentation Index
> Fetch the complete documentation index at: https://microstrate-1133-notifications-prefs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get information about a stream

> Retrieves detailed information about a specific stream, including its configuration and current state. This endpoint provides metrics such as the number of messages, bytes used, first and last sequence numbers, and more.



## OpenAPI

````yaml /api-reference/endpoint/storage/openapi.json get /storage/streams/{name}
openapi: 3.0.3
info:
  title: quiva.ai Gateway
  description: >-
    A comprehensive interface for managing key-value stores, object stores,
    streams, and search indexing
  contact:
    name: quiva.ai Support
    url: https://quiva.ai/help-center/
  version: 1.0.0
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
paths:
  /storage/streams/{name}:
    get:
      tags:
        - Streams
      summary: Get information about a stream
      description: >-
        Retrieves detailed information about a specific stream, including its
        configuration and current state. This endpoint provides metrics such as
        the number of messages, bytes used, first and last sequence numbers, and
        more.
      operationId: getStream
      parameters:
        - $ref: '#/components/parameters/streamName'
      responses:
        '200':
          description: Successfully retrieved stream information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StreamResponse'
              examples:
                active_stream:
                  summary: Active stream with messages
                  value:
                    body:
                      config:
                        name: user-events
                        description: User activity events
                        subjects:
                          - events.user.*
                        retention: Limits
                        max_consumers: -1
                        max_msgs: 1000000
                        max_bytes: 104857600
                        max_age: 0
                        max_msg_size: -1
                        storage: file
                        discard: old
                        num_replicas: 3
                        duplicate_window: 120000000000
                        deny_delete: false
                        deny_purge: false
                      state:
                        messages: 15420
                        bytes: 2458320
                        first_seq: 1
                        first_ts: '2024-01-15T10:30:00Z'
                        last_seq: 15420
                        last_ts: '2024-03-15T14:22:33Z'
                        consumer_count: 3
                        num_subjects: 12
                      created: '2024-01-15T10:30:00Z'
                      cluster:
                        name: nats-cluster
                        leader: nats-1
                        replicas:
                          - name: nats-2
                            current: true
                            active: 0
                          - name: nats-3
                            current: true
                            active: 0
                empty_stream:
                  summary: Newly created empty stream
                  value:
                    body:
                      config:
                        name: new-stream
                        subjects:
                          - new.*
                        retention: Limits
                        storage: file
                        num_replicas: 1
                      state:
                        messages: 0
                        bytes: 0
                        first_seq: 0
                        last_seq: 0
                        consumer_count: 0
                        num_subjects: 0
                      created: '2024-03-15T14:00:00Z'
        '400':
          $ref: '#/components/responses/BadRequestError'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          $ref: '#/components/responses/NotFoundError'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    streamName:
      name: name
      in: path
      description: Name of the stream
      required: true
      schema:
        type: string
  schemas:
    StreamResponse:
      type: object
      properties:
        body:
          type: object
          additionalProperties: true
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message
  responses:
    BadRequestError:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: validation_error
    UnauthorizedError:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: unauthorized
    NotFoundError:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: not_found
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: internal_error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````