---
title: "Per-content OG image"
method: GET
path: "/preview/{ns}/{id}.jpg"
tags: ["preview"]
---

# Per-content OG image

`GET /preview/{ns}/{id}.jpg`

## Request

- Base URL: `https://brewpage.app`
- URL: `https://brewpage.app/preview/{ns}/{id}.jpg`
- Auth: none required

Canonical og:image URL. Returns the 1200×630 JPEG card, cached, with ETag/If-None-Match support; non-public namespaces and protected content add X-Robots-Tag: noindex; falls back to /og-image.png?v=3 on any failure

## Path parameters

- `ns` string, required
- `id` string, required

## Headers

- `If-None-Match` string

## Response `200`

Image bytes

## Other responses

- `302`: Fallback to static og-image.png (flag off, no source, render gate busy, error)
- `304`: Not modified (If-None-Match matched current ETag)
- `429`: Per-IP rate limit exceeded

## Changes

- **2026-10-14** `10a3b8f82fff`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/brewpage/apis/brewpage-api/changes/preview/:ns/:id.jpg/get.md)

---

[API](https://skmtc.dev/brewpage/apis/brewpage-api.md) - [All operations](https://skmtc.dev/brewpage/apis/brewpage-api/llms.txt) - [OpenAPI document](https://skmtc.dev/brewpage/apis/brewpage-api/revisions/78d2720a18a9?raw)
