# Quickstart

Create a key, send your first scan and read the record Warraq makes from it.

## Create a key

In the dashboard, open Settings, then API keys, and choose New key. Copy it now: it is shown once. Keep it in an environment variable named `WARRAQ_KEY`.

## Install the client

```shell
pnpm add @warraq/client
```

```shell
npm install @warraq/client
```

```shell
pip install warraq
```

## Make your first request

List the manuscripts in your collection. A new collection comes with one sample, so the list is never empty.

```shell
curl https://api.warraq.dev/v1/manuscripts?limit=1 \
  -H "Authorization: Bearer wq_live_3f9a7c21"
```

```js
const res = await fetch('https://api.warraq.dev/v1/manuscripts?limit=1', {
  headers: { Authorization: `Bearer ${process.env.WARRAQ_KEY}` }
});
const body = await res.json();
```

```python
import os, requests

res = requests.get(
    "https://api.warraq.dev/v1/manuscripts?limit=1",
    headers={"Authorization": f"Bearer {os.environ['WARRAQ_KEY']}"},
)
body = res.json()
```

### Read the result

The response holds a `data` list and a `next` cursor. Pass `next` back as `after` to read the following page.
