{"id":1901,"date":"2025-06-17T06:19:03","date_gmt":"2025-06-17T06:19:03","guid":{"rendered":"https:\/\/hostrago.com\/knowledge-base\/?p=1901"},"modified":"2025-06-26T11:17:05","modified_gmt":"2025-06-26T11:17:05","slug":"how-to-manage-api-token-in-cpanel","status":"publish","type":"post","link":"https:\/\/hostrago.com\/knowledge-base\/how-to-manage-api-token-in-cpanel\/","title":{"rendered":"How to Manage API Token in cPanel"},"content":{"rendered":"\n<p>In this guide, we\u2019ll walk you through <strong>how to manage API Token in cPanel<\/strong> step by step using a secure and user-friendly interface.<\/p>\n\n\n\n<p>In today\u2019s digital world, automation plays a vital role in simplifying server management. If you&#8217;re a developer or system admin using cPanel, one of the most efficient tools available for automation is the <strong>API Token<\/strong>. Whether you want to integrate with third-party software or automate cPanel tasks, API Tokens offer secure and flexible access.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is an API Token in cPanel?<\/h2>\n\n\n\n<p>An <strong>API Token<\/strong> is a secure key generated by <a href=\"https:\/\/cpanel.net\/\" target=\"_blank\" rel=\"noopener\">cPanel <\/a>to authenticate external applications or scripts with the WHM or cPanel API. Instead of using your main cPanel login credentials, you can generate a specific API token with restricted permissions, offering enhanced security and control.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Benefits of Using API Tokens<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ud83d\udd10 <strong>Improved Security<\/strong>: No need to share the root password.<\/li>\n\n\n\n<li>\u2699\ufe0f <strong>Custom Permissions<\/strong>: Grant only required access.<\/li>\n\n\n\n<li>\ud83d\udd04 <strong>Easy Revocation<\/strong>: Disable or delete tokens anytime.<\/li>\n\n\n\n<li>\ud83d\udd17 <strong>Automation Friendly<\/strong>: Great for cron jobs, backups, billing systems, and more.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step-by-Step Guide How to Manage API Token in cPanel<\/h2>\n\n\n\n<p>Follow these easy steps to create, view, and manage API Tokens directly in your cPanel interface.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Log in to Your cPanel Account<\/h3>\n\n\n\n<p>Go to your hosting dashboard and <a href=\"https:\/\/hostrago.com\/knowledge-base\/how-to-login-in-cpanel\/\">log in to your cPanel<\/a> account using your credentials.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Search and Open \u201cAPI Tokens\u201d<\/h3>\n\n\n\n<p>Once logged in:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the <strong>Security<\/strong> section of your cPanel dashboard<\/li>\n\n\n\n<li>Click on <strong>API Tokens<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"680\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-API-Tokens-Tool-Screenshot-Placeholder-Here-1024x680.webp\" loading=\"lazy\" alt=\"Insert API Tokens Tool Screenshot Placeholder Here\" class=\"wp-image-1903\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-API-Tokens-Tool-Screenshot-Placeholder-Here-1024x680.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-API-Tokens-Tool-Screenshot-Placeholder-Here-300x199.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-API-Tokens-Tool-Screenshot-Placeholder-Here-768x510.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-API-Tokens-Tool-Screenshot-Placeholder-Here-1536x1020.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-API-Tokens-Tool-Screenshot-Placeholder-Here-2048x1360.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Create a New API Token<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click the <strong>Create<\/strong> button.<\/li>\n\n\n\n<li>Enter a <strong>token name<\/strong> (e.g., BackupBot, IntegrationKey).<\/li>\n\n\n\n<li>Set the <strong>expiration time<\/strong> if desired.<\/li>\n\n\n\n<li>Assign <strong>permissions<\/strong> depending on what the token will be used for.<\/li>\n<\/ul>\n\n\n\n<p>Once you&#8217;re done, click <strong>Create<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"555\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-New-Token-Creation-Screenshot-Placeholder-Here-1024x555.webp\" loading=\"lazy\" alt=\"Insert New Token Creation Screenshot Placeholder Here\" class=\"wp-image-1905\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-New-Token-Creation-Screenshot-Placeholder-Here-1024x555.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-New-Token-Creation-Screenshot-Placeholder-Here-300x163.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-New-Token-Creation-Screenshot-Placeholder-Here-768x417.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-New-Token-Creation-Screenshot-Placeholder-Here-1536x833.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-New-Token-Creation-Screenshot-Placeholder-Here-2048x1111.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Copy and Store the Token Securely<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once generated, <strong>copy the token<\/strong> immediately.<\/li>\n\n\n\n<li>You won\u2019t be able to view it again later for security reasons.<\/li>\n\n\n\n<li>Store it in a secure password manager or encrypted storage.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"482\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-Token-Generated-Screenshot-Placeholder-Here-1024x482.webp\" loading=\"lazy\" alt=\"Insert Token Generated Screenshot Placeholder Here\" class=\"wp-image-1906\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-Token-Generated-Screenshot-Placeholder-Here-1024x482.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-Token-Generated-Screenshot-Placeholder-Here-300x141.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-Token-Generated-Screenshot-Placeholder-Here-768x362.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-Token-Generated-Screenshot-Placeholder-Here-1536x723.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-Token-Generated-Screenshot-Placeholder-Here-2048x964.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Manage or Revoke Tokens<\/h3>\n\n\n\n<p>To manage your existing tokens:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"467\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-Manage-API-Token-Screenshot-Placeholder-Here-1024x467.webp\" loading=\"lazy\" alt=\"Insert Manage API Token Screenshot Placeholder Here\" class=\"wp-image-1904\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-Manage-API-Token-Screenshot-Placeholder-Here-1024x467.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-Manage-API-Token-Screenshot-Placeholder-Here-300x137.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-Manage-API-Token-Screenshot-Placeholder-Here-768x350.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-Manage-API-Token-Screenshot-Placeholder-Here-1536x700.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Insert-Manage-API-Token-Screenshot-Placeholder-Here-2048x934.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You\u2019ll see a list of all previously created API tokens.<\/li>\n\n\n\n<li>From here, you can <strong>edit permissions<\/strong>, <strong>disable<\/strong>, or <strong>revoke<\/strong> tokens based on your requirement.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"542\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/From-here-you-can-edit-permissions-1024x542.webp\" loading=\"lazy\" alt=\"From here, you can edit permissions\" class=\"wp-image-1907\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/From-here-you-can-edit-permissions-1024x542.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/From-here-you-can-edit-permissions-300x159.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/From-here-you-can-edit-permissions-768x407.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/From-here-you-can-edit-permissions-1536x814.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/From-here-you-can-edit-permissions-2048x1085.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Use Case Examples for API Tokens<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Automating account creation via billing systems (e.g., WHMCS).<\/li>\n\n\n\n<li>Integrating with remote monitoring tools.<\/li>\n\n\n\n<li>Running automated backups or cron scripts.<\/li>\n\n\n\n<li>Managing DNS or email via scripts.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Pro Tips<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2705 Avoid using your root password in automation scripts.<\/li>\n\n\n\n<li>\u2705 Always review permissions before creating a token.<\/li>\n\n\n\n<li>\u2705 Periodically <strong>review and rotate<\/strong> your API tokens for better security.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>How to Manage API Token in cPanel allows you to <strong>take full control of your server\u2019s automation and integrations<\/strong>\u2014securely and efficiently. Whether you\u2019re a beginner or a seasoned developer, this feature is a must-know for anyone serious about web hosting and server automation.<\/p>\n\n\n\n<p>For more expert articles, don\u2019t forget to visit our <a class=\"\" href=\"https:\/\/hostrago.com\/knowledge-base\/\">HostraGo Knowledge Base<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we\u2019ll walk you through how to manage API Token in cPanel step by step using a secure and user-friendly interface. In today\u2019s&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1902,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[293,291,187,292,294,290],"class_list":["post-1901","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","tag-api-token-in-cpanel","tag-cpanel-automation","tag-hostrago-guide","tag-secure-api-cpanel","tag-server-automation","tag-whm-api-token"],"menu_order":0,"_links":{"self":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/1901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=1901"}],"version-history":[{"count":1,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/1901\/revisions"}],"predecessor-version":[{"id":1908,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/1901\/revisions\/1908"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/media\/1902"}],"wp:attachment":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=1901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=1901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=1901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}