To help keep your data and API usage secure, ClickPesa allows you to restrict access to your APIs by whitelisting specific IP addresses. This ensures only requests from trusted sources can interact with your account.
Whitelisting IPs is an added layer of security to protect your data and your business. We highly recommend enabling this feature when you’re using the APIs in production.
Add an IP Address: Enter the IP address you want to allow. Only requests from this address will be able to access your APIs.
Remove an IP Address: Deleting an IP from the list will immediately revoke its ability to access your APIs.
If no IP addresses are added, your API will accept requests from any IP address. - As soon as one or more IPs are added, requests from all other IPs will be automatically blocked.
Once IP Whitelisting is enabled, the API Explorer will no longer work for your account. To test API requests, you must either make calls directly from a whitelisted IP address or remove all IPs from the whitelist.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"ClickPesa Documentation","description":"ClickPesa API Documentation","colors":{"primary":"#e6c602","light":"#fbd906","dark":"#fbe550"},"logo":{"light":"https://mintcdn.com/clickpesa/qdSCR2hZ0bZ9aNG2/logo/light.png?fit=max\u0026auto=format\u0026n=qdSCR2hZ0bZ9aNG2\u0026q=85\u0026s=0c7d827509008d22f2ae1572a6c7821c","dark":"https://mintcdn.com/clickpesa/qdSCR2hZ0bZ9aNG2/logo/dark.png?fit=max\u0026auto=format\u0026n=qdSCR2hZ0bZ9aNG2\u0026q=85\u0026s=f738996085c1fb0884dcd49a587c19b5"},"favicon":"https://mintcdn.com/clickpesa/qdSCR2hZ0bZ9aNG2/favicon.png?fit=max\u0026auto=format\u0026n=qdSCR2hZ0bZ9aNG2\u0026q=85\u0026s=69ce6a97d09d672973f96138ffebc55b","background":{"color":{"light":"#ffffff","dark":"#181a1b"}},"navbar":{"links":[{"href":"mailto:aly@clickpesa.com","label":"Support"}],"primary":{"type":"button","label":"Register","href":"https://merchant.clickpesa.com/account-registration"}},"footer":{"socials":{"x":"https://x.com/clickpesa","linkedin":"https://www.linkedin.com/company/clickpesa"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"clickpesa","hasAudioNarration":false,"actualSubdomain":"clickpesa","customDomains":["docs.clickpesa.com"],"gitSource":{"type":"github","owner":"clickpesa","repo":"developers.docs","deployBranch":"release-v1.0.0","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af4202c911eab1428da364b","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"API Explorer","count":38},{"language":"default","tag":"How It Works","count":38},{"language":"default","tag":"Merchant Dashboard","count":27},{"language":"default","tag":"Getting Started","count":14},{"language":"default","tag":"Settings","count":8},{"language":"default","tag":"BILLPAY","count":7},{"language":"default","tag":"BillPay","count":7},{"language":"default","tag":"BANK PAYOUTS","count":5},{"language":"default","tag":"LIPA NAMBA PAYOUTS","count":5},{"language":"default","tag":"Hosted Checkout","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".payment-methods-card .card img{width:6em;margin:auto;padding-top:1em}#sidebar{width:auto}#footer>div>div{display:none}"}],"page":{"pagePath":"home/whitelisted-ip-address","slug":"/home/whitelisted-ip-address","pageMetadata":{"title":"Whitelist IP","description":"Whitelisting IP Address for secure API calls","icon":"ban","href":"/home/whitelisted-ip-address"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Whitelisting IP Address for secure API calls\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Tip,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`To help keep your data and API usage secure, ClickPesa allows you to restrict access to your APIs by whitelisting specific IP addresses. This ensures only requests from trusted sources can interact with your account.`}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Whitelisting IPs is an added layer of security to protect your data and your business. We highly recommend enabling this feature when you’re using the APIs in production.`})}),`\n`,_jsx(Heading,{level:`2`,id:`accessing-whitelisting-ip-settings`,children:`Accessing Whitelisting IP Settings`}),`\n`,_jsx(_components.p,{children:`To access your whitelisted IPs:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Log in to your `,_jsx(_components.a,{href:`https://merchant.clickpesa.com`,children:`ClickPesa Dashboard`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Navigate to `,_jsx(_components.strong,{children:`Settings`}),` → `,_jsx(_components.strong,{children:`Developers`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Scroll to the `,_jsx(_components.strong,{children:`Whitelisted IP`}),` section.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`managing-ip-addresses`,children:`Managing IP Addresses`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Add an IP Address`}),`: Enter the IP address you want to allow. Only requests from this address will be able to access your APIs.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Remove an IP Address`}),`: Deleting an IP from the list will immediately revoke its ability to access your APIs.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`If `,_jsx(_components.strong,{children:`no`}),` IP addresses are added, your API will accept requests from `,_jsx(_components.strong,{children:`any`}),` IP address. - As soon as `,_jsx(_components.strong,{children:`one or more IPs`}),` are added, requests from `,_jsx(_components.strong,{children:`all other IPs`}),` will be automatically `,_jsx(_components.strong,{children:`blocked`}),`.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Once IP Whitelisting is enabled, the `,_jsx(_components.strong,{children:`API Explorer will no longer work for your account`}),`. To test API requests, you must either make calls directly from a whitelisted IP address or remove all IPs from the whitelist.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Whitelist IP","description":"Whitelisting IP Address for secure API calls","icon":"ban","href":"/home/whitelisted-ip-address"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Accessing Whitelisting IP Settings","slug":"accessing-whitelisting-ip-settings","depth":2,"children":[]},{"title":"Managing IP Addresses","slug":"managing-ip-addresses","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"clickpesa","siteName":"ClickPesa Documentation","title":"Whitelist IP - ClickPesa Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-08-11T19:40:00.225Z","originalFileLocation":"home/whitelisted-ip-address.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Whitelisting IP Address for secure API calls\">\u003cmeta data-mint-head name=\"application-name\" content=\"ClickPesa Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/clickpesa/PSQHr0_JRNaAV5W5/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/clickpesa/PSQHr0_JRNaAV5W5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/clickpesa/PSQHr0_JRNaAV5W5/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/clickpesa/PSQHr0_JRNaAV5W5/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/clickpesa/PSQHr0_JRNaAV5W5/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/clickpesa/PSQHr0_JRNaAV5W5/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/clickpesa/PSQHr0_JRNaAV5W5/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/clickpesa/PSQHr0_JRNaAV5W5/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/clickpesa/PSQHr0_JRNaAV5W5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Whitelist IP - ClickPesa Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Whitelisting IP Address for secure API calls\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ClickPesa Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.clickpesa.com/home/whitelisted-ip-address\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://clickpesa.mintlify.site/_mintlify/api/og/v2?division=Integration+Configurations\u0026amp;title=Whitelist+IP\u0026amp;description=Whitelisting+IP+Address+for+secure+API+calls\u0026amp;theme=23bfaf57b6f15b5e659cc1e8\u0026amp;signature=64416a5fcb84bcbeac564198438a7e7603b570e625102ebf75635231e217c282\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Whitelist IP - ClickPesa Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Whitelisting IP Address for secure API calls\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://clickpesa.mintlify.site/_mintlify/api/og/v2?division=Integration+Configurations\u0026amp;title=Whitelist+IP\u0026amp;description=Whitelisting+IP+Address+for+secure+API+calls\u0026amp;theme=23bfaf57b6f15b5e659cc1e8\u0026amp;signature=64416a5fcb84bcbeac564198438a7e7603b570e625102ebf75635231e217c282\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/clickpesa/PSQHr0_JRNaAV5W5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ClickPesa Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#e6c602\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.clickpesa.com/home/whitelisted-ip-address\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/home/whitelisted-ip-address.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.clickpesa.com/#organization\",\"name\":\"ClickPesa Documentation\",\"url\":\"https://docs.clickpesa.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/clickpesa/qdSCR2hZ0bZ9aNG2/logo/light.png?fit=max\u0026auto=format\u0026n=qdSCR2hZ0bZ9aNG2\u0026q=85\u0026s=0c7d827509008d22f2ae1572a6c7821c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.clickpesa.com#website\",\"name\":\"ClickPesa Documentation\",\"url\":\"https://docs.clickpesa.com\",\"publisher\":{\"@id\":\"https://docs.clickpesa.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.clickpesa.com/home/whitelisted-ip-address#webpage\",\"url\":\"https://docs.clickpesa.com/home/whitelisted-ip-address\",\"name\":\"Whitelist IP\",\"description\":\"Whitelisting IP Address for secure API calls\",\"dateModified\":\"2025-08-11T19:40:00.225Z\",\"isPartOf\":{\"@id\":\"https://docs.clickpesa.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.clickpesa.com/home/whitelisted-ip-address#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.clickpesa.com/home/whitelisted-ip-address#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Integration Configurations\",\"item\":\"https://docs.clickpesa.com/home/webhooks\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Whitelist IP\",\"item\":\"https://docs.clickpesa.com/home/whitelisted-ip-address\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.clickpesa.com/home/whitelisted-ip-address#article\",\"headline\":\"Whitelist IP\",\"name\":\"Whitelist IP\",\"description\":\"Whitelisting IP Address for secure API calls\",\"url\":\"https://docs.clickpesa.com/home/whitelisted-ip-address\",\"mainEntityOfPage\":{\"@id\":\"https://docs.clickpesa.com/home/whitelisted-ip-address#webpage\"},\"dateModified\":\"2025-08-11T19:40:00.225Z\",\"publisher\":{\"@id\":\"https://docs.clickpesa.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.clickpesa.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ClickPesa Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ClickPesa Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/home/whitelisted-ip-address.md","siteName":"ClickPesa Documentation","nav":{"global":null,"tabs":[{"tab":"Getting Started","pages":[{"title":"Quickstart","icon":"rocket","href":"/home/introduction"},{"title":"Get Started With ClickPesa","icon":"circle-play","href":"/home/onboarding"},{"title":"Changelog","icon":"timer","href":"/home/changelog"},{"group":"Account Access","pages":[{"title":"Login and Password Reset","href":"/home/login-password-reset"},{"title":"Instant Web Access","href":"/home/instant-web-access"}]},{"group":"Integration Guides","pages":[{"title":"Overview","icon":"compass","href":"/home/integration-overview"},{"title":"Payment Statuses","icon":"circle-info","href":"/home/payment-status"},{"title":"Payout Statuses","icon":"circle-info","href":"/home/payout-status"},{"title":"Sandbox and Testing Environment","icon":"flask","href":"/home/sandbox-and-testing-environment"}]},{"group":"Integration Configurations","pages":[{"title":"Webhooks","description":"Understand ClickPesa Webhooks (Callbacks) and how to integrate them in your application","icon":"webhook","href":"/home/webhooks"},{"title":"Whitelist IP","icon":"ban","href":"/home/whitelisted-ip-address"},{"title":"Checksum","description":"Generate checksum for secure transactions via API","icon":"lock","href":"/home/checksum"}]},{"group":"Integration Setup","icon":"gear","pages":[{"title":"API Integration Setup","icon":"brackets-curly","href":"/application/api-application-setup"},{"title":"Hosted Integration Setup","icon":"up-right-from-square","href":"/application/hosted-application-setup"},{"title":"Embedded Integration Setup","icon":"diamonds-4","href":"/application/embedded-application-setup"}]}]},{"tab":"Merchant Dashboard","pages":[{"title":"Merchant Dashboard","href":"/dashboard/dashboard-overview"}]},{"tab":"Hosted Checkout","pages":[{"title":"Hosted Checkout","href":"/checkout/checkout-overview"}]},{"tab":"Mobile USSD-PUSH API","pages":[{"title":"Mobile USSD-PUSH API","href":"/payment-api/mobile-money-payment-api/mobile-money-payment-api-overview"}]},{"tab":"Card API","pages":[{"title":"Card API","href":"/payment-api/card-payment-api/card-payment-api-overview"}]},{"tab":"BillPay","pages":[{"title":"BillPay","href":"/bill-pay/bill-pay-overview"}]},{"tab":"TanQR/Lipa Namba","pages":[{"title":"TanQR/Lipa Namba","href":"/tan-qr/tan-qr-overview"}]},{"tab":"CRDB Direct Debit","pages":[{"title":"CRDB Direct Debit","href":"/crdb-direct-debit/crdb-direct-debit-overview"}]},{"tab":"Mobile Payouts API","pages":[{"title":"Mobile Payouts API","href":"/payout-api/mobile-money-payout-api/mobile-money-payout-api-overview"}]},{"tab":"Bank Payout API","pages":[{"title":"Bank Payout API","href":"/payout-api/bank-payout-api/bank-payout-api-overview"}]},{"tab":"Lipa Namba Payout API","pages":[{"title":"Lipa Namba Payout API","href":"/payout-api/lipa-namba-payout-api/lipa-namba-payout-api-overview"}]},{"tab":"ClickPesa Payout Widgets","hidden":true,"pages":[{"title":"ClickPesa Payout Widgets","href":"/payout-widgets/payout-widgets-overview"}]},{"tab":"Plugins and SDK","pages":[{"title":"Plugins and SDK","href":"/sdk-plugins/plugins-and-extensions"}]},{"tab":"API Explorer","pages":[{"title":"API Explorer","href":"/api-reference/authorization/generate-token"}]}]},"basePath":"","title":"Whitelist IP - ClickPesa Documentation","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":[],"chunks":[]}