# Replicate an API key to Production

Replicating an API key copies an existing Sandbox key's configuration into your Production account.
This lets you quickly recreate your testing setup in Production without configuring permissions and settings from scratch.

The API Console creates a new key in Production while leaving your original Sandbox key unchanged and fully active.

:::tip[Going the other way?]
You can also replicate a Production key's configuration to your Sandbox account.
See [Manage API key settings: Other key actions](/docs/guides/api-console/manage-key-permissions#other-key-actions).
:::

## How it works

When you replicate a Sandbox key, the API Console switches you to your Production account and opens the [key creation flow](/docs/guides/api-console/create-key).

All key settings such as permissions, IP allowlisting, and expiry dates are pre-populated using the Sandbox key's values.
You can accept the pre-filled settings or modify them before confirming key creation.

Signing keys are **not** copied — if your key requires signing, you must generate a new Ed25519 key pair for Production and upload the new public key during the key creation flow.
This is a security measure: reusing a Sandbox signing key in Production would compromise both environments if the key were leaked.

Once created, the new Production key operates **independently** with its own unique key value.

## Before you begin

Before you start, make sure you have:

- Access to the [API Console](https://developer.revolut.com/console).
- A Sandbox API key created in the [API Console](https://developer.revolut.com/console) that you want to replicate to Production.
- A verified [Production account](/docs/guides/api-console/get-started) linked to your Sandbox.
- The **Manage API** permission on your Revolut account.

## Replicate an API key to Production

### 1. Open the key details

In the [API Console](https://developer.revolut.com/console), navigate to :Key: **API keys** and click the API key you want to replicate.
The key details panel opens.

### 2. Start the replication process

1. In the key details view, click **Replicate to production**.

   A pop-up appears explaining that you will be redirected to your Production account with pre-filled settings.

2. Click **Continue**.

   You are redirected to your Production account, and the [key creation flow](/docs/guides/api-console/create-key) opens with all settings pre-populated from your Sandbox key.

### 3. Review settings and create the key

1. Step through the key creation flow to review the pre-populated configurations (such as permissions, IP allowlisting, and expiry date).
   If your key configuration requires signing, you'll need to generate a new Ed25519 key pair and upload the public key during this step.
   See [Generate signing keys](/docs/guides/api-console/create-key#3-generate-signing-keys-if-required) in the Create an API key guide.
   :::tip
   While pre-populated settings speed up deployment, **always review permissions carefully before confirming**.
   Ensure your Production key holds only the minimal scopes required for live operations.
   :::
2. Optionally, adjust any settings if your Production setup requires different configurations.
3. On the final step, click **Create API key**.

   :::note[SCA confirmation]
   You may be asked to complete a Strong Customer Authentication (SCA) challenge, also known as step-up authentication challenge, to confirm key creation.
   This may include a push notification, e-mail confirmation, and/or a selfie.
   :::

### 4. Update your production integration

The new Production key value is generated and displayed.

:::warning[API key visibility]
- If the key was created **without a signing key**, the API key value is displayed **only once** at creation time.
  Copy and store it securely — you won't be able to see it again.
- If the key was created **with a signing key**, the API key value can be viewed later in the API Console.
:::

Copy the key value and update your production environment:

- Point your production requests to the live Revolut API endpoints.
- Update your production environment variables or secrets manager with the new key value.
- If signing is enabled, use the private key corresponding to the **new** public key you uploaded during the replication flow — do not reuse your Sandbox private key.
- Verify that your original Sandbox key remains active and unaffected in your Sandbox environment.

## Best practices

| Practice | How | Why |
|---|---|---|
| Apply Principle of Least Privilege | Review pre-filled Sandbox permissions and remove any test-only scopes before finalizing the Production key. | Limits the key's access to only what's needed for live operations, reducing risk if the key is compromised. |
| Use IP allowlisting | Ensure IP allowlists are updated to reflect your live production servers rather than testing/local IPs. | Restricts where keys can be used: see [Manage API key settings](/docs/guides/api-console/manage-key-permissions). |
| Test thoroughly in Sandbox first | Complete all endpoint and payload integration tests before replicating your key configuration to Production. | Prevents production issues caused by untested configurations being promoted to the live environment. |
| Set expiry dates | Configure the key to automatically expire on a specific date, aligned with your organisation's security policy. | Ensures regular credential lifecycle management: see [Manage API key settings](/docs/guides/api-console/manage-key-permissions). |
| Audit key usage | Review the API Console periodically to archive or delete inactive keys across both Sandbox and Production environments. | Prevents stale or unused keys from accumulating. |

## What's next

- [Manage API key settings](/docs/guides/api-console/manage-key-permissions): Update key permissions, configure IP allowlisting, and manage signing keys.
- [Rotate an API key](/docs/guides/api-console/rotate-api-key): Safely replace existing production keys without downtime.