How does IP whitelisting work for API access?

IP whitelisting is one of the main protections on your API account. Even if someone obtained your API key, they could not use it unless their request came from an IP address on your list. This article explains how whitelisting works, how to manage your list and what to do when your server IP changes.

What is an IP whitelist?

An IP address is the numeric address your server uses on the internet, for example 203.0.113.25. Your whitelist is a list of the addresses allowed to call our API with your keys. Requests from any other address are refused with a 403 error, even if the key is correct.

Whitelisting also opens our network firewall

Our API sits behind a network firewall that blocks unknown traffic. When you add an IP to your whitelist in the client area, it is automatically allowed through the network firewall as well. You do not need to raise a separate request or wait for our team to open a port. Likewise, when you remove an IP from your whitelist, it is removed from the firewall's allowed list.

The change usually applies within a short time. If calls from a newly added IP are still blocked after a few minutes, open a ticket and we will check the firewall status for you.

How to add an IP

  1. Sign in to your client area and open the API section.
  2. Go to IP Whitelist.
  3. Click Add IP and enter the public IPv4 address of your server.
  4. Add a label, such as "Production web server" or "Staging", so you remember what each address is for.
  5. Save. You may be asked to confirm with a one-time code for security.

Finding your server's public IP

The IP you need is the address your server uses for outgoing connections, which is not always the same as the address your domain points to. Ways to find it:

  • Check your hosting control panel or VPS dashboard, which usually shows the server's IP.
  • Ask your hosting provider for the outgoing IP of your account.
  • On a VPS, run a command on the server that requests your public IP from an IP-echo service and prints it.

On shared hosting, many websites may share the same outgoing IP. For financial APIs, a VPS or dedicated IP gives you better control. Our partner DomainsRock offers VPS plans with dedicated IPs.

Test and live whitelists

Depending on your account settings, test and live keys may have separate whitelists. Add your staging or development IP to the test list and your production IP to the live list. Avoid adding office or home connections to the live list, because these addresses change and are shared with other devices.

When your IP changes

If you move to a new server, change hosting or your provider changes your IP, API calls will start failing with 403 errors. To avoid downtime:

  1. Add the new IP to the whitelist before you switch traffic to the new server.
  2. Test a balance check from the new server.
  3. Switch over.
  4. Remove the old IP once it is no longer used.

Good practices

  • Keep the list short. Every address on it is a place your key could be used from.
  • Review the list every few months and remove addresses you do not recognise.
  • Do not whitelist IP ranges unless our team has agreed it for a specific setup.
  • Use labels so anyone reviewing the list understands each entry.
The examples in this article are simplified to show the flow. Field names, endpoint paths and response formats can differ by service, so always follow the current reference in our API documentation.

Need help?

If a request is blocked even though the IP is on your list, open a ticket with the IP, the time of the request and the error code. Read more in our API documentation.

Was this article helpful?

Still stuck? Open a support ticket and our team will help.


Related articles

← Back

Chat with us
Hi! Send us a message and we will reply here as soon as we can.
Security check image
Chat with us