---
title: Exportation de l'organisation
slug: exportation-de-lorganisation
docTags: 
createdAt: 2026-02-24T08:46:16.482Z
---

{
  "id": "g2iWHm7wkkj_NexPQL2mZ",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.archbee.com/api/public-api/team/export",
    "servers": [
      {
        "url": "https://api.archbee.com/api/public-api/team/export",
        "description": "Archbee API Server"
      }
    ],
    "name": "Organization Export",
    "description": "<p>Export assets, spaces with documents, team and user data from Archbee given <code>teamId</code>. Use <code>--output &#x3C;export_file_path></code></p>",
    "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": "teamId",
              "kind": "required",
              "type": "string",
              "description": "Team id for which the export is computed.",
              "example": "21-character__string0"
            },
            {
              "name": "exportThisSpaceOnly",
              "kind": "optional",
              "type": "boolean",
              "description": "OPTIONAL, use this if you want to export data only from the space with docSpaceId.",
              "example": true
            },
            {
              "name": "exportAsLink",
              "kind": "optional",
              "type": "boolean",
              "description": "OPTIONAL, use this if you want to get a link to the zip archive.",
              "example": true
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "bearerAuth",
          "name": "bearerAuth",
          "kind": "optional",
          "type": "http",
          "description": "<p>Requires the <code>Authorization</code> header in the form <code>Authorization: Bearer {base64(docSpaceId~apiKey)}</code> Where the token is base64 encoding of docSpaceId, tilde, and apiKey.</p>",
          "scheme": "bearer"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful export",
        "jsonExample": "",
        "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": "BQALVGCOC6uhsXut6CbkN",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.archbee.com/api/public-api/team/export \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"teamId\": \"21-character__string0\"\n     }'"
        },
        {
          "id": "1vOon32cN3iLpmUZB1KuO",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"teamId\": \"21-character__string0\"\n});\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.archbee.com/api/public-api/team/export\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "k_VPor4qE91BpI8Qk0Y40",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.archbee.com/api/public-api/team/export\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"teamId\": \"21-character__string0\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "m1YPHCAyrNXfcu6A7Onqy",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.archbee.com/api/public-api/team/export\"\n\npayload = json.dumps({\n   \"teamId\": \"21-character__string0\"\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "BQALVGCOC6uhsXut6CbkN"
    },
    "results": {
      "languages": [
        {
          "id": "AsUAyLHo3c8dJk8vA_bw1",
          "language": "200",
          "code": "// Successful export\n"
        },
        {
          "id": "0LB3_c2eE7QtWQkhOnKM1",
          "language": "400",
          "code": "// Invalid request\n{\n  \"status\": \"Not OK\",\n  \"messages\": [\n    \"Some error message\"\n  ]\n}"
        }
      ],
      "selectedLanguageId": "AsUAyLHo3c8dJk8vA_bw1"
    }
  },
  "children": [
    {
      "text": "",
      "id": "v-eH8220ey8xfRqQrd5Eo"
    }
  ]
}