# Just Listed Flyer

> Just Listed real estate flyer for Instagram Story

This is a [Bannx](https://bannx.com) template. Render any of its **pages** to an image (PNG, SVG, WebP) or PDF through the Bannx Render API, and customize the output by passing **tweaks** (variable overrides).

## Template

- Template ID: `real-estate-just-listed`
- Category: real-estate
- Pages: 1
- Open in browser: https://bannx.com/templates/real-estate-just-listed

## How to use

1. Pick a **page** below and note its **page ID**.
2. Call the Render API with that page ID. Override text, colors, and other values via the `tweaks` map (keys are the variable names listed below).
3. Authenticate with an API key (create one under **Settings → Space → Developers**) using the `Authorization: Bearer <token>` header. GET requests for this template require a token (or the space GET render secret `gt`).

Full docs: https://bannx.com/docs/rendering · https://bannx.com/docs/variables

## Quick demo (no API key)

AI agents and curious humans can render this **public** template with tweaks without an account. Mint a short-lived **demo token** (IP-throttled, ~1h TTL, max 5 per hour per IP) and pass it as `?demo=...` (or `Authorization: Bearer <token>`):

```bash
# 1. Mint a demo token (no auth required)
curl -s -X POST https://bannx.com/api/demo-token
# → { "token": "demo_…", "expiresAt": …, "quota": { … } }

# 2. Render with the token (public templates only)
curl -L "https://bannx.com/api/render/2DhHLHRBy3KG1FdeMrMOn?format=png&output=binary&demo=demo_…" --output demo.png
```

Demo tokens only work on public templates and don't consume any space's credits. For production usage, create an API key under **Settings → Space → Developers** instead.

## Variables

| Name | Type | Default | Description |
|------|------|---------|-------------|
| `property_title` | string | `Luxury Family Home` |  |
| `tagline` | string | `Find your perfect house` |  |
| `price` | string | `$1,250,000` |  |
| `address_street` | string | `123 False Street` |  |
| `address_city_state` | string | `City, Country 281347` |  |
| `beds` | string | `4` |  |
| `baths` | string | `3` |  |
| `sqft` | string | `2,850` |  |
| `agent_name` | string | `Jane Doe` |  |
| `agent_phone` | string | `(555) 123-4567` |  |
| `agent_email` | string | `info@realestate.com` |  |
| `brokerage` | string | `Royal Realty Group` |  |

## Pages

### Just Listed

- Page ID: `2DhHLHRBy3KG1FdeMrMOn`
- Size: 1080×1920

## Example: render "Just Listed"

POST (recommended):

```bash
curl -X POST "https://bannx.com/api/render" -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" --data "{\"templateId\":\"real-estate-just-listed\",\"draft\":false,\"format\":\"png\",\"output\":\"binary\",\"tweaks\":{\"property_title\":\"Luxury Family Home\",\"tagline\":\"Find your perfect house\",\"price\":\"$1,250,000\"},\"pageId\":\"2DhHLHRBy3KG1FdeMrMOn\"}" -o render.png
```

GET (embed in an `<img>` / quick link):

```bash
curl -H "Authorization: Bearer YOUR_API_KEY" "https://bannx.com/api/render/2DhHLHRBy3KG1FdeMrMOn?format=png&output=binary&templateId=real-estate-just-listed&tweaks=%7B%22property_title%22%3A%22Luxury+Family+Home%22%2C%22tagline%22%3A%22Find+your+perfect+house%22%2C%22price%22%3A%22%241%2C250%2C000%22%7D" -o render.png
```
