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

# Configure a private bucket



## OpenAPI

````yaml openapi.json PUT /v1/storage
openapi: 3.1.0
info:
  title: DocKiln API
  version: 1.1.0-review
  description: >-
    Workspace-scoped document generation. All timestamps are Unix milliseconds
    unless documented otherwise. The parity additions in this review
    specification require the matching server build. Dynamic rendering also
    requires operator configuration.
servers:
  - url: https://dockiln.io
    description: DocKiln hosted API
security: []
paths:
  /v1/storage:
    put:
      summary: Configure encrypted S3 destination
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - $ref: '#/components/schemas/S3Credentials'
                - $ref: '#/components/schemas/R2Credentials'
                - $ref: '#/components/schemas/GcsCredentials'
      responses:
        '200':
          description: Configure encrypted S3 destination
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/S3Settings'
          headers:
            X-Request-Id:
              description: Server-generated correlation ID
              schema:
                type: string
        default:
          description: Validation, authorization, quota or service error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              description: Server-generated correlation ID
              schema:
                type: string
      security:
        - session: []
components:
  schemas:
    S3Credentials:
      type: object
      properties:
        bucket:
          type: string
        region:
          type: string
        prefix:
          type: string
        accessKeyId:
          type: string
          writeOnly: true
        secretAccessKey:
          type: string
          writeOnly: true
        provider:
          type: string
          enum:
            - s3
      required:
        - bucket
        - region
        - accessKeyId
        - secretAccessKey
    R2Credentials:
      type: object
      properties:
        provider:
          type: string
          enum:
            - r2
        accountId:
          type: string
          pattern: ^[0-9a-f]{32}$
        bucket:
          type: string
        prefix:
          type: string
        accessKeyId:
          type: string
          writeOnly: true
        secretAccessKey:
          type: string
          writeOnly: true
      required:
        - provider
        - accountId
        - bucket
        - accessKeyId
        - secretAccessKey
    GcsCredentials:
      type: object
      properties:
        provider:
          type: string
          enum:
            - gcs
        projectId:
          type: string
        bucket:
          type: string
        prefix:
          type: string
        clientEmail:
          type: string
          format: email
          writeOnly: true
        privateKey:
          type: string
          writeOnly: true
      required:
        - provider
        - projectId
        - bucket
        - clientEmail
        - privateKey
    S3Settings:
      type: object
      properties:
        bucket:
          type: string
        region:
          type: string
        prefix:
          type: string
        provider:
          type: string
          enum:
            - s3
            - r2
            - gcs
        accountId:
          type: string
        projectId:
          type: string
    Problem:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    session:
      type: apiKey
      in: cookie
      name: dockiln

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.