---
title: Get model
slug: model-api/get-model
docTags: 
createdAt: 2024-06-10T16:48:45.445Z
---

{
  "id": "FMsXd8QOXZtImINWvEj6w",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.catenda.com/v2/projects/{project-id}/models/{model-id}",
    "servers": [
      {
        "url": "https://api.catenda.com/v2/projects/{project-id}/models/{model-id}"
      }
    ],
    "name": "Get model",
    "description": "<p>Download the latest revision of a model as an IFC file setting the <code>Accept</code> header to be <code>application/ifc</code></p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "project-id",
          "type": "string",
          "example": "af2d8af0fa54465b89bf26dd3d92cfd0",
          "description": "Catenda project id"
        },
        {
          "kind": "required",
          "name": "model-id",
          "type": "string",
          "description": "Id of the model"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json",
            "application/ifc"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "normalize",
          "type": "string",
          "description": "<p>Applies to IFC downloads. By default, STEP instance names correspond to their Catenda object id, by setting <code>true</code> the STEP instance names will instead start at #1.</p>"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "<p>Represents an IFC model as a set of Revisions.</p>\n<p>A large building project can contain multiple IFC models.</p>\n<p>They are often divided by domain (architecture, electrical, etc.)</p>",
            "customType": "model",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "string",
                "description": "<p>A unique identifier for a model, represented as compacted UUID using 32 hexadecimal characters</p>",
                "example": "47024671cbd642a9c7c84808d4d509f5"
              },
              {
                "name": "name",
                "kind": "optional",
                "type": "string",
                "description": "<p>The name of the model, limited to 512 characters</p>",
                "example": "Model name"
              }
            ],
            "modelRef": "#/components/schemas/model",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "PZvnec5DOCgRQKu82mJYR",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.catenda.com/v2/projects/{project-id}/models/{model-id} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "Q0KEsjIowCe92yXxY4-R5",
          "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: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.catenda.com/v2/projects/{project-id}/models/{model-id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "Kz2BS4aSbO_2h_-NNQxPQ",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.catenda.com/v2/projects/{project-id}/models/{model-id}\")\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\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "hVNZzcudz1_mPhEkGOkGX",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.catenda.com/v2/projects/{project-id}/models/{model-id}\"\n\npayload = {}\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": "PZvnec5DOCgRQKu82mJYR"
    },
    "results": {
      "languages": [
        {
          "id": "nbshNYll_zATacOsRBMg_",
          "language": "200",
          "code": "// OK\n{\n  \"id\": \"47024671cbd642a9c7c84808d4d509f5\",\n  \"name\": \"Model name\"\n}"
        }
      ],
      "selectedLanguageId": "nbshNYll_zATacOsRBMg_"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}