Skip to content

Get a brand's full stylesheet

GET
/brand/{id}/stylesheet.css
Code sample: Shell / cURL
curl --request GET \
--url http://localhost:9090/brand/1/stylesheet.css

Serve a brand’s full stylesheet: its colors, corners, font, background and custom CSS. This is a public endpoint that does not require authentication.

The auth server’s pages link it with the stylesheet’s fingerprint in v, as getPublicSettings’ brand.stylesheetUrl does. Asked for by that fingerprint, the answer may be kept a year; asked for by any other fingerprint, or none, it is the current stylesheet, kept five minutes.

id
required
integer format: int64

The brand’s ID

v
string

The stylesheet’s fingerprint.

The stylesheet

Media typetext/css
string
Cache-Control
string

“public, max-age=31536000, immutable” when v names the current stylesheet, “public, max-age=300” otherwise

No brand has this ID, or the ID is not a positive integer

The request failed inside the server. The body is an HTML error page, not the JSON error envelope.

Media typetext/html
string