{"id":235,"date":"2018-10-16T12:06:17","date_gmt":"2018-10-16T12:06:17","guid":{"rendered":"http:\/\/34.238.172.127\/?page_id=235"},"modified":"2021-06-04T10:06:22","modified_gmt":"2021-06-04T10:06:22","slug":"retrieve-api-key","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/setting-up-an-api\/retrieve-api-key\/","title":{"rendered":"Retrieve API Key"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2>Retrieve API Key<\/h2>\n<p>You can retrieve your API key by <\/p>\n<ul>\n<li>Signing in to your Hexnode MDM portal and selecting <strong>API<\/strong> from the <strong>Admin<\/strong> tab, or<\/li>\n<li>Accessing the URL <strong>\/api-token-auth\/<\/strong> when valid username and password are provided with basic authentication.<\/li>\n<\/ul>\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\">curl -X POST -d username=\"admin\" -d password=\"admin\"\r\nhttps:\/\/<portal>.hexnodemdm.com\/api\/v1\/api-token-auth\/\r\n<\/pre>\n<p>Response:<\/p>\n<pre class=\"lang:default decode:true\">{\"Authorization\" : <your API key>}\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Retrieve API Key You can retrieve your API key by Signing in to your Hexnode MDM portal and selecting API from the Admin tab, or Accessing the URL \/api-token-auth\/ when valid username and password are provided with basic authentication. curl HTTP Request: curl -X POST -d username=&#8221;admin&#8221; -d password=&#8221;admin&#8221; https:\/\/.hexnodemdm.com\/api\/v1\/api-token-auth\/ Response: {&#8220;Authorization&#8221; : }<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3642,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-235","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/235","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=235"}],"version-history":[{"count":2,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/235\/revisions"}],"predecessor-version":[{"id":4416,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/235\/revisions\/4416"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3642"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}