---
title: List types
slug: topic-api/list-types
docTags: 
createdAt: 2024-06-10T16:49:07.009Z
---

{
  "id": "UMlU3ajEldmHzOtAr1e_n",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/extensions/types",
    "servers": [
      {
        "url": "https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/extensions/types"
      }
    ],
    "name": "List types",
    "description": "List all the topic board types.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "topic-board-id",
          "type": "string",
          "example": "e18a2d10-1595-4e52-a941-22d43bf8d7ad",
          "description": "Id of the topic board"
        }
      ],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "include-unlinked",
          "type": "boolean",
          "description": "Include unlinked types"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "",
            "customType": "topic-board-type[]",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "string",
                "description": "Id of the type",
                "example": "18b2a2e7509a4b528dbbd9d312fd45e6"
              },
              {
                "name": "name",
                "kind": "optional",
                "type": "string",
                "description": "Name of the type",
                "example": "Info"
              },
              {
                "name": "color",
                "kind": "optional",
                "type": "string",
                "description": "Color associated with the type",
                "example": "#3D85C6"
              },
              {
                "name": "unlinked",
                "kind": "optional",
                "type": "boolean",
                "description": "Set when the type is not known to the topic board",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/topic-board-type",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "hUdrKXzRzbW3fX-Hv1eAH",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/extensions/types \\\n     --header 'accept: application/json'"
        },
        {
          "id": "dt-aAFVVsQprNKdgQiKsr",
          "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/opencde/bcf/3.0/projects/{topic-board-id}/extensions/types\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "Jdl7txbew0SuVfmqDDONW",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/extensions/types\")\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": "VeO0omYKIbQdLN-MmSYEg",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/extensions/types\"\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": "hUdrKXzRzbW3fX-Hv1eAH"
    },
    "results": {
      "languages": [
        {
          "id": "UEAfVcwaIDo8t5lPrnZye",
          "language": "200",
          "code": "// OK\n[\n  {\n    \"id\": \"18b2a2e7509a4b528dbbd9d312fd45e6\",\n    \"name\": \"Info\",\n    \"color\": \"#3D85C6\",\n    \"unlinked\": false\n  }\n]"
        }
      ],
      "selectedLanguageId": "UEAfVcwaIDo8t5lPrnZye"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}