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

# List storage files



## OpenAPI

````yaml https://api.specular.dev/openapi.json get /branches/{branchId}/storage
openapi: 3.0.0
info:
  title: Specular API
  description: Backend-as-a-Service API for managing projects and branches
  version: 1.0.0
servers:
  - url: https://api.specular.dev
    description: Production server
  - url: http://localhost:3000
    description: Development server
security:
  - bearerAuth: []
paths:
  /branches/{branchId}/storage:
    get:
      tags:
        - Storage
      summary: List storage files
      parameters:
        - schema:
            type: string
          in: query
          name: cursor
          required: false
          description: Pagination cursor
        - schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 100
          in: query
          name: limit
          required: false
          description: Maximum number of files to return
        - schema:
            type: string
          in: path
          name: branchId
          required: true
      responses:
        '200':
          description: List of storage files
          content:
            application/json:
              schema:
                description: List of storage files
                type: object
                properties:
                  files:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                        size:
                          type: integer
                        lastModified:
                          type: string
                          format: date-time
                  nextCursor:
                    type: string
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Bearer authentication with API key (format: Bearer sk_xxx)'

````