# Manage API key settings

The API Console lets you manage your API keys after creation – update key permissions, add signing keys, and configure IP allowlisting.
This guide covers the management tasks you can perform on an existing API key.

## How it works

API keys in the [API Console](https://developer.revolut.com/console) are mutable.
You can change their permissions, security settings, and signing key configuration at any time without creating a new key.
Changes take effect immediately.

:::note[Required permission]
To manage API keys, you need the **Manage API** permission on your Revolut account.
Contact your account administrator if you don't have this permission.
:::

## Before you begin

Before you start, make sure you have:

- An API key created in the [API Console](https://developer.revolut.com/console).
  If you don't have one yet, see [Create an API key](/docs/guides/api-console/create-key).
- The **Manage API** permission on your account.

## Update product permissions

You can change which products and resources an API key can access, and at what permission level, without recreating the key.

1. In the [API Console](https://developer.revolut.com/console), navigate to :Key: **API keys** and click the API key you want to modify.
2. In the **Permissions** section, click **Edit** and update the permission level for each product or resource:

    - **Read:** Retrieve data (e.g., list accounts, counterparties).
    - **Write:** Create or modify data (e.g., make transfers, update team members' roles). Includes **Read** permissions.
    - **None:** No access to this resource.

3. You can set permissions for:
    - All products at once: using the controls in the top right corner
    - An entire product: e.g. **Team**
    - Each resource individually: e.g. **Roles**
4. Click **Save** to apply the changes.

    :::note[SCA confirmation]
    Saving permission changes triggers a Strong Customer Authentication (SCA) challenge.
    This may include a push notification, e-mail confirmation, and/or a selfie. Confirm your identity when prompted.
    :::

:::tip[Principle of least privilege]
Only grant the permissions your integration needs.
Review permissions regularly and remove access that's no longer required.
:::

## Add a signing key

Signing keys add an extra layer of security – requests must include a valid Ed25519 signature in addition to the API key.

:::warning[Signing keys cannot be removed]
Once a signing key is added to an API key, it is permanently attached and cannot be removed.
Make sure your integration is ready to sign requests before adding a signing key.
:::

If your API key doesn't already have a signing key, you can add one:

1. In the [API Console](https://developer.revolut.com/console), navigate to :Key: **API keys** and click the API key you want to modify.
2. Click **Add** next to **Public signing key**.
3. Upload your `public.pem` file (or paste its contents).

:::note[Generating a key pair]
If you need to generate an Ed25519 key pair, see [Generate signing keys](/docs/guides/api-console/create-key#3-generate-signing-keys-if-required) in the Create an API key guide.
:::

Once a signing key is added, all requests using that API key must include the `Revolut-Api-Timestamp` and `Revolut-Api-Signature` headers.
Update your integration to sign requests before adding a signing key to a key that's already in use.

## Configure an IP allowlist

An IP allowlist restricts API requests to specific IP addresses or CIDR ranges.
This prevents unauthorised use of your API key from other locations.

:::note
IP allowlisting is optional for most products, but required for certain products that access sensitive information, such as **Card sensitive details**.
Even when not required, configuring an IP allowlist is a security best practice.
:::

1. In the [API Console](https://developer.revolut.com/console), navigate to :Key: **API keys** and click the API key you want to modify.
2. In the **IP allowlist** section, click **Add**, then enter the IP addresses or CIDR ranges that should be allowed:

    | Entry type | Format | Example |
    |---|---|---|
    | Single IP | IPv4 or IPv6 address | `203.0.113.50` |
    | CIDR range | Network prefix/length | `198.51.100.0/24` |

3. Click **Save** to apply the changes.

:::warning[Don't use local IP addresses]
Make sure that the IPs you provide are **not** [local (i.e. private) IP addresses](https://www.okta.com/en-sg/identity-101/understanding-private-ip-ranges/).
Local addresses (such as `192.168.x.x` or `10.x.x.x`) are not reachable over the internet and will cause your API requests to be rejected.
:::

## Other key actions

In addition to editing permissions and security settings, the :Ellipsis: menu in the key details panel provides the following actions:

| Action | Description |
|---|---|
| :ArrowRepeat: **Rotate** | Generate a new key value with an optional overlap period. See [Rotate an API key](/docs/guides/api-console/rotate-api-key). |
| :Pencil: **Rename** | Change the display name of the API key. |
| :Copy: **Duplicate** | Create a copy of the API key with the same permissions and settings. |
| :Lab: **Replicate to sandbox** | Copy a Production key's configuration to your Sandbox account for testing. |
| :Cross: **Revoke** | Immediately invalidate the API key. The key stops working right away. This cannot be undone. |

See also how to [replicate an API key to Production](/docs/guides/api-console/replicate-key-to-production).

## Expiry date

The expiry date can't be changed or added after the key is created.
To run a key with a different expiry, use :ArrowRepeat: **Rotate** and set a new expiry date for the new key.

## What's next

- [Rotate an API key](/docs/guides/api-console/rotate-api-key): Replace an API key without downtime.
- [Replicate an API key to Production](/docs/guides/api-console/replicate-key-to-production).
- [Set up Postman](/docs/guides/api-console/set-up-postman): Automate request signing with a pre-request script.
- [Create an API key](/docs/guides/api-console/create-key): Create a new API key from scratch.