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

# Create a space

> Create a new space from a configuration object. Creates the directory and files.



## OpenAPI

````yaml /api-reference/openapi.json post /api/workspaces/create
openapi: 3.1.0
info:
  title: Friday Platform API
  description: >-
    The Friday daemon HTTP API for managing spaces, agents, sessions, and
    automations.
  version: 1.0.0
servers:
  - url: http://localhost:18080
    description: Local Friday daemon
security: []
tags:
  - name: Health
    description: Daemon health and status
  - name: Spaces
    description: Space management
  - name: Chat
    description: Conversational AI
  - name: Sessions
    description: Execution session management
  - name: Signals
    description: Trigger management
  - name: Agents
    description: Agent discovery and inspection
  - name: Artifacts
    description: File and data artifact management
  - name: Configuration
    description: Daemon configuration
paths:
  /api/workspaces/create:
    post:
      tags:
        - Spaces
      summary: Create a space
      description: >-
        Create a new space from a configuration object. Creates the directory
        and files.
      operationId: createWorkspace
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - config
              properties:
                config:
                  type: object
                  description: Full workspace configuration (workspace.yml content as JSON)
                workspaceName:
                  type: string
                  description: Optional directory name
                ephemeral:
                  type: boolean
                  description: Create as ephemeral (temporary) space
                  default: false
      responses:
        '200':
          description: Space created
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  workspace:
                    $ref: '#/components/schemas/WorkspaceInfo'
                  created:
                    type: boolean
                  workspacePath:
                    type: string
                  filesCreated:
                    type: array
                    items:
                      type: string
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |-
            curl -X POST http://localhost:18080/api/workspaces/create \
              -H 'Content-Type: application/json' \
              -d '{
                "config": {
                  "version": "1.0",
                  "workspace": {
                    "name": "my-space",
                    "description": "A new space"
                  }
                }
              }'
components:
  schemas:
    WorkspaceInfo:
      type: object
      properties:
        id:
          type: string
          example: abc123
        name:
          type: string
          example: my-space
        description:
          type: string
          example: My first space
        status:
          type: string
          example: active
        path:
          type: string
        createdAt:
          type: string
          format: date-time
        lastSeen:
          type: string
          format: date-time

````