Fetch a site's favicon
GET
/api/sites/{path}/favicon
const url = 'https://example.com/api/sites/example/favicon';const options = {method: 'GET', headers: {'Remote-User': '<Remote-User>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”path
required
string
Full site path — group segments (0–2) plus the slug, e.g. claude/app or demo.
Responses
Section titled “ Responses ”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"}