---
title: List Stores
slug: tp-api/list-stores
docTags: 
createdAt: 2023-12-26T14:37:58.070Z
---

{
  "id": "XfDqVcn0zWb_AdOWkqmwF",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "{{url}}/api/portal/external/store",
    "servers": [
      {
        "url": "{{url}}/api/portal/external/store",
        "description": "Development environment"
      }
    ],
    "name": "List Stores",
    "description": "List the available data stores.",
    "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": "48X-R-u-J1pIwk5KoyPBS",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url {{url}}/api/portal/external/store \\\n     --header 'accept: application/json'"
        },
        {
          "id": "ctETMXFsdb2G1S3j2H0R2",
          "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/store\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "xYIg0bD4c6rNIxxXrBqZs",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/api/portal/external/store\")\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": "Oto7k5uOAMSpwTqtz-GRT",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/api/portal/external/store\"\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": "48X-R-u-J1pIwk5KoyPBS"
    },
    "results": {
      "languages": [
        {
          "id": "bjrgV2DzAjQJOVJKmFulg",
          "language": "200",
          "code": "// OK\n"
        }
      ],
      "selectedLanguageId": "bjrgV2DzAjQJOVJKmFulg"
    }
  },
  "children": [
    {
      "id": "rV_gBZc9y24lhfoKeb0OU",
      "type": "paragraph",
      "children": [
        {
          "text": "List the available data stores.",
          "id": "Mq2GxyC6vWRC9r304Udr9"
        }
      ]
    }
  ]
}