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

# Ensure personal Hobby workspace

> Creates or returns the caller's one-seat personal Clerk organization and reassigns any legacy user-scoped agents, API keys, and subscriptions onto it. Activate the returned ``clerk_org_id`` in the Clerk session before calling organization-scoped APIs.



## OpenAPI

````yaml /openapi.json post /api/v1/organizations/personal-workspace
openapi: 3.1.0
info:
  title: SEAOTTER API
  description: >-
    SEAOTTER control plane API — managed Hermes Agent hosting. Authenticate with
    a Clerk session JWT (web) or an org-scoped API key (`Authorization: Bearer
    so_…` from POST /api/v1/api-keys). Public developer docs:
    https://docs.seaotter.dev
  version: 1.0.0
servers:
  - url: https://api.seaotter.dev
    description: Production
  - url: https://seaotter-api-bpenevambq-uc.a.run.app
    description: Production (Cloud Run URL)
  - url: http://localhost:8000
    description: Local development
security: []
tags:
  - name: agents
    description: Provision and operate Hermes agents
  - name: billing
    description: Stripe plans and subscriptions
  - name: users
    description: Current user and control-plane API keys
  - name: organizations
    description: Active organization context
  - name: audit
    description: Organization audit log (Enterprise)
  - name: health
    description: Liveness probes
paths:
  /api/v1/organizations/personal-workspace:
    post:
      tags:
        - organizations
        - organizations
      summary: Ensure personal Hobby workspace
      description: >-
        Creates or returns the caller's one-seat personal Clerk organization and
        reassigns any legacy user-scoped agents, API keys, and subscriptions
        onto it. Activate the returned ``clerk_org_id`` in the Clerk session
        before calling organization-scoped APIs.
      operationId: >-
        bootstrap_personal_workspace_api_v1_organizations_personal_workspace_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PersonalWorkspaceOut'
        '401':
          description: Missing or invalid Bearer token (Clerk JWT or so_ API key)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '403':
          description: Authenticated but not permitted (role or plan gate)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
      security:
        - HTTPBearer: []
components:
  schemas:
    PersonalWorkspaceOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        clerk_org_id:
          type: string
          title: Clerk Org Id
        name:
          type: string
          title: Name
        slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Slug
        created:
          type: boolean
          title: Created
          default: false
        reassigned:
          additionalProperties:
            type: integer
          type: object
          title: Reassigned
          description: Counts of legacy user-scoped resources moved onto this workspace
      type: object
      required:
        - id
        - clerk_org_id
        - name
      title: PersonalWorkspaceOut
    ErrorBody:
      properties:
        detail:
          anyOf:
            - type: string
            - items: {}
              type: array
          title: Detail
          description: Human-readable error, or validation error list
          examples:
            - Agent not found
      type: object
      required:
        - detail
      title: ErrorBody
      description: Standard FastAPI / SEAOTTER error payload.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT or so_ API key
      description: >-
        Clerk session JWT for the web app (active organization required), or an
        organization-scoped SEAOTTER access key (`so_…`) from POST
        /api/v1/api-keys for programmatic / docs try-it / MCP use. The same
        `so_…` value is both `Authorization: Bearer so_…` and
        `SEAOTTER_API_KEY`.

````