IP whitelisting lets you restrict which IP addresses can make API calls using your credentials. When you add an IP to the whitelist, Dubu Pay rejects any request that arrives from an address not on the list, even if it carries a valid API key. This significantly reduces the risk of credential misuse if your keys are ever exposed.Documentation Index
Fetch the complete documentation index at: https://docs.dubupay.com/llms.txt
Use this file to discover all available pages before exploring further.
Add an IP address
CallPOST /ip-whitelist with the IP address you want to allow. You can optionally include a label to help you identify the entry later (for example, "production-server" or "office-nat").
Both IPv4 and IPv6 addresses are accepted.
List whitelisted IPs
Retrieve all IP addresses currently on your whitelist withGET /ip-whitelist.
Remove a single IP
To remove one entry, pass itsid to DELETE /ip-whitelist/:id. The id is the UUID returned when you added the entry.
Clear all whitelisted IPs
To remove every entry at once, callDELETE /ip-whitelist without an ID. This disables IP restrictions entirely — requests from any IP will be accepted again until you add new entries.
Best practices
- Whitelist multiple IPs for redundancy. If your primary server goes down and you fail over to another, that server’s IP must already be on the whitelist or your API calls will fail.
- Label every entry. A clear label like
"eu-west-prod"or"ci-runner"makes it easy to identify and remove specific entries later without guessing. - Audit the list regularly. Remove IPs that belong to decommissioned servers or infrastructure you no longer use to keep your attack surface small.
- Test from a whitelisted IP before going live. Add your IP and verify a simple API call succeeds before routing production traffic through the whitelist.