GET
/api/og/article| Parameter | Type | Default | Description |
|---|---|---|---|
title | string | — | Headline (max 3 lines) |
excerpt | string | — | 1-2 sentence teaser (max 2 lines) |
authorName | string | — | Author name |
authorPhoto | string | — | |
publicationName | string | — | Newsletter / publication brand name |
publicationLogo | string | — | |
readingTime | string | — | e.g. "8 min read" |
publishDate | string | — | ISO 8601 date e.g. 2026-04-28 |
dateLocale | string | — | BCP 47 locale for date formatting e.g. fr-FR (defaults to en-US) |
accentColor | string | — | Left edge accent bar + publication name color |
theme | string | — | Color theme: 'dark' | 'light' | 'auto' |
target | string | — | Platform preset — sets output dimensions |
fontFamily | string | — | Typography preset |
bgTone | string | — | Background tone preset |
bgCustomColor | string | — | Custom background base color |
bgGradientFrom | string | — | Gradient start color override (for gradient base) |
bgGradientTo | string | — | Gradient end color override (for gradient base) |
bgStyle | string | — | Composable background tokens e.g. gradient+grid+noise |
logo | string | — | |
logoWidth | string | — | Logo width in px |
logoHeight | string | — | Logo height in px (auto if omitted) |
Example URL
https://placard.mfaouzi.com/api/og/article?title=The+Future+of+Web+Dev&excerpt=A+deep+dive+into+modern+tooling&authorName=Jane+Doe&publicationName=Tech+Weekly&theme=dark&fontFamily=inter&bgStyle=gradient%2Bvignette