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

# Authentication

> API keys, scopes, sandbox and live, and the IP allowlist.

> [!NOTE]
>
> The Artery API is in draft and may change before launch. Build against the sandbox, and check back here for changes.

## Sending your key

Send your API key in the `Authorization` header on every request:

```bash theme={null}
curl https://api.artery.money/api/v1/artery/b2b/whoami \
  -H "Authorization: Bearer art_test_ro_..."
```

Call `GET /whoami` first to check the key, its environment and its scopes.

## Sandbox and live

* **Sandbox keys** reach simulated money only. Sandbox read keys start `art_test_ro_` and write keys `art_test_rw_`. You get them when you [create a sandbox account](https://dashboard.artery.money/register).
* **Live keys** are issued when your account is approved. See [Go live](https://docs.artery.money/knowledge-base/go-live.md).

A key only works in its own environment.

## Scopes

Each key carries scopes. A read key covers every `:read` scope, and a write key covers every write scope **except withdrawals**.

| Scope | Lets the key |
| - | - |
| `pins:create` | Create PINs |
| `pins:read` | Fetch PINs |
| `balance:read` | Fetch your balance |
| `funding:read` | List deposit addresses and stablecoin deposits |
| `destinations:read` | List withdrawal wallets |
| `withdrawals:read` | List and fetch withdrawals |
| `withdrawals:write` | Create withdrawals. **Must be granted explicitly**, and the key must have an IP allowlist. |

## IP allowlist

A key with an IP allowlist only works from those addresses. A key with `withdrawals:write` must have one, or it's refused on every request. You manage allowlists in your dashboard, and every change asks for your second factor.

## Keys aren't sign-in credentials

A sign-in lock on your dashboard never affects your API keys, and signing out of a session never stops your integration. See [Manage API keys](https://docs.artery.money/knowledge-base/manage-api-keys.md).


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