{"id":350523,"date":"2022-09-02T12:55:51","date_gmt":"2022-09-02T12:55:51","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=350523"},"modified":"2022-10-17T05:58:13","modified_gmt":"2022-10-17T05:58:13","slug":"prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/","title":{"rendered":"Prevent webservice when asking for an authentication token (webservice key) on every request using PrestaShop"},"content":{"rendered":"\n<p>Using webservice, PrestaShop allows merchants to give third-party tools access to their shop&#8217;s database through a CRUD API. When we visit webservice page in backoffie then we can see that there is two configurations on webservice page in backoffice.<\/p>\n\n\n\n<p><strong>1)<\/strong> Enable PrestaShop&#8217;s webservice<\/p>\n\n\n\n<p><strong>2) <\/strong>Enable CGI mode for PHP<\/p>\n\n\n\n<p>The first option is simply used to enable &amp; disable the webservice of PrestaShop.<\/p>\n\n\n\n<p>In this blog, we will understand the concept of <strong>&#8220;Enable CGI mode for PHP&#8221; <\/strong>configuration.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"510\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI-1200x510.png\" alt=\"CGI\" class=\"wp-image-350524\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI-1200x510.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI-300x127.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI-250x106.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI-768x326.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI.png 1365w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Let&#8217;s Start..!<\/p>\n\n\n\n<p>When we work with PrestaShop then some host support API requests directly without enabling this configuration. But some hosts create some authentication related issues with every API request.<\/p>\n\n\n\n<p><strong>Example: <\/strong>When we hit any API with ws_key in URL but still it asks for the authentication same as below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"341\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/Selection_017-1-1200x341.png\" alt=\"Selection_017-1\" class=\"wp-image-350526\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/Selection_017-1-1200x341.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/Selection_017-1-300x85.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/Selection_017-1-250x71.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/Selection_017-1-768x219.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/Selection_017-1.png 1360w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Reason for issue: <\/strong>Some hosting providers configure Apache to run the PHP interpreter as a\u00a0<em>CGI binary<\/em>.<\/p>\n\n\n\n<p>By enabling the <strong>&#8220;Enable CGI mode for PHP&#8221;<\/strong> option we can prevent this authentication token related error.<\/p>\n\n\n\n<p><strong>Let&#8217;s understand the role of this configuration:<\/strong><\/p>\n\n\n\n<p>When we enable this configuration then a rewrite rule is added to the .htaccess file to manage HTTP Authorization. Check the below code.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">if (null === $path) {\n    $path = _PS_ROOT_DIR_ . &#039;\/.htaccess&#039;;\n}\n\/\/ Write .htaccess data\nif (!$write_fd = @fopen($path, &#039;wb&#039;)) {\n    return false;\n}\nif (Configuration::get(&#039;PS_WEBSERVICE_CGI_HOST&#039;)) {\n    fwrite($write_fd, &quot;RewriteCond %{HTTP:Authorization} ^(.*)\\nRewriteRule . - &#091;E=HTTP_AUTHORIZATION:%1]\\n\\n&quot;);\n}<\/pre>\n\n\n\n<p>You can directly add the below code in the .htaccess file on your hosting server.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">RewriteRule .* - &#091;E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]<\/pre>\n\n\n\n<p>After making changes in the .htaccess file you can see the error has been resolved.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"330\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/Selection_018-1200x330.png\" alt=\"Selection_018\" class=\"wp-image-350527\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/Selection_018-1200x330.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/Selection_018-300x82.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/Selection_018-250x69.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/Selection_018-768x211.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/Selection_018.png 1365w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>That\u2019s all about this blog. Hope it will help you.<\/p>\n\n\n\n<p>If you are facing any issues or have any doubts about the above process, please feel free to contact us through the comment section.<\/p>\n\n\n\n<p>Also, you can explore our <a href=\"https:\/\/webkul.com\/prestashop-development\/\">PrestaShop Development Services<\/a> and a large range of quality <a href=\"https:\/\/store.webkul.com\/PrestaShop-Extensions.html\">PrestaShop Modules<\/a>.<\/p>\n\n\n\n<p>For any doubt contact us at support@webkul.com <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using webservice, PrestaShop allows merchants to give third-party tools access to their shop&#8217;s database through a CRUD API. When we visit webservice page in backoffie then we can see that there is two configurations on webservice page in backoffice. 1) Enable PrestaShop&#8217;s webservice 2) Enable CGI mode for PHP The first option is simply used <a href=\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":387,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209],"tags":[3291,3283,293],"class_list":["post-350523","post","type-post","status-publish","format-standard","hentry","category-prestashop","tag-prestashop-webservice","tag-prestashop-webservice-api","tag-webservice"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Prevent webservice when asking for an authentication token (webservice key) on every request using PrestaShop - Webkul Blog<\/title>\n<meta name=\"description\" content=\"Using webservice, PrestaShop allow merchants to give third-party tools access to their shop&#039;s database through a CRUD API. When we visit webservice page in backoffie then we can see that there is two configuration on webservice page in backoffice.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Prevent webservice when asking for an authentication token (webservice key) on every request using PrestaShop - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Using webservice, PrestaShop allow merchants to give third-party tools access to their shop&#039;s database through a CRUD API. When we visit webservice page in backoffie then we can see that there is two configuration on webservice page in backoffice.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-02T12:55:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-17T05:58:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI-1200x510.png\" \/>\n<meta name=\"author\" content=\"Sunny Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sunny Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/\"},\"author\":{\"name\":\"Sunny Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/82afaa5265683f080b52d639e7cdaf67\"},\"headline\":\"Prevent webservice when asking for an authentication token (webservice key) on every request using PrestaShop\",\"datePublished\":\"2022-09-02T12:55:51+00:00\",\"dateModified\":\"2022-10-17T05:58:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/\"},\"wordCount\":296,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI-1200x510.png\",\"keywords\":[\"Prestashop Webservice\",\"Prestashop WebService API\",\"webservice\"],\"articleSection\":[\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/\",\"url\":\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/\",\"name\":\"Prevent webservice when asking for an authentication token (webservice key) on every request using PrestaShop - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI-1200x510.png\",\"datePublished\":\"2022-09-02T12:55:51+00:00\",\"dateModified\":\"2022-10-17T05:58:13+00:00\",\"description\":\"Using webservice, PrestaShop allow merchants to give third-party tools access to their shop's database through a CRUD API. When we visit webservice page in backoffie then we can see that there is two configuration on webservice page in backoffice.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI.png\",\"width\":1365,\"height\":580,\"caption\":\"CGI\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prevent webservice when asking for an authentication token (webservice key) on every request using PrestaShop\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/82afaa5265683f080b52d639e7cdaf67\",\"name\":\"Sunny Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/71f74f424b1b289dfe7a885325f69bf2ecd11c159d2c3ee19fc5df341650df4c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/71f74f424b1b289dfe7a885325f69bf2ecd11c159d2c3ee19fc5df341650df4c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Sunny Kumar\"},\"description\":\"Sunny, a Prestashop virtuoso, crafts innovative eCommerce solutions. His expertise in marketplace development is unparalleled, seamlessly integrating modules. With precision coding, Sunny creates robust online stores, ensuring a seamless user experience. His engineering prowess enhances digital retail, leaving a lasting impact on the Prestashop community.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/sunny-kumar912\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Prevent webservice when asking for an authentication token (webservice key) on every request using PrestaShop - Webkul Blog","description":"Using webservice, PrestaShop allow merchants to give third-party tools access to their shop's database through a CRUD API. When we visit webservice page in backoffie then we can see that there is two configuration on webservice page in backoffice.","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:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/","og_locale":"en_US","og_type":"article","og_title":"Prevent webservice when asking for an authentication token (webservice key) on every request using PrestaShop - Webkul Blog","og_description":"Using webservice, PrestaShop allow merchants to give third-party tools access to their shop's database through a CRUD API. When we visit webservice page in backoffie then we can see that there is two configuration on webservice page in backoffice.","og_url":"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2022-09-02T12:55:51+00:00","article_modified_time":"2022-10-17T05:58:13+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI-1200x510.png","type":"","width":"","height":""}],"author":"Sunny Kumar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Sunny Kumar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/"},"author":{"name":"Sunny Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/82afaa5265683f080b52d639e7cdaf67"},"headline":"Prevent webservice when asking for an authentication token (webservice key) on every request using PrestaShop","datePublished":"2022-09-02T12:55:51+00:00","dateModified":"2022-10-17T05:58:13+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/"},"wordCount":296,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI-1200x510.png","keywords":["Prestashop Webservice","Prestashop WebService API","webservice"],"articleSection":["prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/","url":"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/","name":"Prevent webservice when asking for an authentication token (webservice key) on every request using PrestaShop - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI-1200x510.png","datePublished":"2022-09-02T12:55:51+00:00","dateModified":"2022-10-17T05:58:13+00:00","description":"Using webservice, PrestaShop allow merchants to give third-party tools access to their shop's database through a CRUD API. When we visit webservice page in backoffie then we can see that there is two configuration on webservice page in backoffice.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/CGI.png","width":1365,"height":580,"caption":"CGI"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/prevent-webservice-when-asking-for-an-authentication-token-webservice-key-on-every-request-using-prestashop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Prevent webservice when asking for an authentication token (webservice key) on every request using PrestaShop"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/82afaa5265683f080b52d639e7cdaf67","name":"Sunny Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/71f74f424b1b289dfe7a885325f69bf2ecd11c159d2c3ee19fc5df341650df4c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/71f74f424b1b289dfe7a885325f69bf2ecd11c159d2c3ee19fc5df341650df4c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Sunny Kumar"},"description":"Sunny, a Prestashop virtuoso, crafts innovative eCommerce solutions. His expertise in marketplace development is unparalleled, seamlessly integrating modules. With precision coding, Sunny creates robust online stores, ensuring a seamless user experience. His engineering prowess enhances digital retail, leaving a lasting impact on the Prestashop community.","url":"https:\/\/webkul.com\/blog\/author\/sunny-kumar912\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/350523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/387"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=350523"}],"version-history":[{"count":2,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/350523\/revisions"}],"predecessor-version":[{"id":350639,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/350523\/revisions\/350639"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=350523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=350523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=350523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}