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

# Quickstart

> Generate an API key, choose its scopes, and authenticate your first Range API request.

## 1. Generate an API key from your account

**1. Log in**

Log in at [app.range.org](https://app.range.org/login). If you do not have an account, [contact us](https://www.range.org/contact) to request access.

**2. Open your API settings**

Go to **Settings > API** ([app.range.org/keys](https://app.range.org/keys)).

**3. Generate your API key**

Choose the API scopes you need, generate your key, and copy it.

> [!NOTE]
>
> Copy your API key when you generate it. Range shows it only once. You can revoke and rotate keys from your API settings.

### API key scopes

| Scope | Access |
| - | - |
| Data API | Blockchain data: addresses, transactions, transfers, tokens, and network analytics. |
| Risk API | Risk scoring, sanctions checks, and screening. |
| Platform API | Workspace data: accounts, balances, groups, alerts, counterparties, and transfer notes. |

For MCP, enable the Data API scope to connect. Enable all three scopes to use tools across all three APIs. Scopes do not grant write access.

### Key types and workspace access

| Key type | Format | Workspace member | MCP access |
| - | - | - | - |
| Managed workspace key | `<workspaceId>.<key>` | None | Read tools, including workspace tools; no member identity or mutating tools. |
| Workspace-user key | `<workspaceId>.<jwt>` | One member with a workspace role | Read tools; mutating tools require **EDITOR** or higher. |
| Legacy/global key | No workspace prefix | None | Tools that do not require a workspace. |

Keys generated at [Settings > API](https://app.range.org/keys) are managed workspace keys. They carry no member or role and cannot call `get_current_member` or the four MCP mutating tools: `add_accounts`, `create_counterparty`, `add_counterparty_addresses`, and `create_alert_rule`.

A workspace-user key is the credential used by a signed-in Range app session. The API keys page does not issue this type of key. Workspace-scoped tools cover accounts, balances, alerts, counterparties, transfer enrichment, and v2 screening; a legacy key cannot call them. See the [Tools Reference](https://docs.range.org/ai/tools-reference.md) for each tool's requirements.

## 2. Authenticate

The documented authentication method for Data, Risk, Platform, and MCP requests is an API key in the `Authorization` header:

```text theme={null}
Authorization: Bearer YOUR_API_KEY
```

REST requests use the base URL `https://api.range.org`. The server also accepts `X-API-KEY` as a legacy header; use Bearer for new integrations and the examples in these docs.

> [!WARNING]
>
> Keep your API key server-side. Store it in an environment variable, never in client-side code or a public repository. Rotate it if it is exposed.

Set `RANGE_API_KEY` in your shell session, replacing `YOUR_API_KEY` with your key:

```bash theme={null}
export RANGE_API_KEY="YOUR_API_KEY"
```

## 3. Make your first call

Choose a quickstart for a request and the response fields to check:

> [card] [Data API](https://docs.range.org/data-api/quickstart.md)
>
> Look up a blockchain address.

> [card] [Risk API](https://docs.range.org/risk-api/quickstart.md)
>
> Screen an address for risk.

> [card] [Platform API](https://docs.range.org/platform-api/api-reference-introduction.md)
>
> List your workspace's counterparties.

> [card] [Range AI](https://docs.range.org/ai/quickstart.md)
>
> Discover tools over MCP.

For failed requests, throttling, credit usage, and plan access, see [Errors and rate limits](https://docs.range.org/resources/errors-and-rate-limits.md).


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