{"id":6241,"date":"2021-07-21T21:09:51","date_gmt":"2021-07-21T21:09:51","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=ht_kb&#038;p=6241"},"modified":"2021-07-22T08:45:47","modified_gmt":"2021-07-22T08:45:47","slug":"api-token-in-whm","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/api-token-in-whm\/","title":{"rendered":"How to Locate and Use the API Token in WHM"},"content":{"rendered":"<p>If you are connecting your WHM to an application like WHMCS, you should use the API Token method to connect rather than giving the application your WHM Password.<\/p>\n<p>If you are not familiar with locating your API Token in WHM, this Knowledge Base article will help you!<\/p>\n<p>How to locate and use the API Token in WHM<\/p>\n<p><strong>Step 1:<\/strong> Login to your WHM. There&#8217;s a lot of ways to do this, but the sure fire easiest way is to login to your <a href=\"https:\/\/lab.chemicloud.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Client Area<\/a>, then open your WHM.<\/p>\n<p>Step 2: Once you&#8217;ve logged in to your ChemiCloud Client Area, you will be presented with your Dashboard.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6242\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-14.png\" alt=\"\" width=\"1613\" height=\"1113\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-14.png 1613w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-14-300x207.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-14-783x540.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-14-768x530.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-14-50x35.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-14-1536x1060.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-14-60x41.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-14-100x69.png 100w\" sizes=\"auto, (max-width: 1613px) 100vw, 1613px\" \/><\/a>Click WHM next to your reseller account to open your WHM application.<\/p>\n<p><strong>Step 3:<\/strong> Once WHM loads, use the search function located in the top left corner and search for API.<\/p>\n<p>In the search results will be returned the option &#8220;Manage API Tokens&#8221;. Open this Utility.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6243\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-15.png\" alt=\"\" width=\"428\" height=\"593\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-15.png 428w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-15-217x300.png 217w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-15-36x50.png 36w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-15-43x60.png 43w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-15-72x100.png 72w\" sizes=\"auto, (max-width: 428px) 100vw, 428px\" \/><\/a><\/p>\n<p><strong>Step 4:<\/strong> Once the API Tokens area loads, you will be presented with a list of your API tokens. Unless you&#8217;ve created some previously, your default list should be empty.<\/p>\n<p>To create a token, click the blue + Generate Token button.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6244\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-12.png\" alt=\"\" width=\"1584\" height=\"538\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-12.png 1584w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-12-300x102.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-12-783x266.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-12-768x261.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-12-50x17.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-12-1536x522.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-12-60x20.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-12-100x34.png 100w\" sizes=\"auto, (max-width: 1584px) 100vw, 1584px\" \/><\/a><strong>Step 5:<\/strong> You&#8217;ll need to fill in a few options on the Generate API Token page. Let&#8217;s review them:<\/p>\n<ul>\n<li><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6245\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-12.png\" alt=\"\" width=\"1158\" height=\"1508\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-12.png 1158w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-12-230x300.png 230w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-12-601x783.png 601w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-12-768x1000.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-12-38x50.png 38w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-12-46x60.png 46w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-12-77x100.png 77w\" sizes=\"auto, (max-width: 1158px) 100vw, 1158px\" \/><\/a>First you&#8217;ll need to give your Token a name.<\/li>\n<li>Second, you&#8217;ll need to specify if the API token should expire. For WHMCS, you should set the option &#8220;The API Token will not expire.&#8221;<\/li>\n<li>Third, you&#8217;ll need to check your Privileges. If you&#8217;re creating this token for WHMCS, you should check ALL of the Privileges because WHMCS needs all of them to function properly.<\/li>\n<li>Fourth, click Save at the bottom of the page to save your changes.<\/li>\n<\/ul>\n<p>Step 6: The new token will be created and you will be given the token key:<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6246\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-11.png\" alt=\"\" width=\"1124\" height=\"658\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-11.png 1124w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-11-300x176.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-11-783x458.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-11-768x450.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-11-50x29.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-11-60x35.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-11-100x59.png 100w\" sizes=\"auto, (max-width: 1124px) 100vw, 1124px\" \/><\/a><\/p>\n<p>Copy this key to your clipboard or a notepad file to use in WHMCS &gt; Add Server, or any other purpose.<\/p>\n<p>If needed, you can make multiple WHM API Tokens.<\/p>\n<p>And that&#8217;s how you create a new WHM API Token!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are connecting your WHM to an application like WHMCS, you should use the API Token method to connect rather than giving the application your WHM Password. If you are not familiar with locating your API Token in WHM, this Knowledge Base article will help you! How to locate&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[174],"ht-kb-tag":[],"class_list":["post-6241","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-whm"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/6241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=6241"}],"version-history":[{"count":3,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/6241\/revisions"}],"predecessor-version":[{"id":6252,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/6241\/revisions\/6252"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=6241"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=6241"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=6241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}