IP whitelisting lets you restrict your IteraPay API key so it can only be used from a specific IP address or network range. When a whitelist is active, any API request originating from an IP that doesn’t match your configured value is rejected — even if the request includes a valid API key. This significantly reduces the risk of unauthorized access if your key is ever leaked.Documentation Index
Fetch the complete documentation index at: https://docs.iterapay.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
IP whitelisting is optional but strongly recommended for server-side integrations where your API key is used from a fixed IP, such as a dedicated backend server or a NAT gateway.
Setting up your IP whitelist
You can configure your whitelist with a single IPv4 address or a CIDR range (e.g.,203.0.113.0/24). Only one value can be active at a time — submitting a new value overwrites the previous one.
Find your server's outbound IP address
Identify the IP address that your server uses for outbound requests. If you’re using a cloud provider, this may be an Elastic IP, a NAT gateway IP, or a specific egress IP. You can also specify a CIDR range to cover multiple addresses in the same subnet.
Viewing your current whitelist
To check which IP address or range is currently configured, send aGET request:
get-ip-whitelist.sh
response
ipAddress value.
Updating your whitelist
To change the whitelisted IP — for example, when migrating to a new server — send anotherPOST request with the new value. The new IP immediately replaces the old one:
update-ip-whitelist.sh
Removing the IP restriction
If you need to remove the IP whitelist entirely — for example, to allow requests from dynamic IPs or during local development — send aDELETE request:
remove-ip-whitelist.sh
204 No Content. Your API key will then accept requests from any IP address until you configure a new whitelist.
Removing the IP whitelist does not invalidate your API key. Your key remains active and can be used from any IP until you either add a new whitelist or revoke the key.
Request and response reference
POST /ipAddress/{merchantID}
Your unique merchant identifier.
Bearer JWT token. Format:
Bearer <token>.The IP address or CIDR range to whitelist. Examples:
203.0.113.42, 203.0.113.0/24.204 No Content on success.
GET /ipAddress/{merchantID}
Your unique merchant identifier.
Bearer JWT token. Format:
Bearer <token>.The currently configured IP address or CIDR range.
DELETE /ipAddress/{merchantID}
Your unique merchant identifier.
Bearer JWT token. Format:
Bearer <token>.204 No Content on success.