{"id":828982,"date":"2025-01-20T10:29:05","date_gmt":"2025-01-20T10:29:05","guid":{"rendered":"https:\/\/www.knowband.com\/blog\/?p=828982\/"},"modified":"2025-01-20T10:30:39","modified_gmt":"2025-01-20T10:30:39","slug":"send-webservice-key-prestashop-authorization-header-instead-url","status":"publish","type":"post","link":"https:\/\/www.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/","title":{"rendered":"How to Send the Webservice Key of PrestaShop in the Authorization Header Instead of the URL"},"content":{"rendered":"<p>PrestaShop provides a comprehensive webservice API that enables developers to programmatically manage critical aspects of an eCommerce store, including products, orders, customers, and more.<\/p>\n<p>Traditionally, accessing the PrestaShop API involves appending the webservice key as a query parameter in the URL. While this method is functional, it poses significant security concerns due to the potential exposure of sensitive information.<\/p>\n<p>A more secure and professional approach is to transmit the webservice key through the Authorization header. In this blog, we delve into the reasons for adopting this approach, its technical advantages, and a step-by-step guide to implementing it in your PrestaShop integration.<\/p>\n<h2><strong>Why Use the Authorization Header?<\/strong><\/h2>\n<p>Transmitting sensitive information like the webservice key via the Authorization header offers several technical benefits over embedding it in the URL:<\/p>\n<h3><strong>Mitigation of Security Risks<\/strong>:<\/h3>\n<p>Sensitive information included in URLs is often logged in browser history, server logs, and monitoring tools.<br \/>\nThis increases the risk of unauthorized access and data exposure. It compromises the overall security of sensitive information.. By using the Authorization header, you ensure that the key remains hidden from such logs.<\/p>\n<h3><strong>Adherence to Security Standards<\/strong>:<\/h3>\n<p>Modern security guidelines and compliance frameworks discourage placing sensitive data in query strings.<br \/>\nEmploying the Authorization header aligns with these standards and enhances the overall security posture of your API integrations.<\/p>\n<h3><strong>Improved URL Readability<\/strong>:<\/h3>\n<p>Embedding the webservice key in the URL results in cluttered and hard-to-read query strings.<br \/>\nBy using the Authorization header, you maintain clean and professional URLs, simplifying troubleshooting and debugging.<\/p>\n<h3><strong>Scalability and Interoperability<\/strong>:<\/h3>\n<p>The Authorization header is widely adopted across APIs and platforms, ensuring compatibility and future-proofing your implementation.<strong>\u00a0<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"module_image\" src=\"https:\/\/cdn.knowband.com\/image\/cache\/data\/plugin_logo\/mobile-app-prestashop-plugin-500-x-500-740x740.webp\" alt=\"Knowband Prestashop App Maker\" width=\"100\" height=\"100\" \/><\/p>\n<div class=\"module_content_part\">\n<h3 class=\"title\">Build Android and iOS App for Your Prestashop Store<\/h3>\n<p class=\"module_content_text\">No Coding Skills Required<\/p>\n<p><a class=\"link_2_to_module\" style=\"display: inline-block; color: #f36!important;\" href=\"https:\/\/www.knowband.com\/prestashop-mobile-app-builder\" target=\"_blank\" rel=\"noopener\"><span class=\"read-more\">SHOP NOW<\/span><\/a><\/p>\n<\/div>\n<style>\n.module_in_content_container { display: flex; flex-direction: column; padding: 20px; border: 1px solid #ccc; font-size: 16px; line-height: 26px; box-shadow: 0 3px 0 #ebebeb; -webkit-box-shadow: 0 3px 0 #ebebeb; position: relative; margin-bottom: 1.5em; } .module_in_content_container>a { position: absolute; left: 0; top: 0; width: 100%; height: 100%; } .module_content { display: flex; align-items: flex-start; } .module_content img { max-width: 100px; margin-right: 20px; } .module_content_part p.module_content_text { margin-bottom: 10px; margin-top: 0; font-size: 18px; color: #000; } .module_content h3 { font-size: 24px; font-weight: 700; line-height: 1.5em; padding-left: 0; padding-top: 0; margin: 0; } .read-more { font-size: 18px; font-weight: 700; line-height: 1.5em; position: relative; display: inline-block; text-transform: uppercase; color: #f36; } .read-more:after { position: absolute; content: ''; width: 1.5em; height: 1.5em; top: -1px; right: -1.5em; background: url(https:\/\/knowband.com\/mobile-app\/wp-content\/uploads\/images\/readmore-arrow.svg) no-repeat center \/ .75em; transition: all .2s; } .read-more:focus, .read-more:hover { text-decoration: none; cursor: pointer; } .read-more:hover:after { right: -2em; transition: all .2s; } @media (max-width: 600px) { .module_content { flex-direction: column; align-items: center; text-align: center; } .module_content img { margin: 0 auto 20px auto; max-width: 100%; } .module_content .title { flex-basis: auto; margin-top: 20px; } .module_content_part p.module_content_text { font-size: 16px; line-height: 24px; } .read-more { font-size: 16px;}}<\/style>\n<h2><strong>Steps to Send the Webservice Key in the Authorization Header<\/strong><\/h2>\n<p>Implementing the Authorization header for your PrestaShop webservice requests involves a series of technical configurations. Below are the detailed steps:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-828987 aligncenter\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Steps-to-Send-the-Webservice-Key-in-the-Authorization-Header.jpg\" alt=\"Steps-to-Send-the-Webservice-Key-in-the-Authorization-Header\" width=\"760\" height=\"760\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Steps-to-Send-the-Webservice-Key-in-the-Authorization-Header.jpg 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Steps-to-Send-the-Webservice-Key-in-the-Authorization-Header-150x150.jpg 150w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Steps-to-Send-the-Webservice-Key-in-the-Authorization-Header-300x300.jpg 300w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Steps-to-Send-the-Webservice-Key-in-the-Authorization-Header-60x60.jpg 60w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/p>\n<h3><strong>Step 1: Enable the PrestaShop Webservice<\/strong><\/h3>\n<p>To begin, ensure that the webservice functionality is enabled in your PrestaShop store:<\/p>\n<ol>\n<li>Log in to your PrestaShop store Back Office.<\/li>\n<li>Navigate to <strong>Advanced Parameters &gt; Webservice<\/strong>.<\/li>\n<li>Toggle the switch to enable the webservice functionality.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-828983 aligncenter\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Enable-the-PrestaShop-Webservice-1024x458.png\" alt=\"Send the Webservice Key of PrestaShop in the Authorization Header - Enable the PrestaShop Webservice\" width=\"648\" height=\"290\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Enable-the-PrestaShop-Webservice-1024x458.png 1024w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Enable-the-PrestaShop-Webservice-300x134.png 300w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Enable-the-PrestaShop-Webservice-768x343.png 768w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Enable-the-PrestaShop-Webservice.png 1919w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/p>\n<p>This step ensures that your store can handle API requests.<\/p>\n<h3><strong>Step 2: Generate a Webservice Key<\/strong><\/h3>\n<p>Next, create a unique webservice key with the required permissions:<\/p>\n<ol>\n<li>In the Webservice section, click Add New Key.<\/li>\n<li>Define the key permissions, such as GET, POST, PUT, and DELETE, based on your integration requirements.<\/li>\n<li>Save the key and securely store it, as it will be required for authorization.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-828984 aligncenter\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Generate-a-Webservice-Key-1024x444.png\" alt=\"Send the Webservice Key of PrestaShop in the Authorization Header - Generate a Webservice Key\" width=\"648\" height=\"281\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Generate-a-Webservice-Key-1024x444.png 1024w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Generate-a-Webservice-Key-300x130.png 300w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Generate-a-Webservice-Key-768x333.png 768w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Generate-a-Webservice-Key.png 1918w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/p>\n<h3><strong>Step 3: Update Your Code to Use the Authorization Header<\/strong><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-828985 aligncenter\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Update-Your-Code-to-Use-the-Authorization-Header-1024x495.png\" alt=\"Send the Webservice Key of PrestaShop in the Authorization Header - Update Your Code to Use the Authorization Header\" width=\"648\" height=\"313\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Update-Your-Code-to-Use-the-Authorization-Header-1024x495.png 1024w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Update-Your-Code-to-Use-the-Authorization-Header-300x145.png 300w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Update-Your-Code-to-Use-the-Authorization-Header-768x372.png 768w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Update-Your-Code-to-Use-the-Authorization-Header.png 1759w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/p>\n<p>Modify your API integration code to include the webservice key in the Authorization header instead of the URL.<\/p>\n<h3><strong>Step 4: Test Your Implementation<\/strong><\/h3>\n<p>After integrating the Authorization header, verify its functionality by testing API requests. Key points to validate include:<\/p>\n<ol>\n<li>The server accepts the Authorization header.<\/li>\n<li>The response contains the expected data.<\/li>\n<li>Error handling works as intended for invalid or missing keys.<\/li>\n<\/ol>\n<p>Testing ensures seamless integration and reliability in production environments.<\/p>\n<h3><strong>Step 5: Update Server Configurations (Optional)<\/strong><\/h3>\n<p>In some instances, your PrestaShop server may explicitly check for the webservice key in the URL. To enable the use of the Authorization header, adjust the server configurations as follows:<\/p>\n<ol>\n<li>Modify the .htaccess file to bypass checks for keys in query strings.<\/li>\n<li>Adjust the API controller settings in PrestaShop to prioritize Authorization headers.<\/li>\n<\/ol>\n<p>These configurations ensure backward compatibility and prevent disruptions.<\/p>\n<h2><strong>Advanced Considerations<\/strong><\/h2>\n<p>For developers handling large-scale integrations, consider the following enhancements:<\/p>\n<ul>\n<li><strong>Token-Based Authentication<\/strong>: Replace static webservice keys with dynamically generated tokens for improved security and control.<\/li>\n<li><strong>Rate Limiting<\/strong>: Implement request throttling to prevent abuse and ensure optimal API performance.<\/li>\n<li><strong>HTTPS Enforcement<\/strong>: Always use HTTPS to encrypt API communication, safeguarding sensitive data during transmission.<\/li>\n<li><strong>Error Logging<\/strong>: Maintain comprehensive logs for API requests and responses to facilitate debugging and auditing.<\/li>\n<\/ul>\n<p>These measures fortify your API ecosystem and prepare it for future scalability.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"module_image\" src=\"https:\/\/cdn.knowband.com\/image\/cache\/data\/plugin_logo\/url-cleaner-plugin-500-x-500-740x740.webp\" alt=\"Knowband Prestashop SEO Optimizer Addon\" width=\"100\" height=\"100\" \/><\/p>\n<div class=\"module_content_part\">\n<h3 class=\"title\">Add Clean URLs &amp; 301\/302\/303 redirection on Your Prestashop Store<\/h3>\n<p class=\"module_content_text\"><a class=\"link_2_to_module\" style=\"display: inline-block; color: #f36!important;\" href=\"https:\/\/www.knowband.com\/prestashop-seo-optimizer\" target=\"_blank\" rel=\"noopener\"><span class=\"read-more\">SHOP NOW<\/span><\/a><\/p>\n<\/div>\n<style>\n.module_in_content_container { display: flex; flex-direction: column; padding: 20px; border: 1px solid #ccc; font-size: 16px; line-height: 26px; box-shadow: 0 3px 0 #ebebeb; -webkit-box-shadow: 0 3px 0 #ebebeb; position: relative; margin-bottom: 1.5em; } .module_in_content_container>a { position: absolute; left: 0; top: 0; width: 100%; height: 100%; } .module_content { display: flex; align-items: flex-start; } .module_content img { max-width: 100px; margin-right: 20px; } .module_content_part p.module_content_text { margin-bottom: 10px; margin-top: 0; font-size: 18px; color: #000; } .module_content h3 { font-size: 24px; font-weight: 700; line-height: 1.5em; padding-left: 0; padding-top: 0; margin: 0; } .read-more { font-size: 18px; font-weight: 700; line-height: 1.5em; position: relative; display: inline-block; text-transform: uppercase; color: #f36; } .read-more:after { position: absolute; content: ''; width: 1.5em; height: 1.5em; top: -1px; right: -1.5em; background: url(https:\/\/knowband.com\/mobile-app\/wp-content\/uploads\/images\/readmore-arrow.svg) no-repeat center \/ .75em; transition: all .2s; } .read-more:focus, .read-more:hover { text-decoration: none; cursor: pointer; } .read-more:hover:after { right: -2em; transition: all .2s; } @media (max-width: 600px) { .module_content { flex-direction: column; align-items: center; text-align: center; } .module_content img { margin: 0 auto 20px auto; max-width: 100%; } .module_content .title { flex-basis: auto; margin-top: 20px; } .module_content_part p.module_content_text { font-size: 16px; line-height: 24px; } .read-more { font-size: 16px;}}<\/style>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>Sending the webservice key in the Authorization header is a significant upgrade to your PrestaShop API integration. By adopting this approach, you mitigate security risks, adhere to best practices, and future-proof your eCommerce store\u2019s infrastructure.<\/p>\n<p>To implement this enhancement, follow the outlined steps meticulously, test rigorously, and update configurations as needed. Complement this practice with additional security measures, such as HTTPS enforcement and token-based authentication, for a robust API integration.<\/p>\n<p>If you have any questions or insights then feel free to share them in the comments section. Together, we can build secure and efficient eCommerce solutions.<\/p>\n<p>Happy coding!<\/p>\n<p style=\"text-align: center;\"><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/vkt-iVIfQnE\" width=\"660\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PrestaShop provides a comprehensive webservice API that enables developers to programmatically manage critical aspects of an eCommerce store, including products, orders, customers, and more. Traditionally, accessing the PrestaShop API involves appending the webservice key as a query parameter in the URL. While this method is functional, it poses significant security concerns due to the potential [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":828986,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kbui_enabled":"","footnotes":""},"categories":[1],"tags":[39322,39320,39318,39324,7464,39326,39319,39321,39323,39325],"class_list":["post-828982","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-prestashop-blog","tag-api-security-for-ecommerce","tag-authorization-header-for-api","tag-prestashop-api-integration","tag-prestashop-api-security-best-practices","tag-prestashop-webservice-api","tag-prestashop-webservice-implementation","tag-prestashop-webservice-key","tag-secure-api-integration-prestashop","tag-send-webservice-key-securely","tag-step-by-step-prestashop-api-guide"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Send the Webservice Key of PrestaShop in the Authorization Header Instead of the URL<\/title>\n<meta name=\"description\" content=\"In this blog, we delve into the reasons for adopting this approach, its technical advantages, and a step-by-step guide to implementing it in your PrestaShop integration.\" \/>\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.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Send the Webservice Key of PrestaShop in the Authorization Header Instead of the URL\" \/>\n<meta property=\"og:description\" content=\"In this blog, we delve into the reasons for adopting this approach, its technical advantages, and a step-by-step guide to implementing it in your PrestaShop integration.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Knowband\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-20T10:29:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-20T10:30:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/How-to-Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Instead-of-the-URL.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"760\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Gabriel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:site\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gabriel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. 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\":\"Article\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/prestashop-blog\\\/send-webservice-key-prestashop-authorization-header-instead-url\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/prestashop-blog\\\/send-webservice-key-prestashop-authorization-header-instead-url\\\/\"},\"author\":{\"name\":\"Gabriel\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/681d456a819721732c320b51b0b10286\"},\"headline\":\"How to Send the Webservice Key of PrestaShop in the Authorization Header Instead of the URL\",\"datePublished\":\"2025-01-20T10:29:05+00:00\",\"dateModified\":\"2025-01-20T10:30:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/prestashop-blog\\\/send-webservice-key-prestashop-authorization-header-instead-url\\\/\"},\"wordCount\":766,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/prestashop-blog\\\/send-webservice-key-prestashop-authorization-header-instead-url\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/How-to-Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Instead-of-the-URL.jpg\",\"keywords\":[\"API security for eCommerce\",\"Authorization header for API\",\"PrestaShop API integration\",\"PrestaShop API security best practices\",\"Prestashop webservice API\",\"PrestaShop webservice implementation\",\"PrestaShop webservice key\",\"Secure API integration PrestaShop\",\"Send webservice key securely\",\"Step-by-step PrestaShop API guide\"],\"articleSection\":[\"Prestashop\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/prestashop-blog\\\/send-webservice-key-prestashop-authorization-header-instead-url\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/prestashop-blog\\\/send-webservice-key-prestashop-authorization-header-instead-url\\\/\",\"name\":\"How to Send the Webservice Key of PrestaShop in the Authorization Header Instead of the URL\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/prestashop-blog\\\/send-webservice-key-prestashop-authorization-header-instead-url\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/prestashop-blog\\\/send-webservice-key-prestashop-authorization-header-instead-url\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/How-to-Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Instead-of-the-URL.jpg\",\"datePublished\":\"2025-01-20T10:29:05+00:00\",\"dateModified\":\"2025-01-20T10:30:39+00:00\",\"description\":\"In this blog, we delve into the reasons for adopting this approach, its technical advantages, and a step-by-step guide to implementing it in your PrestaShop integration.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/prestashop-blog\\\/send-webservice-key-prestashop-authorization-header-instead-url\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/prestashop-blog\\\/send-webservice-key-prestashop-authorization-header-instead-url\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/prestashop-blog\\\/send-webservice-key-prestashop-authorization-header-instead-url\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/How-to-Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Instead-of-the-URL.jpg\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/How-to-Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Instead-of-the-URL.jpg\",\"width\":760,\"height\":300,\"caption\":\"How-to-Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Instead-of-the-URL\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/prestashop-blog\\\/send-webservice-key-prestashop-authorization-header-instead-url\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Send the Webservice Key of PrestaShop in the Authorization Header Instead of the URL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"description\":\"Magento, Prestashop, Opencart, Shopify\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"width\":153,\"height\":61,\"caption\":\"Knowband Blog | Ecommerce Modules\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Knowband\",\"https:\\\/\\\/x.com\\\/KnowbandPlugin\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/681d456a819721732c320b51b0b10286\",\"name\":\"Gabriel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/plugins\\\/wp-user-avatar\\\/deprecated\\\/wp-user-avatar\\\/images\\\/wpua-96x96.png\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/plugins\\\/wp-user-avatar\\\/deprecated\\\/wp-user-avatar\\\/images\\\/wpua-96x96.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/plugins\\\/wp-user-avatar\\\/deprecated\\\/wp-user-avatar\\\/images\\\/wpua-96x96.png\",\"caption\":\"Gabriel\"},\"description\":\"We are professionals in the eCommerce industry, specializing in plugin development. With years of experience, We provide the best plugins for platforms like - Magento, Prestashop, OpenCart and Shopify. We also offer custom module development and customization services for websites and modules. Our team remains at the forefront of industry trends, delivering cutting-edge solutions to enhance eCommerce website functionality. With a customer-centric approach, our company is trusted partner for eCommerce plugin solutions.\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/author\\\/gabriel\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Send the Webservice Key of PrestaShop in the Authorization Header Instead of the URL","description":"In this blog, we delve into the reasons for adopting this approach, its technical advantages, and a step-by-step guide to implementing it in your PrestaShop integration.","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.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/","og_locale":"en_US","og_type":"article","og_title":"How to Send the Webservice Key of PrestaShop in the Authorization Header Instead of the URL","og_description":"In this blog, we delve into the reasons for adopting this approach, its technical advantages, and a step-by-step guide to implementing it in your PrestaShop integration.","og_url":"https:\/\/www.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/","og_site_name":"Knowband Blog | Ecommerce Modules","article_publisher":"https:\/\/www.facebook.com\/Knowband","article_published_time":"2025-01-20T10:29:05+00:00","article_modified_time":"2025-01-20T10:30:39+00:00","og_image":[{"width":760,"height":300,"url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/How-to-Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Instead-of-the-URL.jpg","type":"image\/jpeg"}],"author":"Gabriel","twitter_card":"summary_large_image","twitter_creator":"@KnowbandPlugin","twitter_site":"@KnowbandPlugin","twitter_misc":{"Written by":"Gabriel","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/"},"author":{"name":"Gabriel","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/681d456a819721732c320b51b0b10286"},"headline":"How to Send the Webservice Key of PrestaShop in the Authorization Header Instead of the URL","datePublished":"2025-01-20T10:29:05+00:00","dateModified":"2025-01-20T10:30:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/"},"wordCount":766,"commentCount":0,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/How-to-Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Instead-of-the-URL.jpg","keywords":["API security for eCommerce","Authorization header for API","PrestaShop API integration","PrestaShop API security best practices","Prestashop webservice API","PrestaShop webservice implementation","PrestaShop webservice key","Secure API integration PrestaShop","Send webservice key securely","Step-by-step PrestaShop API guide"],"articleSection":["Prestashop"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/","url":"https:\/\/www.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/","name":"How to Send the Webservice Key of PrestaShop in the Authorization Header Instead of the URL","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/How-to-Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Instead-of-the-URL.jpg","datePublished":"2025-01-20T10:29:05+00:00","dateModified":"2025-01-20T10:30:39+00:00","description":"In this blog, we delve into the reasons for adopting this approach, its technical advantages, and a step-by-step guide to implementing it in your PrestaShop integration.","breadcrumb":{"@id":"https:\/\/www.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/#primaryimage","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/How-to-Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Instead-of-the-URL.jpg","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2025\/01\/How-to-Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Instead-of-the-URL.jpg","width":760,"height":300,"caption":"How-to-Send-the-Webservice-Key-of-PrestaShop-in-the-Authorization-Header-Instead-of-the-URL"},{"@type":"BreadcrumbList","@id":"https:\/\/www.knowband.com\/blog\/prestashop-blog\/send-webservice-key-prestashop-authorization-header-instead-url\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knowband.com\/blog\/fr\/"},{"@type":"ListItem","position":2,"name":"How to Send the Webservice Key of PrestaShop in the Authorization Header Instead of the URL"}]},{"@type":"WebSite","@id":"https:\/\/www.knowband.com\/blog\/fr\/#website","url":"https:\/\/www.knowband.com\/blog\/fr\/","name":"Knowband Blog | Ecommerce Modules","description":"Magento, Prestashop, Opencart, Shopify","publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knowband.com\/blog\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization","name":"Knowband Blog | Ecommerce Modules","url":"https:\/\/www.knowband.com\/blog\/fr\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","width":153,"height":61,"caption":"Knowband Blog | Ecommerce Modules"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Knowband","https:\/\/x.com\/KnowbandPlugin"]},{"@type":"Person","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/681d456a819721732c320b51b0b10286","name":"Gabriel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/wp-content\/plugins\/wp-user-avatar\/deprecated\/wp-user-avatar\/images\/wpua-96x96.png","url":"https:\/\/www.knowband.com\/blog\/wp-content\/plugins\/wp-user-avatar\/deprecated\/wp-user-avatar\/images\/wpua-96x96.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/plugins\/wp-user-avatar\/deprecated\/wp-user-avatar\/images\/wpua-96x96.png","caption":"Gabriel"},"description":"We are professionals in the eCommerce industry, specializing in plugin development. With years of experience, We provide the best plugins for platforms like - Magento, Prestashop, OpenCart and Shopify. We also offer custom module development and customization services for websites and modules. Our team remains at the forefront of industry trends, delivering cutting-edge solutions to enhance eCommerce website functionality. With a customer-centric approach, our company is trusted partner for eCommerce plugin solutions.","url":"https:\/\/www.knowband.com\/blog\/author\/gabriel\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/828982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/comments?post=828982"}],"version-history":[{"count":3,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/828982\/revisions"}],"predecessor-version":[{"id":828990,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/828982\/revisions\/828990"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/media\/828986"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/media?parent=828982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/categories?post=828982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/tags?post=828982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}