# Company ID Card

> A modern minimalist company employee ID card template

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: `company-id-card`
- Category: career
- Pages: 2
- Open in browser: https://bannx.com/templates/company-id-card

## 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/6a1c2006e8cf1a3d1bd5339d?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

_No configurable variables._

## Pages

### Page 1

- Page ID: `6a1c2006e8cf1a3d1bd5339d`
- Size: 640×1008
- Variables: `companyName`, `companyLogo`, `employeeName`, `jobTitle`, `department`, `employeeId`, `email`, `phone`, `photo`, `accentColor`, `qrValue`, `brandStripe`

### Back Side

- Page ID: `page-back-id`
- Size: 640×1008

## Example: render "Page 1"

POST (recommended):

```bash
curl -X POST "https://bannx.com/api/render" -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" --data "{\"templateId\":\"company-id-card\",\"draft\":false,\"format\":\"png\",\"output\":\"binary\",\"tweaks\":{\"companyName\":\"CyberGo\",\"companyLogo\":\"https://images.unsplash.com/photo-1611532736597-de2d4265fba3?w=200&q=80\",\"employeeName\":\"John Coli\"},\"pageId\":\"6a1c2006e8cf1a3d1bd5339d\"}" -o render.png
```

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

```bash
curl -H "Authorization: Bearer YOUR_API_KEY" "https://bannx.com/api/render/6a1c2006e8cf1a3d1bd5339d?format=png&output=binary&templateId=company-id-card&tweaks=%7B%22companyName%22%3A%22CyberGo%22%2C%22companyLogo%22%3A%22https%3A%2F%2Fimages.unsplash.com%2Fphoto-1611532736597-de2d4265fba3%3Fw%3D200%26q%3D80%22%2C%22employeeName%22%3A%22John+Coli%22%7D" -o render.png
```
