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

# Create a workspace in your company

> ⚠️ **ALPHA ENDPOINT** - This endpoint is in alpha and subject to breaking changes. Use with caution in production environments.

Create a new workspace within your company. Available to company and instance-level administrators.



## OpenAPI

````yaml /api-reference/openapi-v3-company.yaml post /api/v3/company/workspaces
openapi: 3.0.3
info:
  title: Paradigm API
  version: xenial-xerus (v3-company)
  description: >-
    A versatile and adaptable tool designed to integrate Generative AI into your
    applications
servers:
  - url: https://paradigm.lighton.ai
security: []
tags:
  - name: Workspaces
    description: Operations about workspaces
paths:
  /api/v3/company/workspaces:
    post:
      tags:
        - Workspaces
      summary: Create a workspace in your company
      description: >-
        ⚠️ **ALPHA ENDPOINT** - This endpoint is in alpha and subject to
        breaking changes. Use with caution in production environments.


        Create a new workspace within your company. Available to company and
        instance-level administrators.
      operationId: api_v3_company_workspaces_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompanyWorkspaceCreateV3Request'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CompanyWorkspaceCreateV3Request'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CompanyWorkspaceCreateV3Request'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyWorkspaceV3DetailsResponse'
          description: Workspace created successfully
        '400':
          description: >-
            Invalid input parameters - missing required fields, invalid
            workspace name, 
        '401':
          description: Authentication required - missing or invalid credentials
        '403':
          description: >-
            Permission denied - user does not have permission to create
            workspaces
        '409':
          description: Conflict - workspace name already exists in the company
        '500':
          description: Internal server error
      security:
        - bearerAuth: []
components:
  schemas:
    CompanyWorkspaceCreateV3Request:
      type: object
      description: V3 Request serializer for creating a workspace in the user's company.
      properties:
        name:
          type: string
          maxLength: 100
        description:
          type: string
          default: ''
      required:
        - name
    CompanyWorkspaceV3DetailsResponse:
      type: object
      description: V3 Response serializer for company workspace creation and retrieval.
      properties:
        id:
          type: integer
        name:
          type: string
        workspace_type:
          type: string
        document_upload_method:
          type: string
        description:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        user_role:
          type: string
          readOnly: true
        used_storage:
          type: number
          format: double
        files_count:
          type: integer
      required:
        - created_at
        - description
        - document_upload_method
        - files_count
        - id
        - name
        - updated_at
        - used_storage
        - user_role
        - workspace_type
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your auth token.

````