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

# Get storage configuration

> Returns the current storage configuration including file size limits (admin only)



## OpenAPI

````yaml https://raw.githubusercontent.com/InsForge/InsForge/main/openapi/storage.yaml get /api/storage/config
openapi: 3.0.3
info:
  title: Insforge Storage API
  version: 2.0.0
  description: Bucket-based storage system similar to S3
servers: []
security: []
paths:
  /api/storage/config:
    get:
      tags:
        - Admin
      summary: Get storage configuration
      description: >-
        Returns the current storage configuration including file size limits
        (admin only)
      responses:
        '200':
          description: Storage configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StorageConfig'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden - Admin only
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKey: []
components:
  schemas:
    StorageConfig:
      type: object
      required:
        - id
        - maxFileSizeMb
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
          format: uuid
        maxFileSizeMb:
          type: integer
          minimum: 1
          maximum: 200
          description: Maximum file upload size in megabytes
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      required:
        - error
        - message
        - statusCode
      properties:
        error:
          type: string
          description: Error code for programmatic handling
          example: VALIDATION_ERROR
        message:
          type: string
          description: Human-readable error message
          example: Invalid request
        statusCode:
          type: integer
          description: HTTP status code
          example: 400
        nextActions:
          type: string
          description: Suggested action to resolve the error
          example: Check your request parameters
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````