Skip to main content

Overview

You can set the source IP addresses that can use each Public API key. If a request uses the API key from any other address, the request is refused.
  • The setting is per API key. Each API key can have a different list.
  • An API key with an empty list can be used from any IP address.
  • You can add IPv4 addresses and CIDR ranges. IPv6 isn’t supported.
  • This setting is separate from the organization’s IP restriction, which restricts browser access. IP restriction doesn’t apply to access with API keys.
To enter allowed IP addresses when you generate an API key, you need permission to create API keys. To edit the list of an existing API key, you need permission to update API keys. Login users with the Admin role have this permission. Roles that can only create API keys, such as the Operator role, can enter the list when generating a key. They don’t see Edit IP allowlist for existing keys.

Check the current lists

Open Settings > API Keys. The IP allowlist column shows the list of each API key. API key list. The IP allowlist column shows Any address and 2 addresses

Add addresses when you generate an API key

  1. Open Settings > API Keys and click Generate a new API key.
  2. In the “Generate a new API key” dialog, enter API Key Name, Expires in, and Access level.
  3. Under Allowed IP addresses, click Add IP address. Enter an IP address or CIDR range and an optional description (see Values you can enter). To add more entries, click Add IP address again. The Generate a new API key dialog. 203.0.113.0/24 and Tokyo office are entered under Allowed IP addresses
  4. Click Generate.
  5. Copy the API key and store it in a safe place.
To generate an API key that can be used from any IP address, leave Allowed IP addresses empty and click Generate. If your organization already has 20 API keys, you can’t enter allowed IP addresses until you delete an existing API key. Expired API keys count toward the 20 keys until you delete them.

Edit the list of an existing API key

  1. Open Settings > API Keys.
  2. Hover over the ︙ at the right end of the API key’s row and click Edit IP allowlist in the menu that appears. Edit IP allowlist and Delete shown at the right end of an API key row
  3. In the “Edit IP allowlist” dialog, add or change IP addresses or CIDR ranges and their optional descriptions. To remove a row, click the trash icon on the right of the row. This dialog has no “Allowed IP addresses” heading. The same fields as Allowed IP addresses in the generate dialog appear below the API key name. The Edit IP allowlist dialog with 203.0.113.0/24 and 198.51.100.7/32
  4. Click Save.
Saved changes apply to API requests right away. If you remove all rows and save, the API key can be used from any IP address.
Saving replaces the API key’s list with what is shown in the dialog. If another person changes the same API key’s list while you’re editing, the dialog shows “This key’s IP allowlist was changed elsewhere while you were editing. Saving will overwrite those changes.” If you save anyway, the other person’s changes are overwritten.

Values you can enter

  • An IP address without a prefix length is added as /32 (a single address).
  • You can’t add the same range twice. 198.51.100.7 and 198.51.100.7/32 are treated as the same range.
  • You can’t add a range that includes an address the service uses internally.
The Generate a new API key dialog. 203.0.113.0/4 is entered and "The prefix length must be between /8 and /32." is shown

Requests from addresses that aren’t allowed

If an API key has at least one entry, the request’s source IPv4 address must be in one of the ranges. Requests from other addresses are refused with HTTP status 403. Requests whose source address can’t be determined are refused too.
errorDetails.ip is the source address that Admina checked. It’s null when the address couldn’t be determined. Changes to the list and refused requests are recorded in the audit log.

Check the setting

  1. In API Keys, check that the IP allowlist column shows the number of entries you added.
  2. Call the API from an allowed address, for example GET /api/v1/organizations/<ORGANIZATION_ID>. Check that it returns HTTP status 200.
  3. Call the API with the same key from an address that isn’t on the list. Check that it returns HTTP status 403 (api_key_ip_restricted).

FAQ and troubleshooting

Troubleshooting

FAQ

Q. If I turn on IP restriction for the organization, is access with API keys restricted too? A. No. The organization’s IP restriction applies only to browser access. To restrict access with an API key, add allowed IP addresses to the API key as described on this page. Q. Do I need to regenerate the API key after changing its list? A. No. The API key stays the same, and the new list applies as soon as you save it. Q. If my current IP address isn’t on the list, will I be locked out of the web app? A. No. Per-key IP allowlists apply only to API requests that use the API key. They don’t affect signing in to the web app. Q. Are Admina Extension and Admina Tracker restricted too? A. No. Per-key IP allowlists apply only to API keys created in API Keys.
Last modified on December 4, 2026