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

# Create

> Create a bucket. Scope it to one project by passing that project's id or slug, or omit `project` for an organization-level shared bucket usable from every project. Names follow project-slug rules and are unique per organization.



## OpenAPI

````yaml /openapi.json post /v1/orgs/{orgId}/buckets
openapi: 3.1.0
info:
  title: Korve API
  version: 0.1.0
  description: >-
    Typed control plane for deploying applications and explicitly provisioning
    their managed infrastructure.
servers:
  - url: https://api.korve.dev
security: []
paths:
  /v1/orgs/{orgId}/buckets:
    post:
      tags:
        - buckets
      summary: Create
      description: >-
        Create a bucket. Scope it to one project by passing that project's id or
        slug, or omit `project` for an organization-level shared bucket usable
        from every project. Names follow project-slug rules and are unique per
        organization.
      operationId: buckets.create
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
      requestBody:
        required: true
        x-korve-max-bytes: 1048576
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  pattern: ^[a-z][a-z0-9-]{1,61}$
                  description: >-
                    Bucket name: 2-62 chars of lowercase letters, digits, and
                    hyphens, starting with a letter. Unique within the
                    organization.
                region:
                  type: string
                  description: >-
                    Storage area id (see regions.list); defaults to the platform
                    default. Set at creation.
                project:
                  type: string
                  description: >-
                    Project id (UUID) or slug to scope the bucket to. Omitted =
                    organization-level shared bucket.
              required:
                - name
      responses:
        '201':
          description: Bucket created.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                    pattern: ^[a-z][a-z0-9-]{1,61}$
                    description: Bucket name — unique within the organization.
                  region:
                    type: string
                    description: >-
                      The bucket's storage area id (see regions.list). Set at
                      creation.
                  project:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Slug of the project the bucket is scoped to; null for an
                      organization-level shared bucket usable from every
                      project.
                  objectCount:
                    type: integer
                    description: >-
                      Number of objects in the bucket. Refreshed hourly — recent
                      uploads and deletes may not be reflected yet. 0 until the
                      first refresh.
                  totalBytes:
                    type: integer
                    description: >-
                      Total size of the bucket's objects in bytes. Refreshed
                      hourly, like objectCount.
                  statsUpdatedAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                    description: >-
                      When objectCount and totalBytes were last refreshed
                      (hourly cadence); null until the first refresh.
                  createdAt:
                    type: string
                    format: date-time
                required:
                  - id
                  - name
                  - region
                  - project
                  - objectCount
                  - totalBytes
                  - statsUpdatedAt
                  - createdAt
        '402':
          description: Organization billing is not active.
        '404':
          description: No such project in this organization.
        '409':
          description: A bucket with that name already exists in this organization.
        '422':
          description: Invalid bucket name or unknown storage area.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````