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

# Quickstart

> Create your first watermarked record in under a minute.

## 1. Get an API key

Sign in to the [SQR Dashboard](https://yys-sqr-render-bsbe.onrender.com/dashboard) and navigate to **API Keys** in the sidebar. Click **Create Key** and copy the token.

```bash theme={null}
export SQR_KEY="your-api-key-here"
```

## 2. Pick a template

Templates define the metadata fields for a record. List the available templates:

```bash theme={null}
curl https://yys-sqr-render-bsbe.onrender.com/api/templates
```

```json theme={null}
[
  {
    "id": "pharma",
    "name": "Pharmaceutical",
    "fields": [
      { "key": "product_name", "label": "Product Name", "type": "text", "required": true },
      { "key": "dosage", "label": "Dosage", "type": "text", "required": false }
    ]
  }
]
```

## 3. Create a record

Upload an image and metadata. SQR automatically encodes an invisible watermark and returns the watermarked image.

```bash theme={null}
curl -X POST https://yys-sqr-render-bsbe.onrender.com/api/records \
  -H "Authorization: Bearer $SQR_KEY" \
  -F template_id=pharma \
  -F 'metadata={"product_name":"Aspirin","dosage":"100mg"}' \
  -F image=@label.jpg
```

```json theme={null}
{
  "success": true,
  "watermark_id": "SQR-A1B2C",
  "card": { "..." },
  "watermarked_image": "base64..."
}
```

Save `watermark_id` — this is the unique identifier encoded into your image.

## 4. Retrieve the record

```bash theme={null}
curl https://yys-sqr-render-bsbe.onrender.com/api/records/SQR-A1B2C
```

The record is publicly readable — anyone who scans the watermark can look it up.

## Next steps

* [Authentication](/getting-started/authentication) — JWT vs API key auth
* [Watermarking guide](/guides/watermarking) — embed and scan workflow in detail
* [Mint an NFT](/guides/nft-minting) — anchor your record on-chain
* [CLI tool](/guides/cli) — manage records from the terminal
