IP restrictions
IP restrictions are optional. By default, a key can be used from any IP address. Adding the first address turns on restrictions: only requests from listed addresses are accepted. Removing all addresses turns restrictions off again.
Choose your addresses
Use the public outbound IP addresses of the servers that send your API requests. If requests pass through a NAT gateway or proxy, use its public outbound address rather than the server's private address. Include every address your integration can use, including any failover servers.
Each entry must be a single IPv4 or IPv6 address, such as 203.0.113.10 or 2001:db8::1. These are example addresses; replace them with your own. CIDR ranges, wildcards, and hostnames are not supported. IPv6 addresses may be displayed in their normalized form.
Add or remove addresses
An organization administrator can manage restrictions in Settings → API keys. If a key is shared across organizations, you must be an administrator in every organization where the key has access.
- Find an active key and select IP restrictions.
- Enter an address and select Add IP. Repeat for each allowed address.
- To remove an address, select Remove beside it.
Each successful addition or removal takes effect immediately. The list applies to the key across every organization it can access.
When changing your integration's outbound IP, add the new address before switching traffic, then remove the old address after the switch. Check that requests succeed from each allowed address.
Troubleshoot a rejected request
A request from an unlisted address returns 401 Unauthorized. The response does not distinguish an IP restriction from another authentication failure.
Check the public outbound IP of the system making the request and compare it with the key's allowed addresses. If your integration uses both IPv4 and IPv6, check which address it used for the failed request. Also confirm that you sent the complete API key and that it is active and unexpired, as described in Authentication.
Correct the address list or the source of the request before retrying. For further help, include the request details described in Errors.