---
title: Create Space
slug: test-archbee/create-space
docTags: 
createdAt: 2026-02-24T08:46:16.000Z
---

\{
"id": "VJIVTpS1qu2CU0ET2mYo7",
"type": "api-oas-v2",
"data": \{
"method": "POST",
"url": "[https://api.archbee.com/api/public-api/space/create](https://api.archbee.com/api/public-api/space/create)",
"servers": \[
\{
"url": "[https://api.archbee.com/api/public-api/space/create](https://api.archbee.com/api/public-api/space/create)",
"description": "Archbee API Server"
}
],
"name": "Create Space",
"description": "Create a new space with desired fields, return its id. New space will inherit apiKey.",
"contentType": "application/json",
"request": \{
"pathParameters": \[],
"headerParameters": \[
\{
"kind": "required",
"name": "Content-Type",
"type": "string",
"example": "application/json",
"description": ""
}
],
"queryParameters": \[],
"bodyDataParameters": \[
\{
"kind": "required",
"name": "body",
"type": "object",
"description": "",
"schema": \[
\{
"name": "name",
"kind": "optional",
"type": "string",
"description": "name of space",
"example": ""
},
\{
"name": "isLlmEnabled",
"kind": "optional",
"type": "boolean",
"description": "wether AI will be enabled",
"example": ""
},
\{
"name": "isReviewSystemEnabled",
"kind": "optional",
"type": "boolean",
"description": "wether review system will be enaled",
"example": ""
},
\{
"name": "docSpaceGroupId",
"kind": "optional",
"type": "string",
"description": "id of space group to include this space in",
"example": ""
}
],
"isExpanded": true
}
],
"formDataParameters": \[],
"oAuthParameters": \[
\{
"id": "bearerAuth",
"name": "bearerAuth",
"kind": "optional",
"type": "http",
"description": "Requires the&#x20;

:::Iframe{code="<code>"}

:::

Authorization header in the form&#x20;

:::Iframe{code="<code>"}

:::

Authorization: Bearer \{base64(docSpaceId\~apiKey)} Where the token is base64 encoding of docSpaceId, tilde, and apiKey.",
"scheme": "bearer"
}
]
},
"responses": \[
\{
"statusCode": "200",
"description": "Process status",
"jsonExample": "",
"isExpanded": true,
"schema": \[
\{
"kind": "optional",
"type": "object",
"description": "Process status",
"schema": \[
\{
"name": "status",
"kind": "optional",
"type": "string

:::Iframe{code="<OK>"}

:::

",
"description": "Response Status",
"example": ""
},
\{
"name": "data",
"kind": "optional",
"type": "object",
"description": "DocSpace id",
"example": "",
"schema": \[
\{
"name": "newDocSpaceId",
"kind": "optional",
"type": "string",
"description": "doc space id",
"example": ""
}
]
}
],
"isExpanded": true
}
]
},
\{
"statusCode": "400",
"description": "Invalid request",
"jsonExample": "",
"isExpanded": true,
"schema": \[
\{
"kind": "optional",
"type": "object",
"description": "",
"customType": "Response400",
"schema": \[
\{
"name": "status",
"kind": "optional",
"type": "string\<OK | Not OK>",
"description": "Response Status",
"example": "Not OK"
},
\{
"name": "messages",
"kind": "optional",
"type": "array",
"description": "Array of messages",
"example": "\["Some error message"]",
"itemType": "string",
"customType": "string\[]",
"itemExample": "Some error message",
"itemDefault": ""
}
],
"modelRef": "#/components/schemas/Response400",
"isExpanded": true
}
]
}
],
"hasXCodeSamples": false,
"examples": \{
"languages": \[
\{
"id": "5x1X6zTXEnsAfl3k2JmgJ",
"language": "curl",
"label": "cURL",
"code": "curl --request POST \\\n     --url [https://api.archbee.com/api/public-api/space/create](https://api.archbee.com/api/public-api/space/create) \\\n     --header 'accept: application/json'"
},
\{
"id": "zGQwjJDFjlJEIs3lCCJTH",
"language": "javascript",
"label": "javascript",
"code": "var myHeaders = new Headers();\nmyHeaders.append("accept", "application/json");\nmyHeaders.append("content-type", "application/json");\n\nvar requestOptions = \{\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch("[https://api.archbee.com/api/public-api/space/create](https://api.archbee.com/api/public-api/space/create)", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
},
\{
"id": "xQo1e7Uvjmen4HlRz6PZY",
"language": "ruby",
"label": "Ruby",
"code": "require "uri"\nrequire "json"\nrequire "net/http"\n\nurl = URI("[https://api.archbee.com/api/public-api/space/create")\n\nhttps](https://api.archbee.com/api/public-api/space/create"\)\n\nhttps) = Net\::HTTP.new(url.host, url.port)\nhttps.use\_ssl = true\n\nrequest = Net\::HTTP\::Post.new(url)\nrequest\["accept"] = "application/json"\nrequest\["content-type"] = "application/json"\n\nresponse = https.request(request)\nputs response.read\_body\n"
},
\{
"id": "aU-SsSiqHTSBc-uWn\_dxq",
"language": "python",
"label": "Python",
"code": "import requests\nimport json\n\nurl = "[https://api.archbee.com/api/public-api/space/create"\n\npayload](https://api.archbee.com/api/public-api/space/create"\n\npayload) = \{}\nheaders = \{\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request("POST", url, headers=headers, data=payload)\n\nprint(response.text)\n"
}
],
"selectedLanguageId": "5x1X6zTXEnsAfl3k2JmgJ"
},
"results": \{
"languages": \[
\{
"id": "m78mTecvFL-d9dRzyA6bW",
"language": "200",
"code": "// Process status\n\{\n  "status": "",\n  "data": \{\n    "newDocSpaceId": ""\n  }\n}"
},
\{
"id": "9MSPv6ViovD84zN8hseE9",
"language": "400",
"code": "// Invalid request\n\{\n  "status": "Not OK",\n  "messages": \[\n    "Some error message"\n  ]\n}"
}
],
"selectedLanguageId": "m78mTecvFL-d9dRzyA6bW"
}
},
"children": \[
\{
"text": ""
}
]
}











