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

# Manage API keys

> Create, rotate and revoke read and write keys, and manage the IP allowlist.

[Manage API keys](https://www.youtube-nocookie.com/embed/E8Ox2jYZCDY?rel=0)

API keys connect your systems to Artery. You manage them under **API keys** in your dashboard.

## Read keys and write keys

| Key | What it can do |
| - | - |
| **Read key** | Fetch balances, transactions and rates. |
| **Write key** | Everything a read key can, plus create PINs. |
| **Withdrawal key** | A key with the `withdrawals:write` scope, granted on purpose. It can send money out, so it must have an IP allowlist. |

Use the **Sandbox / Live** switch at the top of the page to manage each set of keys.

## Create a write key

**1. Start**

Click **New write key** and confirm with a fresh code from your second factor. Creating or revoking a key always asks for one.

**2. Copy and store it**

Your new key is shown **once**. Copy it and store it safely now. Artery can't show it again, and there's no way to recover it.

**3. Confirm**

Tick **I have stored this key somewhere safe**, then click **Done**.

A write key only works from the IP addresses on your **allowlist**, and withdrawals made with it can only reach wallets Artery has approved.

## Rotate a key

1. Create a new key.
2. Deploy it in your systems.
3. Watch its **Last used** time change.
4. Revoke the old key.

Artery flags write keys that have never made a request. An unused key is only a risk, so revoke it.

## Revoke a key

Click **Revoke** on the key and confirm. Revoking takes effect immediately and can't be undone.

## Change the IP allowlist

Click **Edit** on the IP allowlist and confirm with a code. The allowlist decides which machines can move money.

Every key and allowlist change is recorded in your [Logs](https://docs.artery.money/knowledge-base/settings-and-logs.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.