---
title: Import Content
slug: test-archbee/import-content
docTags: 
createdAt: 2026-02-24T08:46:16.000Z
---

\{
"id": "efjLAjSBdq8EdIc7J5T2Q",
"type": "api-oas-v2",
"data": \{
"method": "POST",
"url": "[https://api.archbee.com/api/public-api/import-content](https://api.archbee.com/api/public-api/import-content)",
"servers": \[
\{
"url": "[https://api.archbee.com/api/public-api/import-content](https://api.archbee.com/api/public-api/import-content)",
"description": "Archbee API Server"
}
],
"name": "Import Content",
"description": "Create new Doc from imported markdown file. In case of zip file, create a new docTree and keeps archived tree structure.",
"contentType": "application/json",
"request": \{
"pathParameters": \[],
"headerParameters": \[
\{
"kind": "required",
"name": "Content-Type",
"type": "string",
"example": "multipart/form-data",
"description": "",
"default": "multipart/form-data"
}
],
"queryParameters": \[],
"bodyDataParameters": \[],
"formDataParameters": \[
\{
"kind": "required",
"name": "file",
"type": "file",
"example": "upload file",
"description": "Markdown file (.md) or archive (.zip) containing multiple markdown files.",
"default": "@markdowns.zip"
},
\{
"kind": "optional",
"name": "type",
"type": "string

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

:::

",
"example": "markdown",
"description": "Type of import file. Only markdown supported for now on this route.",
"default": "markdown"
}
],
"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": "Import OK status",
"jsonExample": "",
"isExpanded": true,
"schema": \[
\{
"kind": "optional",
"type": "object",
"description": "Import OK status",
"schema": \[
\{
"name": "status",
"kind": "optional",
"type": "string

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

:::

",
"description": "Response Status",
"example": "OK"
},
\{
"name": "data",
"kind": "optional",
"type": "object",
"description": "",
"example": "",
"schema": \[
\{
"name": "docId",
"kind": "optional",
"type": "string",
"description": "Created Doc id (first doc in case of archive tree).",
"example": "21-character\_\_string0"
}
]
}
],
"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": "mtcmfh3lQeFP6V1NOLfI0",
"language": "curl",
"label": "cURL",
"code": "curl --request POST \\\n     --url [https://api.archbee.com/api/public-api/import-content](https://api.archbee.com/api/public-api/import-content) \\\n     --header 'accept: application/json' \\\n     --header 'content-type: multipart/form-data' \\\n     --form 'file="@markdowns.zip"' \\\n     --form 'type="markdown"'"
},
\{
"id": "kNZwBl4k5Qk\_1\_FZPGuxk",
"language": "javascript",
"label": "javascript",
"code": "var myHeaders = new Headers();\nmyHeaders.append("accept", "application/json");\nmyHeaders.append("content-type", "multipart/form-data");\n\nvar formdata = new FormData();\nformdata.append("file", "@markdowns.zip");\nformdata.append("type", "markdown");\n\nvar requestOptions = \{\n   method: 'POST',\n   headers: myHeaders,\n   body: formdata,\n   redirect: 'follow'\n};\n\nfetch("[https://api.archbee.com/api/public-api/import-content](https://api.archbee.com/api/public-api/import-content)", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
},
\{
"id": "dqNgSW7ZPNAyM99tqP0G4",
"language": "ruby",
"label": "Ruby",
"code": "require "uri"\nrequire "net/http"\n\nurl = URI("[https://api.archbee.com/api/public-api/import-content")\n\nhttps](https://api.archbee.com/api/public-api/import-content"\)\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"] = "multipart/form-data"\nform\_data = \[\['file', File.open('undefined')],\['type', File.open('undefined')]]\nrequest.set\_form form\_data, 'multipart/form-data'\nresponse = https.request(request)\nputs response.read\_body\n"
},
\{
"id": "ADSCvrDIU2\_jXjVqhMZME",
"language": "python",
"label": "Python",
"code": "import requests\n\nurl = "[https://api.archbee.com/api/public-api/import-content"\n\npayload](https://api.archbee.com/api/public-api/import-content"\n\npayload) = \{}\nfiles=\[\n\n]\nheaders = \{\n   'accept': 'application/json',\n   'content-type': 'multipart/form-data'\n}\n\nresponse = requests.request("POST", url, headers=headers, data=payload, files=files)\n\nprint(response.text)\n"
}
],
"selectedLanguageId": "mtcmfh3lQeFP6V1NOLfI0"
},
"results": \{
"languages": \[
\{
"id": "VDkPvaHtRjerhYV-H4obK",
"language": "200",
"code": "// Import OK status\n\{\n  "status": "OK",\n  "data": \{\n    "docId": "21-character\_\_string0"\n  }\n}"
},
\{
"id": "wTKkJnthEfGi6mc4RAf\_f",
"language": "400",
"code": "// Invalid request\n\{\n  "status": "Not OK",\n  "messages": \[\n    "Some error message"\n  ]\n}"
}
],
"selectedLanguageId": "VDkPvaHtRjerhYV-H4obK"
}
},
"children": \[
\{
"text": ""
}
]
}















