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

# SDKs and examples

> Copy-paste examples until official SDKs ship.

There is **no official client SDK** yet. Below are minimal examples you can adapt.

## List campaigns

```bash theme={null}
curl -sS -H "x-api-key: $BOTDOG_API_KEY" \
  "$BOTDOG_BASE/v1/campaigns"
```

```javascript theme={null}
const r = await fetch(`${process.env.BOTDOG_BASE}/v1/campaigns`, {
  headers: { 'x-api-key': process.env.BOTDOG_API_KEY },
});
const data = await r.json();
```

```python theme={null}
import os, requests

r = requests.get(
    f"{os.environ['BOTDOG_BASE']}/v1/campaigns",
    headers={"x-api-key": os.environ["BOTDOG_API_KEY"]},
)
r.raise_for_status()
data = r.json()
```

## Create leads (batch)

```bash theme={null}
curl -sS -X POST "$BOTDOG_BASE/v1/campaigns/$CID/leads" \
  -H "x-api-key: $BOTDOG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"leads":[{"email":"a@example.com"}]}'
```

## Analytics summary

```bash theme={null}
curl -sS -H "x-api-key: $BOTDOG_API_KEY" \
  "$BOTDOG_BASE/v1/analytics/summary"
```

Official SDK links will be added here when published.
