{"id":3813,"date":"2026-02-12T05:45:08","date_gmt":"2026-02-12T05:45:08","guid":{"rendered":"https:\/\/www.purevpn.com\/white-label\/?p=3813"},"modified":"2026-02-12T06:13:14","modified_gmt":"2026-02-12T06:13:14","slug":"purevpn-apis-documentation-explained-for-developers","status":"publish","type":"post","link":"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/","title":{"rendered":"API-First VPN Integration \u2013 Developer\u2019s Guide"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_71 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Getting_Started_with_PureVPNs_APIs\" title=\"Getting Started with PureVPN\u2019s APIs\">Getting Started with PureVPN\u2019s APIs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#How_PureVPNs_APIs_Help\" title=\"How PureVPN\u2019s APIs Help?\">How PureVPN\u2019s APIs Help?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#How_Do_PureVPNs_APIs_Work\" title=\"How Do PureVPN\u2019s APIs Work?\">How Do PureVPN\u2019s APIs Work?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#API_Families_Youll_Work_With\" title=\"API Families You\u2019ll Work With\">API Families You\u2019ll Work With<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#1_Authentication_APIs_%E2%80%93_Your_First_Step\" title=\"1. Authentication APIs \u2013 Your First Step\">1. Authentication APIs \u2013 Your First Step<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Start_Here_API_Authentication\" title=\"Start Here: API Authentication\">Start Here: API Authentication<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#2_Inventory_APIs_%E2%80%93_What_Can_Your_Users_Access\" title=\"2. Inventory APIs \u2013 What Can Your Users Access?\">2. Inventory APIs \u2013 What Can Your Users Access?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Get_Subscribed_Countries\" title=\"Get Subscribed Countries\">Get Subscribed Countries<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Get_Subscribed_Cities\" title=\"Get Subscribed Cities\">Get Subscribed Cities<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Get_Subscribed_Protocols\" title=\"Get Subscribed Protocols\">Get Subscribed Protocols<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Get_Subscribed_Channels\" title=\"Get Subscribed Channels\">Get Subscribed Channels<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Build_Smarter_with_Inventory_APIs\" title=\"Build Smarter with Inventory APIs\">Build Smarter with Inventory APIs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#3_VPN_Account_Management_%E2%80%93_Handling_User_Credentials\" title=\"3. VPN Account Management \u2013 Handling User Credentials\">3. VPN Account Management \u2013 Handling User Credentials<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Create_VPN_Account\" title=\"Create VPN Account\">Create VPN Account<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Generate_VPN_Account\" title=\"Generate VPN Account\">Generate VPN Account<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Extend_Expiry\" title=\"Extend Expiry\">Extend Expiry<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Renew_Account\" title=\"Renew Account\">Renew Account<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Enable_Account\" title=\"Enable Account\">Enable Account<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Disable_Account\" title=\"Disable Account\">Disable Account<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Delete_Account\" title=\"Delete Account\">Delete Account<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Change_Password\" title=\"Change Password\">Change Password<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Get_Status\" title=\"Get Status\">Get Status<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Update_Subscription_Type\" title=\"Update Subscription Type\">Update Subscription Type<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Total_Control_with_VPN_Account_Management_APIs\" title=\"Total Control with VPN Account Management APIs\">Total Control with VPN Account Management APIs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#4_Optimized_Server_API_%E2%80%93_The_Secret_Sauce\" title=\"4. Optimized Server API \u2013 The Secret Sauce\">4. Optimized Server API \u2013 The Secret Sauce<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Find_the_Fastest_Server\" title=\"Find the Fastest Server\">Find the Fastest Server<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Best_Practices_for_Developers\" title=\"Best Practices for Developers\">Best Practices for Developers<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-28\" href=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#Final_Thoughts\" title=\"Final Thoughts\">Final Thoughts<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<p>APIs are the backbone of modern software integration. They let you extend your app\u2019s functionality without reinventing the wheel. <a href=\"https:\/\/www.purewl.com\/developers\/\" target=\"_blank\" rel=\"noreferrer noopener\">PureVPN\u2019s White Label APIs (PureWL)<\/a> do exactly that; they let you embed VPN features directly into your own applications, giving users privacy, secure browsing, and even regional content access without having to leave your platform.<\/p>\n\n\n\n<p>If you\u2019re building a security product, a streaming tool, or even a mobile app that requires secure connectivity, PureVPN\u2019s APIs can help you deliver those experiences seamlessly. In this blog, we\u2019ll walk through <strong>how PureVPN\u2019s APIs work<\/strong>, what each API family offers, and how you can use them to power your app.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Getting_Started_with_PureVPNs_APIs\"><\/span>Getting Started with PureVPN\u2019s APIs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>PureVPN APIs are REST-based and easy to consume. You interact with them over HTTPS at https:\/\/atomapi.com, and every call returns a JSON response. To get started, you\u2019ll need:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A subscribed <strong>Partner Console account<\/strong> (console.purewl.com).<br><\/li>\n\n\n\n<li>Your <strong>Secret Key,<\/strong> available inside the Partner Console.<br><\/li>\n\n\n\n<li>An <strong>Access Token<\/strong>, which you\u2019ll generate using the Secret Key.<\/li>\n<\/ul>\n\n\n\n<p>Once authenticated, your app can fetch available servers, create VPN accounts, and point users to the fastest or streaming-optimized connection.<\/p>\n\n\n\n<p>Think of it this way: <strong>PureVPN tells you where and how to connect; your app handles the actual VPN tunnel.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_PureVPNs_APIs_Help\"><\/span>How PureVPN\u2019s APIs Help?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXd-s9EyJXpqo84Cxo2UjPgAtapgmVFEmSlAZQZkmkJtkGWINHWdg7RG2e7jAHwQayDjbdng2UGoNS5A1CuAdPJsFEcwmNcDMGOxfDKJ2kzKH8VHvy5l6hihZgYeqQEz7Y4vyHFssQ?key=s3MW8yYL8o9QpK7FWuGBJA\" alt=\"Overview of PureVPN APIs for authentication, inventory access, and optimized streaming servers.\"\/><\/figure>\n\n\n\n<p>PureVPN White Label provides:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Authentication APIs<\/strong> \u2013 Securely connect your app to PureWL.<br><\/li>\n\n\n\n<li><strong>Inventory APIs<\/strong> \u2013 Fetch available countries and streaming services.<br><\/li>\n\n\n\n<li><strong>Optimized Streaming Servers<\/strong> \u2013 Special servers designed to bypass platform-specific blocks.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_Do_PureVPNs_APIs_Work\"><\/span>How Do PureVPN\u2019s APIs Work?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXePtsP0VtuiWWbkLvfn7rHIUUAYeSVN722X9THn1oAo4VekKl-Z6kieYg_IUtJLCBwtZNS8HoccgmVxtyx8BvXFcpKkRHmD3Ue27DWa-tCK83x_zH4YlnfkqCEFdtDUVBGHuW-s?key=s3MW8yYL8o9QpK7FWuGBJA\" alt=\"Diagram of PureVPN APIs integration process including access token, server data, server selection, and VPN tunnel connection.\"\/><\/figure>\n\n\n\n<p>The flow is straightforward once you see it in action. Here\u2019s the big picture:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Get your Secret Key<\/strong> from the Partner Console.<br><\/li>\n\n\n\n<li><strong>Request an Access Token<\/strong> \u2014 this will be attached to all subsequent calls.<br><\/li>\n\n\n\n<li><strong>Fetch server data<\/strong> \u2014 countries, cities, protocols, or streaming services.<br><\/li>\n\n\n\n<li><strong>Pick the fastest or most relevant server<\/strong> using the Optimized Server API.<br><\/li>\n\n\n\n<li><strong>Dial the VPN tunnel<\/strong> using your own client logic (IPSec, IKEv2, OpenVPN, or WireGuard).<\/li>\n<\/ol>\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;display:flex;gap:12px;align-items:flex-start;\">\n  \n  <div style=\"background:#A68FEF;color:#fff;min-width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-weight:bold;box-shadow:0 4px 10px rgba(166,143,239,0.2);margin-top:4px;\">\n    !\n  <\/div>\n  \n  <div>\n    <div style=\"font-weight:600;font-size:18px;margin-bottom:6px;\">Note<\/div>\n    <p style=\"margin:0;\">PureVPN doesn\u2019t expose APIs to connect or disconnect the tunnel. You\u2019ll implement the actual VPN connection in your app, while PureWL provides the credentials and server metadata.<\/p>\n  <\/div>\n\n<\/div>\n\n\n\n\n<p>Once the connection is established, all traffic between your user and the internet flows securely, bypassing ISP monitoring or regional restrictions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"API_Families_Youll_Work_With\"><\/span>API Families You\u2019ll Work With<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>PureVPN\u2019s APIs are grouped into four main families. Let\u2019s break down what each does and how you\u2019ll use them.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Authentication_APIs_%E2%80%93_Your_First_Step\"><\/span>1. Authentication APIs \u2013 Your First Step<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Before you do anything, you\u2019ll need to authenticate. The Authentication APIs give you the <strong>Access Token<\/strong> that unlocks all other endpoints.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Use case:<\/strong> Exchange your Secret Key for an accessToken and refreshToken.<br><\/li>\n\n\n\n<li><strong>Why it matters:<\/strong> Without tokens, your calls will be rejected. Tokens also control session expiry and refresh cycles.<\/li>\n<\/ul>\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<style>\n  .cta-auth {\n    font-family: 'Poppins', sans-serif;\n    max-width: 780px;\n    margin: 30px auto;\n    background: #F9F7FF;\n    border: 1px solid #D9D2F5;\n    border-left: 6px solid #A68FEF;\n    border-radius: 14px;\n    box-shadow: 0 8px 24px rgba(166,143,239,0.12);\n    padding: 22px 26px;\n    display: flex;\n    align-items: center;\n    gap: 16px;\n    justify-content: space-between;\n    flex-wrap: wrap;\n    color: #4D3B7A;\n  }\n  .cta-auth h3 {\n    margin: 0 0 6px 0;\n    font-size: 18px;\n    font-weight: 600;\n  }\n  .cta-auth p {\n    margin: 0;\n    font-size: 14px;\n    line-height: 1.6;\n    color: #5a4b85;\n  }\n  .cta-auth-btn {\n    display: inline-block;\n    background: linear-gradient(135deg,#8B70D6,#A68FEF);\n    color: #fff;\n    text-decoration: none;\n    padding: 10px 16px;\n    border-radius: 10px;\n    font-weight: 600;\n    white-space: nowrap;\n    box-shadow: 0 6px 18px rgba(166,143,239,0.25);\n    transition: transform .06s ease, filter .2s ease;\n  }\n  .cta-auth-btn:hover {\n    filter: brightness(0.95);\n    transform: translateY(-1px);\n  }\n  .cta-auth .cta-text {\n    flex: 1 1 420px;\n  }\n<\/style>\n\n<div class=\"cta-auth\">\n  <div class=\"cta-text\">\n    <h3><span class=\"ez-toc-section\" id=\"Start_Here_API_Authentication\"><\/span>Start Here: API Authentication<span class=\"ez-toc-section-end\"><\/span><\/h3>\n    <p>Get your <code>accessToken<\/code> &amp; <code>refreshToken<\/code> to unlock every endpoint. Secure storage + auto-refresh recommended.<\/p>\n  <\/div>\n  <a class=\"cta-auth-btn\" href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/\" target=\"_blank\" rel=\"noopener\">\n    Open Authentication Guide \u2192\n  <\/a>\n<\/div>\n\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;display:flex;gap:12px;align-items:flex-start;\">\n  \n  <div style=\"background:#A68FEF;color:#fff;min-width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-weight:bold;box-shadow:0 4px 10px rgba(166,143,239,0.2);margin-top:4px;\">\n    \u26a1\n  <\/div>\n  \n  <div>\n    <div style=\"font-weight:600;font-size:18px;margin-bottom:6px;\">Pro Tip<\/div>\n    <p style=\"margin:0;\">Always store tokens securely and implement auto-refresh to avoid session drops.<\/p>\n  <\/div>\n\n<\/div>\n\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Inventory_APIs_%E2%80%93_What_Can_Your_Users_Access\"><\/span>2. Inventory APIs \u2013 What Can Your Users Access?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Once you\u2019re authenticated, the Inventory APIs tell you what\u2019s available. They return the list of <strong>countries, cities, protocols, and streaming services<\/strong> your app can offer.<\/p>\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;\">\n  <h2 style=\"margin:0 0 10px 0;font-size:18px;font-weight:600;color:#4D3B7A;\"><span class=\"ez-toc-section\" id=\"Get_Subscribed_Countries\"><\/span>Get Subscribed Countries<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p style=\"margin:0 0 15px 0;\">Which countries can your users connect to? Use this API to explore all subscribed countries available for your app.<\/p>\n  <a href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/inventory-management\/countries\/\" target=\"_blank\" style=\"display:inline-block;padding:10px 16px;background:#A68FEF;color:#fff;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 4px 10px rgba(166,143,239,0.2);\">Explore Get Subscribed Countries APIs<\/a>\n<\/div>\n\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;\">\n  <h2 style=\"margin:0 0 10px 0;font-size:18px;font-weight:600;color:#4D3B7A;\"><span class=\"ez-toc-section\" id=\"Get_Subscribed_Cities\"><\/span>Get Subscribed Cities<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p style=\"margin:0 0 15px 0;\">Narrow it down further to city-level servers.<\/p>\n  <a href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/inventory-management\/cities\/\" target=\"_blank\" style=\"display:inline-block;padding:10px 16px;background:#A68FEF;color:#fff;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 4px 10px rgba(166,143,239,0.2);\">Explore Get Subscribed Cities APIs<\/a>\n<\/div>\n\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;\">\n  <h2 style=\"margin:0 0 10px 0;font-size:18px;font-weight:600;color:#4D3B7A;\"><span class=\"ez-toc-section\" id=\"Get_Subscribed_Protocols\"><\/span>Get Subscribed Protocols<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p style=\"margin:0 0 15px 0;\">Discover available connection types (e.g., IKEv2, WireGuard).<\/p>\n  <a href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/inventory-management\/protocols\/\" target=\"_blank\" style=\"display:inline-block;padding:10px 16px;background:#A68FEF;color:#fff;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 4px 10px rgba(166,143,239,0.2);\">Explore Get Subscribed Protocol APIs<\/a>\n<\/div>\n\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;\">\n  <h2 style=\"margin:0 0 10px 0;font-size:18px;font-weight:600;color:#4D3B7A;\"><span class=\"ez-toc-section\" id=\"Get_Subscribed_Channels\"><\/span>Get Subscribed Channels<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p style=\"margin:0 0 15px 0;\"> List streaming platforms (Netflix US, BBC iPlayer, etc.).<\/p>\n  <a href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/inventory-management\/get-subscribed-channels\/\" target=\"_blank\" style=\"display:inline-block;padding:10px 16px;background:#A68FEF;color:#fff;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 4px 10px rgba(166,143,239,0.2);\">Explore Get Subscribed Channels APIs<\/a>\n<\/div>\n\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div class=\"cta-auth\">\n  <div class=\"cta-text\">\n    <h3><span class=\"ez-toc-section\" id=\"Build_Smarter_with_Inventory_APIs\"><\/span>Build Smarter with Inventory APIs<span class=\"ez-toc-section-end\"><\/span><\/h3>\n    <p>Use country, city, protocol, and service data to power dropdowns, automate region selection, and deliver a seamless user experience.<\/p>\n  <\/div>\n  <a class=\"cta-auth-btn\" href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/inventory-management\/\" target=\"_blank\" rel=\"noopener\">\n    Explore Inventory APIs \u2192\n  <\/a>\n<\/div>\n\n<style>\n  .cta-auth {\n    font-family: 'Poppins', sans-serif;\n    max-width: 780px;\n    margin: 30px auto;\n    background: #F9F7FF;\n    border: 1px solid #D9D2F5;\n    border-left: 6px solid #A68FEF;\n    border-radius: 14px;\n    box-shadow: 0 8px 24px rgba(166,143,239,0.12);\n    padding: 22px 26px;\n    display: flex;\n    align-items: center;\n    gap: 16px;\n    justify-content: space-between;\n    flex-wrap: wrap;\n    color: #4D3B7A;\n  }\n  .cta-auth h3 {\n    margin: 0 0 6px 0;\n    font-size: 18px;\n    font-weight: 600;\n  }\n  .cta-auth p {\n    margin: 0;\n    font-size: 14px;\n    line-height: 1.6;\n    color: #5a4b85;\n  }\n  .cta-auth-btn {\n    display: inline-block;\n    background: linear-gradient(135deg,#8B70D6,#A68FEF);\n    color: #fff;\n    text-decoration: none;\n    padding: 10px 16px;\n    border-radius: 10px;\n    font-weight: 600;\n    white-space: nowrap;\n    box-shadow: 0 6px 18px rgba(166,143,239,0.25);\n    transition: transform .06s ease, filter .2s ease;\n  }\n  .cta-auth-btn:hover {\n    filter: brightness(0.95);\n    transform: translateY(-1px);\n  }\n  .cta-auth .cta-text {\n    flex: 1 1 420px;\n  }\n<\/style>\n\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_VPN_Account_Management_%E2%80%93_Handling_User_Credentials\"><\/span>3. VPN Account Management \u2013 Handling User Credentials<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Every VPN session needs credentials. The VPN Account Management (VAM) APIs let you create, update, and manage those accounts.<\/p>\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;\">\n  <h2 style=\"margin:0 0 10px 0;font-size:18px;font-weight:600;color:#4D3B7A;\"><span class=\"ez-toc-section\" id=\"Create_VPN_Account\"><\/span>Create VPN Account<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p style=\"margin:0 0 15px 0;\">Quickly provision new VPN credentials to manage user access with security and ease.<\/p>\n  <a href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/vpn-account-management-vam\/create-vpn-account\/\" target=\"_blank\" style=\"display:inline-block;padding:10px 16px;background:#A68FEF;color:#fff;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 4px 10px rgba(166,143,239,0.2);\">Explore Create VPN Account APIs<\/a>\n<\/div>\n\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;\">\n  <h2 style=\"margin:0 0 10px 0;font-size:18px;font-weight:600;color:#4D3B7A;\"><span class=\"ez-toc-section\" id=\"Generate_VPN_Account\"><\/span>Generate VPN Account<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p style=\"margin:0 0 15px 0;\">Fetch existing credentials or create new ones if none exist.<\/p>\n  <a href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/vpn-account-management-vam\/generate\/\" target=\"_blank\" style=\"display:inline-block;padding:10px 16px;background:#A68FEF;color:#fff;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 4px 10px rgba(166,143,239,0.2);\">Explore Generate VPN Account APIs<\/a>\n<\/div>\n\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;\">\n  <h2 style=\"margin:0 0 10px 0;font-size:18px;font-weight:600;color:#4D3B7A;\"><span class=\"ez-toc-section\" id=\"Extend_Expiry\"><\/span>Extend Expiry<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p style=\"margin:0 0 15px 0;\">Easily extend user subscriptions by adding extra days to ensure uninterrupted VPN access.<\/p>\n  <a href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/vpn-account-management-vam\/extend-expiry\/\" target=\"_blank\" style=\"display:inline-block;padding:10px 16px;background:#A68FEF;color:#fff;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 4px 10px rgba(166,143,239,0.2);\">Explore Extend Expiry APIs<\/a>\n<\/div>\n\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;\">\n  <h2 style=\"margin:0 0 10px 0;font-size:18px;font-weight:600;color:#4D3B7A;\"><span class=\"ez-toc-section\" id=\"Renew_Account\"><\/span>Renew Account<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p style=\"margin:0 0 15px 0;\">Renews an account close to expiry, ensuring uninterrupted service.<\/p>\n  <a href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/vpn-account-management-vam\/renew-account\/\" target=\"_blank\" style=\"display:inline-block;padding:10px 16px;background:#A68FEF;color:#fff;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 4px 10px rgba(166,143,239,0.2);\">Explore Renew Account APIs<\/a>\n<\/div>\n\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;\">\n  <h2 style=\"margin:0 0 10px 0;font-size:18px;font-weight:600;color:#4D3B7A;\"><span class=\"ez-toc-section\" id=\"Enable_Account\"><\/span>Enable Account<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p style=\"margin:0 0 15px 0;\">Quickly restore access for users by re-enabling previously disabled VPN accounts.<\/p>\n  <a href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/vpn-account-management-vam\/enable-account\/\" target=\"_blank\" style=\"display:inline-block;padding:10px 16px;background:#A68FEF;color:#fff;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 4px 10px rgba(166,143,239,0.2);\">Explore Enable Account APIs<\/a>\n<\/div>\n\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;\">\n  <h2 style=\"margin:0 0 10px 0;font-size:18px;font-weight:600;color:#4D3B7A;\"><span class=\"ez-toc-section\" id=\"Disable_Account\"><\/span>Disable Account<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p style=\"margin:0 0 15px 0;\">Temporarily suspends a VPN account without deleting it.<\/p>\n  <a href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/vpn-account-management-vam\/disable-account\/\" target=\"_blank\" style=\"display:inline-block;padding:10px 16px;background:#A68FEF;color:#fff;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 4px 10px rgba(166,143,239,0.2);\">Explore Disable Account APIs<\/a>\n<\/div>\n\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;\">\n  <h2 style=\"margin:0 0 10px 0;font-size:18px;font-weight:600;color:#4D3B7A;\"><span class=\"ez-toc-section\" id=\"Delete_Account\"><\/span>Delete Account<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p style=\"margin:0 0 15px 0;\">Permanently removes a VPN account from the system.<\/p>\n  <a href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/vpn-account-management-vam\/delete-account\/\" target=\"_blank\" style=\"display:inline-block;padding:10px 16px;background:#A68FEF;color:#fff;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 4px 10px rgba(166,143,239,0.2);\">Explore Delete Account APIs<\/a>\n<\/div>\n\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;\">\n  <h2 style=\"margin:0 0 10px 0;font-size:18px;font-weight:600;color:#4D3B7A;\"><span class=\"ez-toc-section\" id=\"Change_Password\"><\/span>Change Password<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p style=\"margin:0 0 15px 0;\">Updates the login password for a VPN account.<\/p>\n  <a href=https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/vpn-account-management-vam\/change-password\/\" target=\"_blank\" style=\"display:inline-block;padding:10px 16px;background:#A68FEF;color:#fff;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 4px 10px rgba(166,143,239,0.2);\">Explore Change Password APIs<\/a>\n<\/div>\n\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;\">\n  <h2 style=\"margin:0 0 10px 0;font-size:18px;font-weight:600;color:#4D3B7A;\"><span class=\"ez-toc-section\" id=\"Get_Status\"><\/span>Get Status<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p style=\"margin:0 0 15px 0;\">Retrieves the current status and validity details of a VPN account.<\/p>\n  <a href=https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/vpn-account-management-vam\/status\/\" target=\"_blank\" style=\"display:inline-block;padding:10px 16px;background:#A68FEF;color:#fff;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 4px 10px rgba(166,143,239,0.2);\">Explore Get Status APIs<\/a>\n<\/div>\n\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div style=\"font-family:'Poppins',sans-serif;max-width:800px;margin:30px auto;background:#F9F7FF;border-left:5px solid #A68FEF;border-radius:10px;box-shadow:0 6px 20px rgba(166,143,239,0.08);padding:20px 25px;color:#4D3B7A;font-size:15px;line-height:1.7;\">\n  <h2 style=\"margin:0 0 10px 0;font-size:18px;font-weight:600;color:#4D3B7A;\"><span class=\"ez-toc-section\" id=\"Update_Subscription_Type\"><\/span>Update Subscription Type<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p style=\"margin:0 0 15px 0;\">Modifies a VPN account\u2019s subscription level (e.g., trial, paid, or freemium).<\/p>\n  <a href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/vpn-account-management-vam\/update-vpn-account\/\" target=\"_blank\" style=\"display:inline-block;padding:10px 16px;background:#A68FEF;color:#fff;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 4px 10px rgba(166,143,239,0.2);\">Explore Update Subscription Type APIs<\/a>\n<\/div>\n\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div class=\"cta-auth\">\n  <div class=\"cta-text\">\n    <h3><span class=\"ez-toc-section\" id=\"Total_Control_with_VPN_Account_Management_APIs\"><\/span>Total Control with VPN Account Management APIs<span class=\"ez-toc-section-end\"><\/span><\/h3>\n    <p>Manage how VPN credentials map to your user base\u2014whether integrated with your own authentication system or used directly for full flexibility.<\/p>\n  <\/div>\n  <a class=\"cta-auth-btn\" href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/vpn-account-management-vam\/\" target=\"_blank\" rel=\"noopener\">\n    See All VPN Account Management APIs \u2192\n  <\/a>\n<\/div>\n\n<style>\n  .cta-auth {\n    font-family: 'Poppins', sans-serif;\n    max-width: 780px;\n    margin: 30px auto;\n    background: #F9F7FF;\n    border: 1px solid #D9D2F5;\n    border-left: 6px solid #A68FEF;\n    border-radius: 14px;\n    box-shadow: 0 8px 24px rgba(166,143,239,0.12);\n    padding: 22px 26px;\n    display: flex;\n    align-items: center;\n    gap: 16px;\n    justify-content: space-between;\n    flex-wrap: wrap;\n    color: #4D3B7A;\n  }\n  .cta-auth h3 {\n    margin: 0 0 6px 0;\n    font-size: 18px;\n    font-weight: 600;\n  }\n  .cta-auth p {\n    margin: 0;\n    font-size: 14px;\n    line-height: 1.6;\n    color: #5a4b85;\n  }\n  .cta-auth-btn {\n    display: inline-block;\n    background: linear-gradient(135deg,#8B70D6,#A68FEF);\n    color: #fff;\n    text-decoration: none;\n    padding: 10px 16px;\n    border-radius: 10px;\n    font-weight: 600;\n    white-space: nowrap;\n    box-shadow: 0 6px 18px rgba(166,143,239,0.25);\n    transition: transform .06s ease, filter .2s ease;\n  }\n  .cta-auth-btn:hover {\n    filter: brightness(0.95);\n    transform: translateY(-1px);\n  }\n  .cta-auth .cta-text {\n    flex: 1 1 420px;\n  }\n<\/style>\n\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Optimized_Server_API_%E2%80%93_The_Secret_Sauce\"><\/span>4. Optimized Server API \u2013 The Secret Sauce<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Finally, once you know what users want (say, Netflix US or low-latency gaming in Europe), you\u2019ll need the best server for the job. That\u2019s where the Optimized Server API comes in.<strong>Get Optimized Server<\/strong> \u2013 Returns the fastest or most appropriate server based on country, city, protocol, device type, or streaming channel.<\/p>\n\n\n\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@500;600&#038;display=swap\" rel=\"stylesheet\">\n\n<div class=\"cta-auth\">\n  <div class=\"cta-text\">\n    <h3><span class=\"ez-toc-section\" id=\"Find_the_Fastest_Server\"><\/span>Find the Fastest Server<span class=\"ez-toc-section-end\"><\/span><\/h3>\n    <p>Use the Optimized Server API to always connect users to the best option for speed, location, and service.<\/p>\n  <\/div>\n  <a class=\"cta-auth-btn\" href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/api-reference\/speedtest-get-fastest-server\/\" target=\"_blank\" rel=\"noopener\">\n    Check Optimized Server API \u2192\n  <\/a>\n<\/div>\n\n<style>\n  .cta-auth {\n    font-family: 'Poppins', sans-serif;\n    max-width: 780px;\n    margin: 30px auto;\n    background: #F9F7FF;\n    border: 1px solid #D9D2F5;\n    border-left: 6px solid #A68FEF;\n    border-radius: 14px;\n    box-shadow: 0 8px 24px rgba(166,143,239,0.12);\n    padding: 22px 26px;\n    display: flex;\n    align-items: center;\n    gap: 16px;\n    justify-content: space-between;\n    flex-wrap: wrap;\n    color: #4D3B7A;\n  }\n  .cta-auth h3 {\n    margin: 0 0 6px 0;\n    font-size: 18px;\n    font-weight: 600;\n  }\n  .cta-auth p {\n    margin: 0;\n    font-size: 14px;\n    line-height: 1.6;\n    color: #5a4b85;\n  }\n  .cta-auth-btn {\n    display: inline-block;\n    background: linear-gradient(135deg,#8B70D6,#A68FEF);\n    color: #fff;\n    text-decoration: none;\n    padding: 10px 16px;\n    border-radius: 10px;\n    font-weight: 600;\n    white-space: nowrap;\n    box-shadow: 0 6px 18px rgba(166,143,239,0.25);\n    transition: transform .06s ease, filter .2s ease;\n  }\n  .cta-auth-btn:hover {\n    filter: brightness(0.95);\n    transform: translateY(-1px);\n  }\n  .cta-auth .cta-text {\n    flex: 1 1 420px;\n  }\n<\/style>\n\n\n\n\n<p>Your app then takes this server info and uses its own networking logic to establish the VPN tunnel. The result? Users always connect to the best available option without manual guesswork.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Best_Practices_for_Developers\"><\/span>Best Practices for Developers<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfvzMH645AUCcSON1UsMma329-BHW_sAjAxwARcvKDYSpxBdnKv0AIAE9cRfic5YG3dsrhvob_3naivduvxj8vJr3yKVR92X4FUJr-o2fEfYvqX42CkbmRiIkGmhTIFRUB9X_pNiQ?key=s3MW8yYL8o9QpK7FWuGBJA\" alt=\"Developer best practices for working with PureVPN APIs including token refresh, server selection, fallback logic, UI feedback, and device awareness.\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Automate token refresh<\/strong> \u2013 Avoid forcing users to log in again.<br><\/li>\n\n\n\n<li><strong>Smart server selection<\/strong> \u2013 Let the API pick the lowest-latency server for a smoother experience.<br><\/li>\n\n\n\n<li><strong>Fallback logic<\/strong> \u2013 If one server fails, retry with the next.<br><\/li>\n\n\n\n<li><strong>UI feedback<\/strong> \u2013 Show clear \u201cConnected\/Disconnected\u201d states.<br><\/li>\n\n\n\n<li><strong>Device awareness<\/strong> \u2013 Always pass the correct device type (Android, iOS, Windows, macOS).<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Final_Thoughts\"><\/span>Final Thoughts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a href=\"https:\/\/www.purewl.com\/developer\/guides\/api\/get-started\/\" target=\"_blank\" rel=\"noreferrer noopener\">PureVPN\u2019s APIs<\/a> give you the building blocks to add secure, fast, and reliable VPN functionality to your own applications. From authentication to account management and server optimization, each API family plays a role in creating a seamless experience for your users.<\/p>\n\n\n\n<p>And remember: <strong>PureVPN provides the infrastructure, but you control the connection.<\/strong> You\u2019ll implement the VPN tunnel using your own client code while PureVPN tells you where to connect, with what credentials, and which server is best.<\/p>\n\n\n\n<p>By combining your app\u2019s UX with PureVPN\u2019s global VPN backbone, you can offer privacy, streaming access, and performance that feels truly integrated.<\/p>\n\n\n\n<div class=\"wp-block-buttons text-center is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-1 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background has-link-color wp-element-button\" href=\"http:\/\/purevpn.com\/white-label\/\" style=\"color:#fdfafa;background-color:#b15aff\" target=\"_blank\" rel=\"noreferrer noopener\">Join PureVPN&#8217;s White Label Program<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>APIs are the backbone of modern software integration. They let you extend your app\u2019s functionality without reinventing the wheel. PureVPN\u2019s White Label APIs (PureWL) do exactly that; they let you embed VPN features directly into your own applications, giving users privacy, secure browsing, and even regional content access without having to leave your platform. If&#8230;<\/p>\n","protected":false},"author":3,"featured_media":3814,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[122],"tags":[648],"class_list":["post-3813","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cyber-security","tag-purevpn-apis"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>API-First VPN Integration \u2013 Developer\u2019s Guide - PureVPN White label<\/title>\n<meta name=\"description\" content=\"PureVPN APIs documentation explained for developers with clear integration steps, security features, and best practices.\" \/>\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.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"API-First VPN Integration \u2013 Developer\u2019s Guide - PureVPN White label\" \/>\n<meta property=\"og:description\" content=\"PureVPN APIs documentation explained for developers with clear integration steps, security features, and best practices.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/\" \/>\n<meta property=\"og:site_name\" content=\"PureVPN White label\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-12T05:45:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-12T06:13:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/d1jxermyrliwoo.cloudfront.net\/wp-content\/uploads\/2025\/08\/19065316\/Copy-of-Port-Forwarding-2025-08-19T113944.336.png\" \/>\n\t<meta property=\"og:image:width\" content=\"876\" \/>\n\t<meta property=\"og:image:height\" content=\"493\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"duresham\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"duresham\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/\",\"url\":\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/\",\"name\":\"API-First VPN Integration \u2013 Developer\u2019s Guide - PureVPN White label\",\"isPartOf\":{\"@id\":\"https:\/\/www.purevpn.com\/white-label\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/d1jxermyrliwoo.cloudfront.net\/wp-content\/uploads\/2025\/08\/19065316\/Copy-of-Port-Forwarding-2025-08-19T113944.336.png\",\"datePublished\":\"2026-02-12T05:45:08+00:00\",\"dateModified\":\"2026-02-12T06:13:14+00:00\",\"author\":{\"@id\":\"https:\/\/www.purevpn.com\/white-label\/#\/schema\/person\/d75943d96d9bdd3277bc60adaf00f44c\"},\"description\":\"PureVPN APIs documentation explained for developers with clear integration steps, security features, and best practices.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#primaryimage\",\"url\":\"https:\/\/d1jxermyrliwoo.cloudfront.net\/wp-content\/uploads\/2025\/08\/19065316\/Copy-of-Port-Forwarding-2025-08-19T113944.336.png\",\"contentUrl\":\"https:\/\/d1jxermyrliwoo.cloudfront.net\/wp-content\/uploads\/2025\/08\/19065316\/Copy-of-Port-Forwarding-2025-08-19T113944.336.png\",\"width\":876,\"height\":493,\"caption\":\"Illustration showing secure integration with PureVPN APIs using shield, lock, and coding symbols.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.purevpn.com\/white-label\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API-First VPN Integration \u2013 Developer\u2019s Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.purevpn.com\/white-label\/#website\",\"url\":\"https:\/\/www.purevpn.com\/white-label\/\",\"name\":\"Purevpn White label\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.purevpn.com\/white-label\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.purevpn.com\/white-label\/#\/schema\/person\/d75943d96d9bdd3277bc60adaf00f44c\",\"name\":\"duresham\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.purevpn.com\/white-label\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/676e150b24efe0726f53fef31f98d1da?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/676e150b24efe0726f53fef31f98d1da?s=96&d=mm&r=g\",\"caption\":\"duresham\"},\"url\":\"https:\/\/www.purevpn.com\/white-label\/author\/duresham\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"API-First VPN Integration \u2013 Developer\u2019s Guide - PureVPN White label","description":"PureVPN APIs documentation explained for developers with clear integration steps, security features, and best practices.","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.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/","og_locale":"en_US","og_type":"article","og_title":"API-First VPN Integration \u2013 Developer\u2019s Guide - PureVPN White label","og_description":"PureVPN APIs documentation explained for developers with clear integration steps, security features, and best practices.","og_url":"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/","og_site_name":"PureVPN White label","article_published_time":"2026-02-12T05:45:08+00:00","article_modified_time":"2026-02-12T06:13:14+00:00","og_image":[{"width":876,"height":493,"url":"https:\/\/d1jxermyrliwoo.cloudfront.net\/wp-content\/uploads\/2025\/08\/19065316\/Copy-of-Port-Forwarding-2025-08-19T113944.336.png","type":"image\/png"}],"author":"duresham","twitter_card":"summary_large_image","twitter_misc":{"Written by":"duresham","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/","url":"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/","name":"API-First VPN Integration \u2013 Developer\u2019s Guide - PureVPN White label","isPartOf":{"@id":"https:\/\/www.purevpn.com\/white-label\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#primaryimage"},"image":{"@id":"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#primaryimage"},"thumbnailUrl":"https:\/\/d1jxermyrliwoo.cloudfront.net\/wp-content\/uploads\/2025\/08\/19065316\/Copy-of-Port-Forwarding-2025-08-19T113944.336.png","datePublished":"2026-02-12T05:45:08+00:00","dateModified":"2026-02-12T06:13:14+00:00","author":{"@id":"https:\/\/www.purevpn.com\/white-label\/#\/schema\/person\/d75943d96d9bdd3277bc60adaf00f44c"},"description":"PureVPN APIs documentation explained for developers with clear integration steps, security features, and best practices.","breadcrumb":{"@id":"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#primaryimage","url":"https:\/\/d1jxermyrliwoo.cloudfront.net\/wp-content\/uploads\/2025\/08\/19065316\/Copy-of-Port-Forwarding-2025-08-19T113944.336.png","contentUrl":"https:\/\/d1jxermyrliwoo.cloudfront.net\/wp-content\/uploads\/2025\/08\/19065316\/Copy-of-Port-Forwarding-2025-08-19T113944.336.png","width":876,"height":493,"caption":"Illustration showing secure integration with PureVPN APIs using shield, lock, and coding symbols."},{"@type":"BreadcrumbList","@id":"https:\/\/www.purevpn.com\/white-label\/purevpn-apis-documentation-explained-for-developers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.purevpn.com\/white-label\/"},{"@type":"ListItem","position":2,"name":"API-First VPN Integration \u2013 Developer\u2019s Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.purevpn.com\/white-label\/#website","url":"https:\/\/www.purevpn.com\/white-label\/","name":"Purevpn White label","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.purevpn.com\/white-label\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.purevpn.com\/white-label\/#\/schema\/person\/d75943d96d9bdd3277bc60adaf00f44c","name":"duresham","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.purevpn.com\/white-label\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/676e150b24efe0726f53fef31f98d1da?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/676e150b24efe0726f53fef31f98d1da?s=96&d=mm&r=g","caption":"duresham"},"url":"https:\/\/www.purevpn.com\/white-label\/author\/duresham\/"}]}},"_links":{"self":[{"href":"https:\/\/www.purevpn.com\/white-label\/wp-json\/wp\/v2\/posts\/3813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.purevpn.com\/white-label\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.purevpn.com\/white-label\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.purevpn.com\/white-label\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.purevpn.com\/white-label\/wp-json\/wp\/v2\/comments?post=3813"}],"version-history":[{"count":4,"href":"https:\/\/www.purevpn.com\/white-label\/wp-json\/wp\/v2\/posts\/3813\/revisions"}],"predecessor-version":[{"id":6081,"href":"https:\/\/www.purevpn.com\/white-label\/wp-json\/wp\/v2\/posts\/3813\/revisions\/6081"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.purevpn.com\/white-label\/wp-json\/wp\/v2\/media\/3814"}],"wp:attachment":[{"href":"https:\/\/www.purevpn.com\/white-label\/wp-json\/wp\/v2\/media?parent=3813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.purevpn.com\/white-label\/wp-json\/wp\/v2\/categories?post=3813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.purevpn.com\/white-label\/wp-json\/wp\/v2\/tags?post=3813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}