---
title: List API versions
slug: list-api-versions
docTags: 
createdAt: 2024-06-12T13:26:21.740Z
---

{
  "id": "AelE0QqsKB0IixdE6qvi_",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.catenda.com/opencde/foundation/versions",
    "servers": [
      {
        "url": "https://api.catenda.com/opencde/foundation/versions"
      }
    ],
    "name": "List API versions",
    "description": "List all the OpenCDE REST APIs.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "api-versions",
            "schema": [
              {
                "name": "versions",
                "kind": "optional",
                "type": "array",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "api_id",
                    "kind": "optional",
                    "type": "string",
                    "description": "Type of API",
                    "example": "bcf"
                  },
                  {
                    "name": "version_id",
                    "kind": "optional",
                    "type": "string",
                    "description": "The API version",
                    "example": "3.0"
                  },
                  {
                    "name": "detailed_version",
                    "kind": "optional",
                    "type": "string",
                    "description": "Description of the API",
                    "example": "Catenda OpenCDE BCF 3.0"
                  },
                  {
                    "name": "api_base_url",
                    "kind": "optional",
                    "type": "string",
                    "description": "Base URL of all endpoints for this API version",
                    "example": "https://api.catenda.com/opencde/bcf/3.0"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/api-versions",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "2qQ81SPwhBbUZOycaZzk2",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.catenda.com/opencde/foundation/versions \\\n     --header 'accept: application/json'"
        },
        {
          "id": "ddmghIilL4CJBnXiOT1Ko",
          "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/foundation/versions\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "qTfJW-dpw7gm4768YSCrp",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.catenda.com/opencde/foundation/versions\")\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": "xUxnxStOY_Lpm2PbpwW4J",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.catenda.com/opencde/foundation/versions\"\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": "2qQ81SPwhBbUZOycaZzk2"
    },
    "results": {
      "languages": [
        {
          "id": "oU11bCtrBhTmYTm74-gda",
          "language": "200",
          "code": "// OK\n{\n  \"versions\": [\n    {\n      \"api_id\": \"bcf\",\n      \"version_id\": \"3.0\",\n      \"detailed_version\": \"Catenda OpenCDE BCF 3.0\",\n      \"api_base_url\": \"https://api.catenda.com/opencde/bcf/3.0\"\n    }\n  ]\n}"
        }
      ],
      "selectedLanguageId": "oU11bCtrBhTmYTm74-gda"
    }
  },
  "children": [
    {
      "id": "bgKC5tFA9geLp5W6YcU2D",
      "type": "paragraph",
      "children": [
        {
          "text": "List all the OpenCDE REST APIs."
        }
      ]
    }
  ]
}