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

> ## Agent Instructions
> Treat Stackdome as an application-delivery platform for coding agents and developers, not as a Kubernetes dashboard.
> Prefer the Stackdome agent plugin as the user entry point and the stackdome CLI as the execution interface.
> Route agents who need the maintained deploy skill to npx skills add stackdome/skills and the complete operational workflow to /guides/ai-agents.
> Verify commands and flags with stackdome --help. Run stackdome init before authoring stackfile.yaml and stackdome validate before deploying.
> Use -o json for automation and verify documented terminal states before claiming success.
> Never request a user's account password. Use API-token authentication.
> During alpha, Stackdome Cloud is ephemeral and capacity-limited, and each organization can connect one cluster.
> Do not expose Kubernetes as a user concern unless the task is self-hosting or infrastructure architecture.

# Create a new workspace user



## OpenAPI

````yaml /openapi.yaml post /api/v1/organizations/{org_id}/projects/{project_name}/workspace-users
openapi: 3.0.0
info:
  description: >-
    Deploy, debug, and operate applications through the Stackdome REST API on
    Stackdome Cloud or a self-hosted installation. This API is in alpha and may
    change before general availability.
  title: Stackdome API
  version: 0.0.1-alpha
servers:
  - url: /
security: []
paths:
  /api/v1/organizations/{org_id}/projects/{project_name}/workspace-users:
    post:
      summary: Create a new workspace user
      parameters:
        - description: The ID of the organization
          explode: false
          in: path
          name: org_id
          required: true
          schema:
            type: string
          style: simple
        - description: The name of the project
          explode: false
          in: path
          name: project_name
          required: true
          schema:
            type: string
          style: simple
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkspaceUser'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceUser'
          description: WorkspaceUser created successfully
        '400':
          description: Invalid request payload
        '401':
          description: Unauthorized
        '500':
          description: Internal server error
      security:
        - Bearer: []
components:
  schemas:
    WorkspaceUser:
      example:
        updated_at: '2000-01-23T04:56:07.000Z'
        user_id: user_id
        project_id: project_id
        org_id: org_id
        created_at: '2000-01-23T04:56:07.000Z'
        id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        workspaces:
          - workspaces
          - workspaces
        state: null
        message: message
        version: 0
        status:
          service_account_name: service_account_name
          cluster_url: cluster_url
          observed_version: 6
          provisioned_namespaces:
            - namespace: namespace
              workspace_name: workspace_name
            - namespace: namespace
              workspace_name: workspace_name
          cluster_ca_cert: cluster_ca_cert
          conditions:
            - reason: reason
              last_transition_time: '2000-01-23T04:56:07.000Z'
              type: type
              message: message
              observed_generation: 1
              status: status
            - reason: reason
              last_transition_time: '2000-01-23T04:56:07.000Z'
              type: type
              message: message
              observed_generation: 1
              status: status
          serviceaccount_token: serviceaccount_token
      properties:
        id:
          format: uuid
          type: string
        user_id:
          type: string
        org_id:
          type: string
        project_id:
          type: string
        workspaces:
          items:
            type: string
          minItems: 1
          type: array
        version:
          readOnly: true
          type: integer
        status:
          $ref: '#/components/schemas/WorkspaceUserStatus'
        state:
          $ref: '#/components/schemas/WorkspaceUserState'
        message:
          type: string
        created_at:
          format: date-time
          type: string
        updated_at:
          format: date-time
          type: string
      required:
        - workspaces
      type: object
    WorkspaceUserStatus:
      example:
        service_account_name: service_account_name
        cluster_url: cluster_url
        observed_version: 6
        provisioned_namespaces:
          - namespace: namespace
            workspace_name: workspace_name
          - namespace: namespace
            workspace_name: workspace_name
        cluster_ca_cert: cluster_ca_cert
        conditions:
          - reason: reason
            last_transition_time: '2000-01-23T04:56:07.000Z'
            type: type
            message: message
            observed_generation: 1
            status: status
          - reason: reason
            last_transition_time: '2000-01-23T04:56:07.000Z'
            type: type
            message: message
            observed_generation: 1
            status: status
        serviceaccount_token: serviceaccount_token
      properties:
        observed_version:
          type: integer
        provisioned_namespaces:
          items:
            $ref: >-
              #/components/schemas/WorkspaceUserStatus_provisioned_namespaces_inner
          type: array
        service_account_name:
          nullable: true
          type: string
        serviceaccount_token:
          nullable: true
          type: string
        cluster_ca_cert:
          nullable: true
          type: string
        cluster_url:
          nullable: true
          type: string
        conditions:
          items:
            $ref: '#/components/schemas/Condition'
          type: array
      type: object
    WorkspaceUserState:
      enum:
        - Completed
        - Error
        - Pending
      type: string
    WorkspaceUserStatus_provisioned_namespaces_inner:
      example:
        namespace: namespace
        workspace_name: workspace_name
      properties:
        workspace_name:
          type: string
        namespace:
          type: string
      type: object
    Condition:
      additionalProperties: false
      example:
        reason: reason
        last_transition_time: '2000-01-23T04:56:07.000Z'
        type: type
        message: message
        observed_generation: 1
        status: status
      properties:
        type:
          type: string
        status:
          type: string
        observed_generation:
          type: integer
        last_transition_time:
          format: date-time
          type: string
        reason:
          type: string
        message:
          type: string
      type: object
  securitySchemes:
    Bearer:
      bearerFormat: JWT
      scheme: bearer
      type: http

````