{
  "info": {
    "name": "SecuriThings API",
    "description": "Contact Support:\n Name: SecuriThings\n Email: cs_engineers@securithings.com",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "v1",
      "item": [
        {
          "name": "devices",
          "item": [
            {
              "name": "Get Devices",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/devices?limit=1",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "devices"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "1"
                    }
                  ]
                },
                "description": "Returns one or more devices user has access to. \n**Some fields are applicable only to devices with specific capabilities.**\n\nResults can be filtered using the query parameters specified below.\n\nReturns 200 with empty devices list and a total of 0 when no devices found."
              },
              "response": []
            },
            {
              "name": "Get Device By ID",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/devices/:id",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "devices",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "3d95391a-a758-11ef-b357-02420ac97f02"
                    }
                  ]
                },
                "description": "Returns basic information about a specific device in the system.\n\nReturns 404 if the device is not found or the user does not have access to the device."
              },
              "response": []
            },
            {
              "name": "Get Device Vulnerabilities By ID",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/devices/:id/vulnerabilities",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "devices",
                    ":id",
                    "vulnerabilities"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "3d95391a-a758-11ef-b357-02420ac97f02"
                    }
                  ]
                },
                "description": "Retrieves a detailed list of vulnerabilities associated with a specific device. This endpoint allows clients to query vulnerabilities by providing the unique device identifier, enabling visibility into potential security risks affecting the device.\n\nReturns 404 if the device is not found or the user does not have access to the device."
              },
              "response": []
            }
          ]
        },
        {
          "name": "sites",
          "item": [
            {
              "name": "Get Sites",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/sites?limit=10",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "sites"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "10"
                    }
                  ]
                },
                "description": "Returns one or more sites (geolocation) user has access to. \n\nResults can be filtered using the query parameters specified below.\n\nReturns 200 with empty sites list and a total of 0 when no sites found."
              },
              "response": []
            },
            {
              "name": "Get Site By ID",
              "request": {
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "<Bearer Token>",
                      "type": "string"
                    }
                  ]
                },
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/sites/:id",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "sites",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "ut",
                      "description": "(Required) The site id"
                    }
                  ]
                },
                "description": "Returns basic information about a specific site (geolocation) in the system.\n\nReturns 404 if the site is not found or the user does not have access to the site."
              },
              "response": []
            }
          ]
        },
        {
          "name": "device Source",
          "item": [
            {
              "name": "Get Device Sources",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/deviceSources",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "deviceSources"
                  ]
                },
                "description": "Returns basic information about a specific device source in the system.\n\nReturns 404 if the device source is not found or the user does not have access to the device source.\n\n**Note:** The type `internal` is used for CSV based device sources.\n\n**Note:** The `version` field reference to the version of the type, each type has a different version schema."
              },
              "response": []
            },
            {
              "name": "Get Device Source By ID",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/deviceSources/:id",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "deviceSources",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "24"
                    }
                  ]
                },
                "description": "Returns basic information about a specific device source in the system.\n\nReturns 404 if the device source is not found or the user does not have access to the device source.\n\n**Note:** The type `internal` is used for CSV based device sources.\n\n**Note:** The `version` field reference to the version of the type, each type has a different version schema."
              },
              "response": []
            }
          ]
        }
      ]
    }
  ],
  "auth": {
    "type": "oauth2",
    "oauth2": [
      {
        "key": "tokenName",
        "value": "SecuriThings {{organization}}",
        "type": "string"
      },
      {
        "key": "clientSecret",
        "value": "{{client_secret}}",
        "type": "string"
      },
      {
        "key": "clientId",
        "value": "{{client_id}}",
        "type": "string"
      },
      {
        "key": "client_authentication",
        "value": "header",
        "type": "string"
      },
      {
        "key": "accessTokenUrl",
        "value": "{{base_url}}/v1/auth/{{organization}}",
        "type": "string"
      },
      {
        "key": "grant_type",
        "value": "client_credentials",
        "type": "string"
      },
      {
        "key": "addTokenTo",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "exec": [
          ""
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "exec": [
          ""
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "base_url",
      "value": "https://api.securithings.com",
      "type": "string"
    },
    {
      "key": "client_secret",
      "value": "",
      "type": "string"
    },
    {
      "key": "client_id",
      "value": "",
      "type": "string"
    },
    {
      "key": "organization",
      "value": "",
      "type": "string"
    }
  ]
}