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

# List shelves

> List all shelves with pagination.



## OpenAPI

````yaml openapi.yaml get /v1/shelves
openapi: 3.1.0
info:
  description: >-
    Convert documents into structured Markdown filesystems that AI agents can
    hydrate and use in sandbox runtimes.
  title: Shelv API
  version: 1.0.0
servers:
  - url: https://api.shelv.dev
security:
  - bearerApiKey: []
paths:
  /v1/shelves:
    get:
      tags:
        - Shelves
      summary: List shelves
      description: List all shelves with pagination.
      parameters:
        - in: query
          name: page
          required: false
          schema:
            default: 1
            exclusiveMinimum: 0
            type: integer
        - in: query
          name: limit
          required: false
          schema:
            default: 20
            exclusiveMinimum: 0
            maximum: 100
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedShelfResponse'
          description: Paginated list of shelves
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Validation error
      security:
        - bearerApiKey: []
components:
  schemas:
    PaginatedShelfResponse:
      properties:
        data:
          items:
            properties:
              auditFindings:
                items:
                  properties:
                    check:
                      enum:
                        - naming
                        - file-size
                        - content
                        - structural
                      type: string
                    code:
                      type: string
                    file:
                      type: string
                    message:
                      type: string
                    severity:
                      enum:
                        - error
                        - review
                        - warning
                      type: string
                    sourceRef:
                      type: string
                  required:
                    - check
                    - severity
                    - message
                  type: object
                type:
                  - array
                  - 'null'
              auditStatus:
                enum:
                  - passed
                  - repaired
                  - review_required
                type:
                  - string
                  - 'null'
              auditSummary:
                type:
                  - string
                  - 'null'
              createdAt:
                format: date-time
                type: string
              currentVersionNumber:
                exclusiveMinimum: 0
                type:
                  - integer
                  - 'null'
              errorMessage:
                type:
                  - string
                  - 'null'
              failedAtStep:
                type:
                  - string
                  - 'null'
              mimeType:
                type: string
              name:
                type: string
              originalFileName:
                type: string
              pageCount:
                type:
                  - number
                  - 'null'
              publicId:
                pattern: ^shf_[0-9a-f]{24}$
                type: string
              quality:
                properties:
                  fallbackApplied:
                    type: boolean
                  granularity:
                    enum:
                      - document
                      - major_section
                      - numbered_unit
                      - subsection
                    type:
                      - string
                      - 'null'
                  mode:
                    enum:
                      - balanced
                      - strict
                      - best_effort
                    type: string
                  tier:
                    enum:
                      - full
                      - degraded
                    type:
                      - string
                      - 'null'
                required:
                  - mode
                  - tier
                  - granularity
                  - fallbackApplied
                type: object
              repairAttempts:
                minimum: 0
                type:
                  - integer
                  - 'null'
              reviewMode:
                type: boolean
              status:
                enum:
                  - uploading
                  - parsing
                  - structuring
                  - verifying
                  - review
                  - ready
                  - failed
                type: string
              storageSizeBytes:
                type:
                  - number
                  - 'null'
              template:
                type:
                  - string
                  - 'null'
              updatedAt:
                format: date-time
                type: string
              userId:
                type: string
            required:
              - publicId
              - userId
              - name
              - status
              - template
              - pageCount
              - storageSizeBytes
              - originalFileName
              - mimeType
              - errorMessage
              - failedAtStep
              - reviewMode
              - quality
              - auditStatus
              - auditSummary
              - auditFindings
              - repairAttempts
              - currentVersionNumber
              - createdAt
              - updatedAt
            type: object
          type: array
        pagination:
          properties:
            limit:
              type: number
            page:
              type: number
            total:
              type: number
            totalPages:
              type: number
          required:
            - page
            - limit
            - total
            - totalPages
          type: object
      required:
        - data
        - pagination
      type: object
    ErrorResponse:
      properties:
        code:
          type: string
        details: {}
        message:
          type: string
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearerApiKey:
      bearerFormat: APIKey
      scheme: bearer
      type: http

````