Skip to content

Fetch a site's favicon

GET
/api/sites/{path}/favicon
curl --request GET \
--url https://example.com/api/sites/example/favicon \
--header 'Remote-User: <Remote-User>'

Streams the site’s cached favicon bytes with its detected MIME type and Cache-Control: public, max-age=3600. The favicon is detected from the published index.html at publish time (see the has_favicon field on the Site schema). Available to any authenticated user; hidden sites are visible only to admins. Returns 404 when the site has no favicon.

path
required
string

Full site path — group segments (0–2) plus the slug, e.g. claude/app or demo.

The favicon image bytes.

Media typeimage/*
string format: binary

Missing or invalid credentials.

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}

No such site, key, or connection.

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}