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

# Create initial account

> Creates the first organization and administrator and starts a session. Only available before initialization.



## OpenAPI

````yaml /api/openapi.yaml post /api/v1/auth/local/bootstrap
openapi: 3.1.0
info:
  title: OpenCluster Control Plane API
  version: 0.1.0
  description: >
    Use the OpenAPI document for the deployed version. Product operations use
    session

    cookies and resolve the Organization from the authenticated User.

    Include the configured public Origin on write requests.

    Collection cursors are opaque. Pass next unchanged to the cursor parameter

    documented by the operation. An empty next value ends pagination.

    Use HTTP status codes for error handling rather than parsing error text.
  license:
    name: Apache-2.0
servers:
  - url: http://localhost:8081
    description: Local self-hosted deployment
security: []
tags:
  - name: Authentication
  - name: Organizations
  - name: Members
  - name: Sessions
  - name: Policy
  - name: Audit
  - name: Integration Types
  - name: Integrations
  - name: Relays
  - name: Incidents
  - name: Investigations
  - name: Conversations
  - name: Postmortems
  - name: Slack
  - name: Webhook Intake
paths:
  /api/v1/auth/local/bootstrap:
    post:
      tags:
        - Authentication
      summary: Create initial account
      description: >-
        Creates the first organization and administrator and starts a session.
        Only available before initialization.
      operationId: bootstrapLocalAdmin
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LocalBootstrapRequest'
        required: true
      responses:
        '201':
          $ref: '#/components/responses/BootstrapCreated'
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/Unavailable'
      security: []
components:
  schemas:
    LocalBootstrapRequest:
      type: object
      additionalProperties: false
      required:
        - organizationName
        - email
        - password
      properties:
        organizationName:
          type: string
          minLength: 1
          maxLength: 256
          example: Platform Team
        email:
          type: string
          format: email
          maxLength: 254
          example: operator@example.invalid
        displayName:
          type: string
          minLength: 1
          maxLength: 256
          example: On-call Operator
        password:
          type: string
          format: password
          minLength: 1
          maxLength: 1024
          writeOnly: true
          description: >-
            12–1024 UTF-8 bytes. String length bounds count characters. Clients
            must measure UTF-8 bytes.
    BootstrapResult:
      type: object
      additionalProperties: false
      required:
        - bootstrapped
      properties:
        bootstrapped:
          type: boolean
          const: true
    Error:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: string
          minLength: 1
          maxLength: 1024
          example: the requested resource is not available to this caller
        reason:
          type: string
          enum:
            - credential_rejected
            - session_expired
        requires:
          type: string
          minLength: 1
          maxLength: 128
  responses:
    BootstrapCreated:
      description: >-
        Initial Organization, Admin User, password, Membership, and session
        created atomically.
      headers:
        Set-Cookie:
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BootstrapResult'
    BadRequest:
      description: Invalid request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Membership, permission, or cookie origin was rejected.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: The requested state conflicts with durable state.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: A bounded concurrency or request limit was reached.
      headers:
        Retry-After:
          schema:
            type: integer
            minimum: 1
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: A required configured capability is unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'

````

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