# Quickstart

Create an API key, make your first authenticated request and list your proxy services in under two minutes.

- Canonical: https://fineproxy.org/developers/docs/quickstart/

This guide takes you from zero to a working API call. You need a FineProxy account; no SDK is required — any HTTP client works.

## 1. Create an API key

1. Sign in to the dashboard and open [Settings → API keys](https://fineproxy.org/account_new/settings#api-keys).
2. Create a key and select the [scopes](/developers/docs/authentication/#scopes) it needs. For this guide, read-only scopes are enough: `customer:read`, `wallet:read`, `services:read`, `catalog:read`.
3. Copy the key. It starts with `fb_` and is shown **only once**.

> Treat the key like a password. Anyone who has it can act on your account within the key's scopes. Never commit it to Git or paste it into client-side code.

## 2. Store the key in an environment variable

```bash
export FINEPROXY_API_KEY="fb_your_api_key"
```

All examples in this documentation read the key from `FINEPROXY_API_KEY`.

## 3. Make your first request

Read your wallet balance. Every request carries the key in the `Authorization` header as a bearer token.

```bash
curl https://fineproxy.org/account_new/api/v1/customer/wallet/balance \
  -H "Authorization: Bearer $FINEPROXY_API_KEY"
```

```javascript
const response = await fetch('https://fineproxy.org/account_new/api/v1/customer/wallet/balance', {
  headers: { Authorization: `Bearer ${process.env.FINEPROXY_API_KEY}` },
});
if (!response.ok) throw new Error(`FineProxy API error ${response.status}: ${await response.text()}`);
console.log(await response.json());
```

```python
import os
import requests

response = requests.get(
    "https://fineproxy.org/account_new/api/v1/customer/wallet/balance",
    headers={"Authorization": f"Bearer {os.environ['FINEPROXY_API_KEY']}"},
    timeout=30,
)
response.raise_for_status()
print(response.json())
```

A successful call returns `200 OK`:

```json
{
  "wallet_id": "9bc0fbe5-1a60-42f8-ac04-254e44b13e93",
  "owner_type": "customer",
  "balance_cents": 2800,
  "currency": "USD",
  "has_wallet": true
}
```

All money values are **integer cents**: `2800` means $28.00. See [Conventions](/developers/docs/conventions/).

If the key is missing or wrong you get `401` with a JSON `detail` message — see [Errors](/developers/docs/errors/).

## 4. List your proxy services

```bash
curl https://fineproxy.org/account_new/api/v1/customer/services \
  -H "Authorization: Bearer $FINEPROXY_API_KEY"
```

The response contains a `services` array. Each service has an `id` (UUID) that you pass to every service-level endpoint, plus `status`, `product_kind` (for example `proxy_datacenter` or `proxy_rotating`), `display_name` and `expires_at`.

To get the proxies of a service — IP addresses, ports and credentials — continue with [Connect to datacenter proxies](/developers/docs/proxies/datacenter/).

## Next steps

- [Buy proxies with the API](/developers/docs/guides/buy-proxies/) — quote and order a package safely.
- [Authentication](/developers/docs/authentication/) — scopes and key management.
- [Rate limits](/developers/docs/rate-limits/) — how fast you can call the API.
- [MCP quickstart](/developers/docs/mcp/quickstart/) — let an AI agent do the same through natural language.
