{"id":3645,"date":"2018-10-16T10:38:26","date_gmt":"2018-10-16T10:38:26","guid":{"rendered":"http:\/\/34.238.172.127\/?page_id=10"},"modified":"2026-02-11T10:06:53","modified_gmt":"2026-02-11T10:06:53","slug":"list-all-devices","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/devices\/list-all-devices\/","title":{"rendered":"List All Devices"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2> List All Devices <\/h2>\n<p>Returns a list of all enrolled devices.<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" width=\"100%\" class=\"table table-bordered\">\n<thead>\n<tr>\n<th width=\"15%\"> <strong>Parameters<\/strong> <\/th>\n<th width=\"12%\"> <strong>Type<\/strong> <\/th>\n<th width=\"15%\"> <strong>Description<\/strong> <\/th>\n<th width=\"10%\"> <strong>Default value<\/strong> <\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>order_by<\/td>\n<td>String<\/td>\n<td>Optional. Order the result by device name. Use <strong>asc<\/strong> or <strong>desc<\/strong><\/td>\n<td>asc<\/td>\n<\/tr>\n<tr>\n<td> platform <\/td>\n<td>String<\/td>\n<td>Optional. Filter by OS. Use <strong>ios<\/strong>, <strong>android<\/strong> or <strong>windows<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>is_active<\/td>\n<td>Boolean<\/td>\n<td>Optional. Filter by active or inactive devices. Use <strong>True<\/strong> or <strong>False<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td> device_type <\/td>\n<td>String<\/td>\n<td>Optional. Use <strong>smartphone<\/strong> or <strong>tablet<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td> page <\/td>\n<td> Integer <\/td>\n<td> Optional <\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td> per_page <\/td>\n<td>Integer<\/td>\n<td>Optional. The <strong>maximum value<\/strong> is <strong>250<\/strong> <\/td>\n<td>100<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"method-example\">\n<div class=\"curl-text\">curl<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\nHTTP Request:<\/p>\n<pre class=\"lang:default decode:true\">GET https:\/\/<portal>.hexnodemdm.com\/api\/v1\/devices\/?order_by=desc\r\n<\/pre>\n<p>Shell Command:<\/p>\n<pre class=\"lang:default decode:true\">curl -H \"Authorization: <your API key>\" \"https:\/\/<portal>.hexnodemdm.com\/api\/v1\/devices\/?order_by=desc\"\r\n<\/pre>\n<\/div>\n<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\nHTTP Response:<\/p>\n<pre class=\"lang:default decode:true\">{\r\n\"count\": 104, \r\n\"next\": https:\/\/<portal>.hexnodemdm.com\/api\/v1\/devices\/page=2&order_by=desc,\r\n\"previous\": null, \r\n\"results\":  [  \r\n{  \r\n\"id\" : 5, \r\n\"device_name\" : \"motorolaXT1033\",  \r\n\"model_name\": \"XT1033\", \r\n\"os_name\": \"Android\", \r\n\"os_version\": \"5.1\", \r\n\"enrolled_time\": \"2017-05-05T04:39:32.563524Z\", \r\n\"last_reported\": \"2017-05-05T08:00:07.401Z\", \r\n\"compliant\": true, \r\n\"serial_number\": \"TA933D15V\", \r\n\"enrollment_status\": \"enrolled\", \r\n\"user\": { \r\n\"id\": \"1\", \r\n\"name\":\"neil\" \r\n} \r\n} , \r\n...\r\n] \r\n}\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>List All Devices Returns a list of all enrolled devices. Parameters Type Description Default value order_by String Optional. Order the result by device name. Use asc or desc asc platform String Optional. Filter by OS. Use ios, android or windows is_active Boolean Optional. Filter by active or inactive devices. Use True or False device_type String [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3644,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-3645","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/comments?post=3645"}],"version-history":[{"count":6,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3645\/revisions"}],"predecessor-version":[{"id":5011,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3645\/revisions\/5011"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3644"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=3645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}