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.
Add addresses when you generate an API key
- Open Settings > API Keys and click Generate a new API key.
- In the “Generate a new API key” dialog, enter API Key Name, Expires in, and Access level.
-
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.

- Click Generate.
- 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
- Open Settings > API Keys.
-
Hover over the ︙ at the right end of the API key’s row and click Edit IP allowlist in the menu that appears.

-
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.

- Click Save.
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.7and198.51.100.7/32are treated as the same range. - You can’t add a range that includes an address the service uses internally.

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 status403.
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
- In API Keys, check that the IP allowlist column shows the number of entries you added.
- Call the API from an allowed address, for example
GET /api/v1/organizations/<ORGANIZATION_ID>. Check that it returns HTTP status200. - 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).

