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

# Create bucket

> Create a bucket for the caller's organization object storage credentials.



## OpenAPI

````yaml https://engine.tensorpool.dev/openapi.json put /object-storage/bucket/create/{bucket_name}
openapi: 3.1.0
info:
  title: TensorPool API
  description: >
    TensorPool API


    All API endpoints (except `/healthz`) require authentication using your
    TensorPool API key.


    ### For REST Endpoints


    Include your API key in the `Authorization` header as a Bearer token:


    ```bash

    Authorization: Bearer YOUR_TENSORPOOL_KEY

    ```

    ### For WebSocket Endpoints


    Send your API key as the first message in JSON format:


    ```json

    {"TENSORPOOL_KEY": "YOUR_TENSORPOOL_KEY"}

    ```
  version: 0.1.0
servers: []
security: []
tags:
  - name: job
    description: >-
      GPU job execution and management. Run workloads on ephemeral clusters with
      automatic cleanup.
  - name: cluster
    description: >-
      GPU cluster provisioning and lifecycle management. Create persistent
      compute resources.
  - name: storage
    description: >-
      Shared storage volume management. Persistent storage that can be attached
      to eligible clusters.
  - name: object-storage
    description: S3-compatible object storage management.
  - name: ssh
    description: SSH key management for secure cluster access.
  - name: user
    description: >-
      User account management including balance, billing, and organization
      operations.
  - name: requests
    description: Cloud resource provisioning request tracking and status monitoring.
paths:
  /object-storage/bucket/create/{bucket_name}:
    put:
      tags:
        - object-storage
      summary: Create bucket
      description: >-
        Create a bucket for the caller's organization object storage
        credentials.
      operationId: bucket_create_object_storage_bucket_create__bucket_name__put
      parameters:
        - name: bucket_name
          in: path
          required: true
          schema:
            type: string
            title: Bucket Name
      responses:
        '201':
          description: Bucket created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectStorageBucketCreateResponse'
        '400':
          description: Invalid bucket name.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectStorageDisableResponse'
        '403':
          description: Access denied for bucket creation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectStorageDisableResponse'
        '409':
          description: Bucket already exists.
          content:
            application/json:
              example:
                message: Bucket my-bucket already exists.
              schema:
                $ref: '#/components/schemas/ObjectStorageDisableResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Failed to create object storage bucket.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectStorageDisableResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    ObjectStorageBucketCreateResponse:
      properties:
        message:
          type: string
          title: Message
          description: Status message
      type: object
      required:
        - message
      title: ObjectStorageBucketCreateResponse
      description: Response model for creating object-storage buckets.
    ObjectStorageDisableResponse:
      properties:
        message:
          type: string
          title: Message
          description: Status message
      type: object
      required:
        - message
      title: ObjectStorageDisableResponse
      description: Response model for disabling object storage access.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````