> ## 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.

# Create object store bucket

> Creates a new object store bucket



## OpenAPI

````yaml /api-reference/endpoint/storage/openapi.json post /storage/obj
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/obj:
    post:
      tags:
        - Object Store
      summary: Create object store bucket
      description: Creates a new object store bucket
      operationId: createObjectStoreBucket
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateObjectBucketRequest'
            examples:
              basic:
                summary: Basic bucket creation
                value:
                  bucket: app-documents
                  description: Application document storage
              with_limits:
                summary: Bucket with size limits
                value:
                  bucket: user-uploads
                  description: User file uploads with 10GB limit
                  max_bytes: 10737418240
                  replicas: 3
                  storage: file
              memory_storage:
                summary: In-memory bucket for caching
                value:
                  bucket: temp-cache
                  description: Temporary cache storage
                  max_bytes: 536870912
                  replicas: 1
                  storage: memory
      responses:
        '200':
          $ref: '#/components/responses/SuccessResponse'
        '400':
          $ref: '#/components/responses/BadRequestError'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    CreateObjectBucketRequest:
      type: object
      required:
        - bucket
      properties:
        bucket:
          type: string
          description: Name of the bucket to create
        description:
          type: string
          description: Description of the bucket
        max_bytes:
          type: integer
          description: Maximum size of the bucket in bytes
          minimum: 1
        replicas:
          type: integer
          description: Number of replicas
          minimum: 1
          default: 1
        storage:
          $ref: '#/components/schemas/StorageType'
    StorageType:
      type: string
      enum:
        - file
        - memory
    SuccessMessage:
      type: object
      properties:
        message:
          type: string
          example: success
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message
  responses:
    SuccessResponse:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SuccessMessage'
          example:
            message: success
    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
    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

````