---
title: "Configure an IP Allow List for API Keys"
slug: "configure-ip-allow-list-api-keys"
description: "Learn to configure an IP Allow list for your API Keys in Pigment, enhancing security by restricting access to specific IP addresses."
updated: 2025-05-30T10:12:03Z
published: 2025-08-22T11:56:47Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://kb.pigment.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure an IP Allow List for API Keys

![](https://cdn.document360.io/e47cfe35-dc28-40c7-a083-6cf003073d8e/Images/Documentation/00c2fe33-0e56-43c2-ac9c-cffb27a71fd6.png)

This article explains how to configure an IP Allow list for your API Keys in Pigment. Restricting API key usage to specific IP addresses helps reduce the risk of key leaks.

## Access the API Keys page

> [!WARNING]
> **⚠️ Important**
> 
> You must be a **Workspace Admin**to access the **API Keys** page in **Workspace Settings**.

You can [manage API keys and IP Allow lists](/v1/docs/manage-api-keys) from the **API Keys** page in **Workspace Settings**. To do this:

1. In your Workspace, select **Settings.**
2. Select **API Keys** in the sidebar to create or manage API keys.
3. Select the **IP Allow list** tab to create or manage allow lists.

## Create an IP Allow list

To create a new IP Allow list:

1. Select **+ New IP Allow list.**
2. In the **Create a new IP Allow list** panel, fill in the required fields:

- **List name.** A descriptive name for the allow list.
- **Description.** A brief explanation of the purpose or scope of the allow list.
- **IP addresses or range.** The IP addresses or CIDR range that should be allowed.

> [!WARNING]
> ⚠️**Important**
> 
> Only IPv4 addresses are supported. Example: `198.51.100.73`.
> 
> For ranges, use [CIDR notation](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). Example: `198.51.100.0/24`, this format covers `198.51.100.0` through `198.51.100.255`.

1. Select**Save**.

## Link an API key to an IP Allow list

Once you’ve created your IP Allow list, you must specify which API key it applies to.

To do this:

1. Select an allow list from the **IP Allow lists** page to reveal linked API keys.
2. Select **+ Link API key** and choose the API keys from the dropdown menu to link to the allow list.

> [!NOTE]
> **ℹ️ Note**
> 
> When multiple allow lists are linked to the same API key, any IP address or range appearing in any of those lists will be permitted.

## Configure a default IP Allow list

To ensure consistent IP restrictions across API keys, you can set a default IP Allow list.

To do this:

1. Select **Manage default Allow list**.
2. Toggle **Set a default Allow list** to **On**.
3. Select the Allow list to set as the default from the dropdown menu.
4. Select **Save**.

The default IP Allow list is automatically applied to all API keys unless a specific allow list is assigned.

<style> p[data-block-id] {font-size:1rem;} ul li p[data-block-id] {margin-bottom: 0;} ul[data-type="taskList"] li div p[data-block-id] {margin-bottom: 0;} ol li p[data-block-id] {margin-bottom: 0;} table tbody th p[data-block-id] { margin-bottom: 0;} blockquote p[data-block-id] {margin-bottom: 0 !important;} &nbsp;p[data-block-id]:empty::after {content: "\00A0";} </style>
