Skip to Content
KingsPay Docs
API Keys

IP Restrictions

Restrict API key usage to specific IP addresses for an extra layer of security.

IP restrictions let you lock an API key so it can only be used from trusted IP addresses. When enabled, any request made from an IP that is not on the allowlist will be rejected, even if the key itself is valid.

Enabling IP Restrictions

  1. Go to Integrations → API Keys in the Dashboard.
  2. Open the menu on the key you want to restrict.
  3. Click Manage IP Restrictions.
  4. Toggle Enable IP Restrictions on.
  5. Add the IPv4 or IPv6 addresses you want to allow.
  6. Save your changes.

Once enabled, only requests originating from addresses on the allowlist will be accepted. All other IPs will receive a 403 Forbidden response.

When IP restrictions are disabled, the API key can be used from any IP address.

Adding IP Addresses

You can add individual IPv4 or IPv6 addresses. Add one address per entry. Typically these are the static IP addresses of your servers or environments that call the KingsPay API.

Make sure you add all IPs that need access before enabling restrictions. Enabling restrictions without adding your server's IP will cause all requests to be rejected immediately.

Disabling IP Restrictions

To remove IP restrictions from a key, go back to Manage IP Restrictions and toggle Enable IP Restrictions off. All IPs will be allowed again.

On this page