---
agentTools:
  projectIndex: https://hermae.readme.io/llms.txt
---

# Create Space

Create a space: a new brain-space for an assistant.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.2.1",
    "title": "Hermae API",
    "description": "API for managing the Hermae application."
  },
  "servers": [
    {
      "url": "https://api.hermae.com"
    }
  ],
  "security": [
    {
      "HermaeKeyAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "HermaeKeyAuth": {
        "type": "apiKey",
        "name": "x-hermae-key",
        "in": "header",
        "description": "Your API key for authentication."
      }
    },
    "schemas": {
      "OrganizationID": {
        "type": "string",
        "example": "A1B2C3D4E6"
      }
    },
    "parameters": {
      "OrganizationID": {
        "schema": {
          "$ref": "#/components/schemas/OrganizationID"
        },
        "required": true,
        "name": "organizationId",
        "in": "path"
      }
    }
  },
  "paths": {
    "/organizations/{organizationId}/spaces": {
      "post": {
        "summary": "Create Space",
        "description": "Create a space: a new brain-space for an assistant.",
        "tags": [
          "Spaces"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/OrganizationID"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 16
                  },
                  "system_prompt": {
                    "type": "string"
                  },
                  "framework": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The created space document.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "number"
                    },
                    "returns": {
                      "type": "object",
                      "properties": {
                        "space": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 16
                            },
                            "organization_id": {
                              "type": "string"
                            },
                            "system_prompt": {
                              "type": "string"
                            },
                            "framework": {
                              "type": "string"
                            },
                            "created_at": {
                              "type": "string"
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "space"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "organization_id",
                            "created_at",
                            "object"
                          ]
                        }
                      },
                      "required": [
                        "space"
                      ]
                    }
                  },
                  "required": [
                    "status",
                    "returns"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "number"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "status",
                    "message"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 66,
      "2": 111,
      "3": 18,
      "4": 218,
      "5": 98,
      "6": 116,
      "7": 0,
      "8": 18,
      "9": 82,
      "10": 77,
      "11": 93
    }
  }
}
```