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

# Create Workspace

> Creates a workspace. Only `name` is required.




## OpenAPI

````yaml /property-management-api-reference/openapi.yaml post /workspaces
openapi: 3.1.0
info:
  title: SKOR Property Management API
  version: 1.0.0
  description: |
    The Property Management API is a standalone landlord API for managing
    accessible workspaces and their properties.

    The Modular API and Property Management API use the same API-key model and
    shared token endpoint.

    All responses use the SKOR v1 response envelope. Successful responses
    contain `status`, `message`, and `data`. Validation errors can also contain
    an `errors` array with field-specific messages.
servers:
  - url: https://api.skortorent.com/api/v1/property-management
    description: Live
  - url: https://dev-api.skortorent.com/api/v1/property-management
    description: Sandbox
security:
  - PropertyManagementBearer: []
tags:
  - name: Workspace
    description: Create and list workspaces for the authenticated landlord.
  - name: Property
    description: Create, list, retrieve, update, and delete properties.
paths:
  /workspaces:
    post:
      tags:
        - Workspace
      summary: Create Workspace
      description: |
        Creates a workspace. Only `name` is required.
      operationId: createWorkspace
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWorkspaceRequest'
      responses:
        '201':
          description: Workspace created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceSuccessResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '422':
          $ref: '#/components/responses/BadRequest'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  schemas:
    CreateWorkspaceRequest:
      type: object
      required:
        - name
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
          description: Workspace name.
          example: Workspace Name
    WorkspaceSuccessResponse:
      type: object
      required:
        - status
        - message
        - data
      properties:
        status:
          type: string
          const: success
        message:
          type: string
          example: Workspace created successfully
        data:
          $ref: '#/components/schemas/WorkspaceData'
    WorkspaceData:
      type: object
      required:
        - workspace
      properties:
        workspace:
          $ref: '#/components/schemas/Workspace'
    ErrorResponse:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          const: error
        message:
          type: string
          example: Request validation failed
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssue'
    Workspace:
      type: object
      required:
        - workspace_id
        - workspace_name
      properties:
        workspace_id:
          type: string
          description: Public workspace UUID, not the MongoDB `_id`.
          example: Ab12Cd
        workspace_name:
          type: string
          example: Brand new workspace
    ValidationIssue:
      type: object
      required:
        - field
        - message
      properties:
        field:
          type: string
          description: Request field that failed validation.
          example: properties.0.street
        message:
          type: string
          description: Human-readable validation message.
          example: properties.0.street is required
  responses:
    Unauthorized:
      description: >-
        Authentication is missing, invalid, expired, or uses the wrong token
        type.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: >-
        The landlord cannot access the workspace or lacks permission for the
        operation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    BadRequest:
      description: The request is invalid or failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            status: error
            message: Request validation failed
            errors:
              - field: properties.0.street
                message: properties.0.street is required
    ServerError:
      description: An unexpected server error occurred.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    PropertyManagementBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |
        Generate a shared token via `/authenticate/token`, then pass it as
        `Authorization: Bearer <token>`.

````