Use Case • Website

Render Website Content

Use Confera as a CMS and render the public website inside your own front-end.

Goal

You want to keep content in Confera but show it on a custom website.

Fetch site JSON

SDK
ts
const site = await confera.website.getSite();
curl
bash
curl "https://your-domain/api/public/v1/website/site" \
  -H "X-API-Key: cat_..."

Render pages

The site JSON typically includes pages, sections, and theme data. Render it in your UI framework of choice.

Approach
ts
// 1) Fetch site JSON on your server
// 2) Map section types to components
// 3) Render sections in order
// 4) Cache for a short time (e.g. 60 seconds)

Security

  • Keep the API key on the server.
  • Use website:read only.
  • Rotate keys if you share them with vendors.