Skip to content

Render a status page badge SVG

GET
/public/status-pages/{slug}/badge.svg
curl --request GET \
--url https://api.perstat.io/public/status-pages/example/badge.svg

Returns an embeddable shields-style SVG badge showing the page’s overall status or, with metric=uptime, the aggregated uptime percentage. Responses are client-cacheable for five minutes and served with permissive cross-origin embedding headers. Protected pages require a valid viewer token or unlock cookie and otherwise answer 404 to hide their existence; the viewer token travels as a query parameter because image tags cannot send headers.

slug
required
string
metric
string

Status (Default) oder uptime

token
string

Viewer-Token für private Seiten

Media typeimage/svg+xml