# Real Estate Instagram Story

> Automatable Instagram Story template for real estate listings — property photo, price, details, agent branding, and CTA badge.

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: `instagram-story`
- Category: real-estate
- Pages: 1
- Open in browser: https://bannx.com/templates/instagram-story

## 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/6a1a02e2f1dba1d8757da0f3?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 |
|------|------|---------|-------------|
| `agencyName` | string | `Prestige Realty` |  |
| `agentName` | string | `Sarah Mitchell` |  |
| `agentPhone` | string | `+1 (310) 555-0192` |  |
| `agentPhoto` | string | `https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=200&h=200&fit=crop` |  |
| `logoUrl` | string | — |  |
| `brandColor` | string | `#d4a853` |  |

## Pages

### Real Estate Story

- Page ID: `6a1a02e2f1dba1d8757da0f3`
- Size: 1080×1920
- Variables: `badge`, `propertyImage`, `price`, `address`, `cityState`, `beds`, `baths`, `sqft`, `garage`, `tagline`, `openHouseDate`, `ctaLabel`, `ctaUrl`

## Example: render "Real Estate Story"

POST (recommended):

```bash
curl -X POST "https://bannx.com/api/render" -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" --data "{\"templateId\":\"instagram-story\",\"draft\":false,\"format\":\"png\",\"output\":\"binary\",\"tweaks\":{\"agencyName\":\"Prestige Realty\",\"agentName\":\"Sarah Mitchell\",\"agentPhone\":\"+1 (310) 555-0192\"},\"pageId\":\"6a1a02e2f1dba1d8757da0f3\"}" -o render.png
```

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

```bash
curl -H "Authorization: Bearer YOUR_API_KEY" "https://bannx.com/api/render/6a1a02e2f1dba1d8757da0f3?format=png&output=binary&templateId=instagram-story&tweaks=%7B%22agencyName%22%3A%22Prestige+Realty%22%2C%22agentName%22%3A%22Sarah+Mitchell%22%2C%22agentPhone%22%3A%22%2B1+%28310%29+555-0192%22%7D" -o render.png
```
