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

# Quickstart

> Create a key and make your first request in two minutes.

## 1. Create an API key

In Cluster, open **Settings → API keys** and choose **New API key**. Only workspace owners and admins can do this.

The key is shown once. Copy it and store it as a secret: it acts for the whole workspace.

## 2. Make a request

The workspace needs an active subscription or trial; without one every request returns `402 subscription_required`. This read needs no campaign data. It lists the metrics and dimensions you can query.

```bash cURL theme={null}
curl https://api.getcluster.ai/v1/analytics/schema \
  -H "Authorization: Bearer $CLUSTER_API_KEY"
```

```typescript TypeScript theme={null}
const response = await fetch("https://api.getcluster.ai/v1/analytics/schema", {
  headers: { Authorization: `Bearer ${process.env.CLUSTER_API_KEY}` },
});
console.log(await response.json());
```

```python Python theme={null}
import os, httpx

response = httpx.get(
    "https://api.getcluster.ai/v1/analytics/schema",
    headers={"Authorization": f"Bearer {os.environ['CLUSTER_API_KEY']}"},
)
print(response.json())
```

## 3. List your campaigns

```bash theme={null}
curl "https://api.getcluster.ai/v1/campaigns?limit=10" \
  -H "Authorization: Bearer $CLUSTER_API_KEY"
```

```json theme={null}
{
  "data": [{ "id": "…", "name": "Founders", "status": "running" }],
  "next_cursor": null
}
```

Next: [push leads into a campaign](https://docs.getcluster.ai/guides/push-leads.md).


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