Static PNG embeds

Render a Flax chart or dashboard to a static PNG via GET /api/embed/image for surfaces that block iframes

Some surfaces — locked-down intranets, email, wikis that strip iframes — won't render a live embed. For those, Flax renders a chart or dashboard to a static PNG image. This page is for developers embedding where iframes are unavailable.

#Endpoint

GET /api/embed/image?t=<token>

t is the per-resource embed token. The response is a PNG of the same session-less /embed view an iframe would show, so you can use it anywhere an image URL is accepted.

#How it renders

Flax renders the token-authenticated embed page with headless Chromium and returns the resulting image. Because the render navigates to the token's own embed URL, the data is fetched as the token's service principal and stays scoped under row-level security.

Rendered images are served from a bounded cache, so repeated requests for the same resource are fast and don't re-render every time.

Note

A PNG is a snapshot, not an interactive view. For live filtering and drill-down, use an iframe embed instead.