---
title: List Component Types
slug: telemetry-pipeline/list-component-types
docTags: 
createdAt: 2023-12-26T14:37:58.070Z
---

{
  "id": "t-KuKe4jHjwdqGIWDx4qN",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "{{url}}/api/portal/external/component-types",
    "servers": [
      {
        "url": "{{url}}/api/portal/external/component-types",
        "description": "Development environment"
      }
    ],
    "name": "List Component Types",
    "description": "This API allows users to list all existing destination and source types within the system.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "cookieAuth",
          "name": "SESSION",
          "kind": "optional",
          "type": "apiKey",
          "in": "cookie"
        },
        {
          "id": "tokenAuth",
          "name": "X-XSRF-TOKEN",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "3xq0Ay1xT2_3BUVK0BSKq",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url {{url}}/api/portal/external/component-types \\\n     --header 'accept: application/json'"
        },
        {
          "id": "k5Sp0artwKSrzl6x01yJZ",
          "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(\"{{url}}/api/portal/external/component-types\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "yGotaZJr3-JGm9EeS_KIo",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/api/portal/external/component-types\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "IlDKqccwWk5hxjf50oUe0",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/api/portal/external/component-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": "3xq0Ay1xT2_3BUVK0BSKq"
    },
    "results": {
      "languages": [
        {
          "id": "X79XYP58dsgYmP3ePt8DM",
          "language": "200",
          "code": "// OK\n"
        }
      ],
      "selectedLanguageId": "X79XYP58dsgYmP3ePt8DM"
    }
  },
  "children": [
    {
      "id": "fVpDimVx0YKd_lVxdgYd9",
      "type": "paragraph",
      "children": [
        {
          "text": "This API allows users to list all existing destination and source types within the system."
        }
      ]
    }
  ]
}