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

# Create a workspace

> Requires organization administration and the existing organization member-management credential permission. The server generates the workspace ID and records an audit event. Names are unique within the organization, ignoring case.



## OpenAPI

````yaml https://api.thundercompute.com:8443/openapi.json post /workspaces
openapi: 3.1.0
info:
  contact:
    email: support@thundercompute.com
    name: Thunder Compute API Support
    url: https://thundercompute.com/support
  description: >-
    Retrieve current GPU availability using mode-less spec keys

    Recommended for new integrations. The /status and /v1/status endpoints
    retain their legacy configuration keys for compatibility.
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  termsOfService: http://swagger.io/terms/
  title: Thunder Compute API
  version: '1.0'
servers:
  - description: Production server
    url: https://api.thundercompute.com:8443/v1
  - description: Production server
    url: https://api.thundercompute.com:8443
security: []
externalDocs:
  description: ''
  url: ''
paths:
  /workspaces:
    post:
      tags:
        - Workspaces
      summary: Create a workspace
      description: >-
        Requires organization administration and the existing organization
        member-management credential permission. The server generates the
        workspace ID and records an audit event. Names are unique within the
        organization, ignoring case.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/thundertypes.WorkspaceCreateRequest'
              summary: body
              description: Workspace name
        description: Workspace name
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/thundertypes.Workspace'
          description: Created
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/thundertypes.ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/thundertypes.ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/thundertypes.ErrorResponse'
          description: Forbidden
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/thundertypes.ErrorResponse'
          description: Conflict
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/thundertypes.ErrorResponse'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/thundertypes.ErrorResponse'
          description: Service Unavailable
      security:
        - ApiKeyAuth: []
components:
  schemas:
    thundertypes.WorkspaceCreateRequest:
      properties:
        name:
          type: string
      required:
        - name
      type: object
    thundertypes.Workspace:
      properties:
        created_at:
          type: string
        created_by:
          type: string
        id:
          type: string
        name:
          type: string
        role:
          $ref: '#/components/schemas/thundertypes.WorkspaceRole'
          description: Role is the caller's effective role, set only by the list endpoint.
        updated_at:
          type: string
      type: object
    thundertypes.ErrorResponse:
      properties:
        code:
          example: 400
          type: integer
        error:
          example: invalid_request
          type: string
        message:
          example: The request is malformed
          type: string
      type: object
    thundertypes.WorkspaceRole:
      enum:
        - viewer
        - developer
        - deny
      type: string
      x-enum-varnames:
        - WorkspaceViewer
        - WorkspaceDeveloper
        - WorkspaceDeny
  securitySchemes:
    ApiKeyAuth:
      description: >-
        Bearer token authentication. Provide your API token prefixed with
        "Bearer ", e.g. "Bearer your-api-token".
      in: header
      name: Authorization
      type: apiKey

````

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