---
title: Download Object
slug: telemetry-pipeline/download-object
docTags: 
createdAt: 2023-12-26T14:37:58.070Z
---

{
  "id": "caRRfmE_fDSQLy_Cd8AKd",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "{{url}}/api/portal/external/store/{storeId}/object",
    "servers": [
      {
        "url": "{{url}}/api/portal/external/store/{storeId}/object",
        "description": "Development environment"
      }
    ],
    "name": "Download Object",
    "description": "<p>With this API, one or more of the objects in the data store can be downloaded to the local server.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "storeId",
          "type": "string"
        }
      ],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "required",
          "name": "objectKey",
          "type": "string"
        }
      ],
      "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": "x31u7Jp8k_hPAWWLfFUM6",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url '{{url}}/api/portal/external/store/{storeId}/object?objectKey=string' \\\n     --header 'accept: application/json'"
        },
        {
          "id": "6k4532_l0KFIbi6vLRFh3",
          "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/{storeId}/object?objectKey=string\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "cDYBtiq8bgrlVDzsCQy6S",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/api/portal/external/store/{storeId}/object?objectKey=string\")\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": "IIb_td9VcJSHa47YRHJNn",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/api/portal/external/store/{storeId}/object?objectKey=string\"\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": "x31u7Jp8k_hPAWWLfFUM6"
    },
    "results": {
      "languages": [
        {
          "id": "Xp8wRM9LAsT7vkaDW6tl5",
          "language": "200",
          "code": "// OK\n"
        }
      ],
      "selectedLanguageId": "Xp8wRM9LAsT7vkaDW6tl5"
    }
  },
  "children": [
    {
      "id": "dZs4odccR6KFAJ8IWOrK-",
      "type": "paragraph",
      "children": [
        {
          "text": "With this API, one or more of the objects in the data store can be downloaded to the local server."
        }
      ]
    }
  ]
}