{"id":11870,"date":"2021-10-09T09:14:17","date_gmt":"2021-10-09T09:14:17","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=11870"},"modified":"2024-04-23T13:58:39","modified_gmt":"2024-04-23T12:58:39","slug":"create-manage-api-tokens-cpanel","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/","title":{"rendered":"How to Create and Manage API Tokens in cPanel?"},"content":{"rendered":"<p>API is a unique identifier or authentication that allows an application to access a service. It is possible to create and manage API Tokens in cPanel from version 80 onwards. The main function of the API token is to grant a user access to the server without logging in with a password.<\/p>\n<p>So, by issuing API tokens, it is possible to grant permissions to resellers or third-party developers to carry API2 and UAPI operations.<\/p>\n<p>1. Log in to your cPanel account.<\/p>\n<p>2. Go to the <strong>SECURITY<\/strong> section and click on <strong>Manage API Tokens<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13250\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_manage_api_tokens.png\" alt=\"\" width=\"1357\" height=\"308\" \/><\/p>\n<p>The Manage API Tokens panel will appear.<\/p>\n<p>You will first have to create a new API token.<\/p>\n<h2>To Create API Tokens<\/h2>\n<ol>\n<li>Enter the name for the API token in the <strong>API Token Name<\/strong> field.<\/li>\n<li>Choose the <strong>Specify an expiration date<\/strong> option.<\/li>\n<li>Select a date from the calendar in the <strong>API Token Expiration Date<\/strong>. The token will remain usable till that date.<\/li>\n<li>Click on <strong>Create<\/strong>.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13251\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_create_api_tokens.png\" alt=\"\" width=\"1191\" height=\"649\" \/><\/p>\n<div class=\"kb-box-focus kb-box-focus-rounded kb-box-focus-blue\"><strong>Note:\u00a0<\/strong>Although you can choose <strong>The API Token will not expire<\/strong> option, we strongly recommend you don&#8217;t.<\/div>\n<p>A success message will appear as cPanel will create a new token.<\/p>\n<p>5. Copy the API token someplace discreet to share it with your operator later.<\/p>\n<p>6. Click on the <strong>Yes, I Saved My Token<\/strong> button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13252\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_save_api_token.png\" alt=\"\" width=\"784\" height=\"653\" \/><\/p>\n<p>The API token you created will now appear in the list for the active API tokens.<\/p>\n<h2>To Manage API Tokens<\/h2>\n<p>1. Click the <strong>Manage<\/strong> button for the API token you want to manage.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13253\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_manage_api_token_test.png\" alt=\"\" width=\"1206\" height=\"567\" \/><\/p>\n<p>Here, there will be two sections-<\/p>\n<ul>\n<li><strong>MANAGE API TOKEN<\/strong>: Here, you can change the name for the API Token.<\/li>\n<li><strong>REVOKE API TOKEN<\/strong>: It allows you to discard the API token.<\/li>\n<\/ul>\n<h3>MANAGE API TOKEN<\/h3>\n<ol>\n<li>Enter the new name for the API token in the <strong>New API Token Name<\/strong> field.<\/li>\n<li>Click the <strong>Update<\/strong> button.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13255\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_update_api_token.png\" alt=\"\" width=\"790\" height=\"588\" \/><\/p>\n<p>The name of the API token will change to the new one you just updated.<\/p>\n<h3>REVOKE API TOKEN<\/h3>\n<p>1. Click on <strong>Revoke The Token<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13256\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_revoke_api_token.png\" alt=\"\" width=\"794\" height=\"233\" \/>A message will flash asking for your confirmation.<\/p>\n<p>2. Click on the\u00a0<strong>Yes, Revoke The Token<\/strong> button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13259\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_revoke_the_api_token.png\" alt=\"\" width=\"788\" height=\"300\" \/><\/p>\n<p>The system will turn the API Token invalid and remove it from the list of active tokens.<\/p>\n<p>That is all there is to know about configuring API tokens in cPanel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>API is a unique identifier or authentication that allows an application to access a service. It is possible to create and manage API Tokens in cPanel from version 80 onwards. The main function of the API token is to grant a user access to the server without logging in with a password. So, by issuing [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,41],"tags":[2073,2527,2528,2526,2525,2529,2025],"class_list":["post-11870","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-cpanel-faq","category-howtos","tag-access-cpanel","tag-api-access","tag-api-access-cpanel","tag-api-token","tag-api-tokens-cpanel","tag-cpanel-api","tag-cpanel-users"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Create and Manage API Tokens in cPanel?<\/title>\n<meta name=\"description\" content=\"cPanel has become a system with API access. In this guide, we have shown how to create and manage the API tokens in cPanel.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create and Manage API Tokens in cPanel?\" \/>\n<meta property=\"og:description\" content=\"cPanel has become a system with API access. In this guide, we have shown how to create and manage the API tokens in cPanel.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-09T09:14:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-23T12:58:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_manage_api_tokens.png\" \/>\n<meta name=\"author\" content=\"Prasad Khartadkar\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasad Khartadkar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/\",\"name\":\"How to Create and Manage API Tokens in cPanel?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_manage_api_tokens.png\",\"datePublished\":\"2021-10-09T09:14:17+00:00\",\"dateModified\":\"2024-04-23T12:58:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\"},\"description\":\"cPanel has become a system with API access. In this guide, we have shown how to create and manage the API tokens in cPanel.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create and Manage API Tokens in cPanel?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\",\"name\":\"Prasad Khartadkar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"caption\":\"Prasad Khartadkar\"},\"description\":\"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create and Manage API Tokens in cPanel?","description":"cPanel has become a system with API access. In this guide, we have shown how to create and manage the API tokens in cPanel.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/","og_locale":"en_GB","og_type":"article","og_title":"How to Create and Manage API Tokens in cPanel?","og_description":"cPanel has become a system with API access. In this guide, we have shown how to create and manage the API tokens in cPanel.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-10-09T09:14:17+00:00","article_modified_time":"2024-04-23T12:58:39+00:00","og_image":[{"url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_manage_api_tokens.png","type":"","width":"","height":""}],"author":"Prasad Khartadkar","twitter_misc":{"Written by":"Prasad Khartadkar","Estimated reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/","name":"How to Create and Manage API Tokens in cPanel?","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_manage_api_tokens.png","datePublished":"2021-10-09T09:14:17+00:00","dateModified":"2024-04-23T12:58:39+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e"},"description":"cPanel has become a system with API access. In this guide, we have shown how to create and manage the API tokens in cPanel.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-manage-api-tokens-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Create and Manage API Tokens in cPanel?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e","name":"Prasad Khartadkar","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","caption":"Prasad Khartadkar"},"description":"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/"}]}},"views":396,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/11870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=11870"}],"version-history":[{"count":3,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/11870\/revisions"}],"predecessor-version":[{"id":15482,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/11870\/revisions\/15482"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=11870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=11870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=11870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}