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.cssServe 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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer format: int64
The brand’s ID
Query Parameters
Section titled “Query Parameters”v
string
The stylesheet’s fingerprint.
Responses
Section titled “Responses”The stylesheet
Media typetext/css
string
Headers
Section titled “Headers”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