---
title: List classification references
slug: model-api/list-classification-references
docTags: 
createdAt: 2024-06-10T16:48:45.445Z
---

{
  "id": "qARvK_HPWHBsQw7_tg_iA",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.catenda.com/v2/projects/{project-id}/ifc/classification_references",
    "servers": [
      {
        "url": "https://api.catenda.com/v2/projects/{project-id}/ifc/classification_references"
      }
    ],
    "name": "List classification references",
    "description": "List all classification reference in a project.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "project-id",
          "type": "string",
          "example": "af2d8af0fa54465b89bf26dd3d92cfd0",
          "description": "Catenda project id"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "model",
          "type": "array",
          "description": "Filter by latest revision of model id.",
          "schema": [],
          "itemType": "string",
          "customType": "string[]"
        },
        {
          "kind": "optional",
          "name": "revision",
          "type": "array",
          "description": "Filter by revision id. Can be repeated to filter by multiple revisions.",
          "schema": [],
          "itemType": "string",
          "customType": "string[]"
        },
        {
          "kind": "optional",
          "name": "page",
          "type": "integer",
          "description": "Default value is 1"
        },
        {
          "kind": "optional",
          "name": "pageSize",
          "type": "integer",
          "description": "<p>Default 100, max 1000</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": "array",
            "description": "",
            "customType": "ifc-classification-reference[]",
            "schema": [
              {
                "name": "revisionId",
                "kind": "optional",
                "type": "string",
                "description": "The id of the model revision",
                "example": "924809076a694255c489d236517a55da"
              },
              {
                "name": "objectId",
                "kind": "optional",
                "type": "integer<int64>",
                "description": "The object id of the classification reference",
                "example": 317636045083,
                "format": "int64"
              },
              {
                "name": "ifcType",
                "kind": "optional",
                "type": "string",
                "description": "The entity type of the classification reference",
                "example": "IfcClassificationReference"
              },
              {
                "name": "attributes",
                "kind": "optional",
                "type": "object",
                "description": "The attributes of the classification reference including the name and identitifier",
                "example": "",
                "schema": []
              }
            ],
            "modelRef": "#/components/schemas/ifc-classification-reference",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "10pjlOo2WbhaVBE6FKRJs",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.catenda.com/v2/projects/{project-id}/ifc/classification_references \\\n     --header 'accept: application/json'"
        },
        {
          "id": "-bjV8zUtdFkLrGek64Tr8",
          "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}/ifc/classification_references\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "BwE7qrrD3SRzek0iX_cxA",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.catenda.com/v2/projects/{project-id}/ifc/classification_references\")\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": "Z87Lp8OxnfRUzZbqBjo3d",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.catenda.com/v2/projects/{project-id}/ifc/classification_references\"\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": "10pjlOo2WbhaVBE6FKRJs"
    },
    "results": {
      "languages": [
        {
          "id": "eY_vBaxbG5UZ7BogJBaHb",
          "language": "200",
          "code": "// OK\n[\n  {\n    \"revisionId\": \"924809076a694255c489d236517a55da\",\n    \"objectId\": 317636045083,\n    \"ifcType\": \"IfcClassificationReference\",\n    \"attributes\": {}\n  }\n]"
        }
      ],
      "selectedLanguageId": "eY_vBaxbG5UZ7BogJBaHb"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}