---
title: Check a slot
slug: docs/demo/check-a-slot
description: Learn how to make a GET request to a specific endpoint in a REST API using the curl command line tool. This high-quality code example includes the essential headers required for accepting and sending JSON data. Boost your API skills with this informative 
docTags: 
createdAt: 2022-03-21T20:12:45.000Z
---

{
  "id": "bCQIl-xU99eusMsiAuPnJ",
  "data": {
    "url": "https://api.fictive.com/REST/api/accounts/{accountReference}/device-policies/{devicePolicyReference}/devices/{deviceReference}/slots/{slotReference}",
    "name": "Check a slot",
    "method": "GET",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "accountReference",
          "type": "string",
          "description": ""
        },
        {
          "kind": "required",
          "name": "devicePolicyReference",
          "type": "string",
          "description": ""
        },
        {
          "kind": "required",
          "name": "deviceReference",
          "type": "string",
          "description": ""
        },
        {
          "kind": "required",
          "name": "slotReference",
          "type": "string",
          "description": ""
        }
      ],
      "queryParameters": [],
      "headerParameters": [
        {
          "kind": "optional",
          "name": "X-TokenId",
          "type": "string",
          "description": "The eSuite Token Id"
        },
        {
          "kind": "optional",
          "name": "X-SessionId",
          "type": "string",
          "description": "The eSuite Session Id"
        },
        {
          "kind": "required",
          "name": "X-Version",
          "type": "string",
          "description": "The eSuite Version"
        },
        {
          "kind": "optional",
          "name": "Origin",
          "type": "string",
          "description": "The eSuite Origin"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": []
    },
    "responses": [
      {
        "schema": [
          {
            "kind": "optional",
            "type": "string",
            "isExpanded": true,
            "description": "OK"
          }
        ],
        "isExpanded": true,
        "statusCode": "200",
        "description": "OK",
        "jsonExample": ""
      },
      {
        "isExpanded": true,
        "statusCode": "401",
        "description": "API Authentication Failure: Invalid Authentication Type/Credentials Provided.",
        "jsonExample": ""
      },
      {
        "isExpanded": true,
        "statusCode": "403",
        "description": "• Missing privilege.       \r\n            <br />• Disabled Device Management Feature.\r\n            <br />• Invalid account.\r\n            <br />• Invalid device policy.\r\n            <br />• Invalid device slot.",
        "jsonExample": ""
      },
      {
        "isExpanded": true,
        "statusCode": "404",
        "description": "Device cannot be found.",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "Calling this endpoint will check a slot against an account's device",
    "examples": {
      "languages": [
        {
          "id": "MdZU9e0zU3PNtPfEX9HWn",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.fictive.com/REST/api/accounts/{accountReference}/device-policies/{devicePolicyReference}/devices/{deviceReference}/slots/{slotReference} \\\n     --header 'accept: application/json' \\\n     --header 'x-version: string'"
        },
        {
          "id": "fq4g4mc46VuVujUb8VWiR",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-version\", \"string\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.fictive.com/REST/api/accounts/{accountReference}/device-policies/{devicePolicyReference}/devices/{deviceReference}/slots/{slotReference}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "_7Ye092DzxCeehapeheUk",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.fictive.com/REST/api/accounts/{accountReference}/device-policies/{devicePolicyReference}/devices/{deviceReference}/slots/{slotReference}\")\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\"\nrequest[\"x-version\"] = \"string\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "IIbWnvsQYMdypmNuwuu6f",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.fictive.com/REST/api/accounts/{accountReference}/device-policies/{devicePolicyReference}/devices/{deviceReference}/slots/{slotReference}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-version': 'string'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "MdZU9e0zU3PNtPfEX9HWn"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// OK\n\"\""
        },
        {
          "id": "response-1-401",
          "language": "401",
          "code": "// API Authentication Failure: Invalid Authentication Type/Credentials Provided.\n"
        },
        {
          "id": "response-2-403",
          "language": "403",
          "code": "// • Missing privilege.       \r\n            • Disabled Device Management Feature.\r\n            • Invalid account.\r\n            • Invalid device policy.\r\n            • Invalid device slot.\n"
        },
        {
          "id": "response-3-404",
          "language": "404",
          "code": "// Device cannot be found.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}