Skip to content

Get public settings

GET
/api/public/settings
Code sample: Shell / cURL
curl --request GET \
--url http://localhost:9090/api/public/settings

The settings the admin console reads before anyone holds a token: the app name, whether SMTP is configured, the issuer, the brand the admin console is drawn in, the password rules, and whether users can delete their own account. This is a public endpoint that does not require authentication.

Public settings

Media typeapplication/json
object
appName
required
string
smtpEnabled
required

When true, SMTP is configured, so the auth server can send email.

boolean
issuer
required

The issuer the auth server writes into the iss claim of every token it signs.

string
accountDeletionEnabled
required

When true, users can delete their own account from their account pages in the admin console. The same setting as accountDeletionEnabled in the general settings.

boolean
brand

The brand the admin console is drawn in: the brand of the admin console’s own client, or the default brand when that client has none of its own. Absent from the public settings when the auth server cannot read it.

object
appearance
required

Light or dark, or auto to follow each visitor’s device.

string
Allowed values: auto light dark
stylesheetUrl
required

The absolute URL of the brand’s full stylesheet, its colors, corners and font, which an end-user page links after main.css. The URL changes whenever the stylesheet does.

string format: uri
colorsStylesheetUrl
required

The absolute URL of the brand’s stylesheet that sets its colors alone, which an admin page links after main.css. The URL changes whenever the stylesheet does.

string format: uri
safeStylesheetUrl
required

The absolute URL of the brand’s full stylesheet in safe mode: without its custom CSS, in the built-in Blueberry colors in place of a custom palette, and in System UI in place of an uploaded font. The URL changes whenever the stylesheet does.

string format: uri
safeColorsStylesheetUrl
required

The absolute URL of the brand’s colors-only stylesheet in safe mode, the built-in Blueberry colors in place of a custom palette. The URL changes whenever the stylesheet does.

string format: uri
safeMode
required

Whether GOIABADA_AUTHSERVER_BRAND_SAFE_MODE draws every page in safe mode. While it does, stylesheetUrl and colorsStylesheetUrl are the safe stylesheets’ URLs.

boolean
logoUrl

The absolute URL of the brand’s logo, absent when it has none. The URL changes whenever the image does.

string format: uri
darkLogoUrl

The absolute URL of the logo drawn in dark mode in place of logoUrl, absent when the brand has no dark logo or no logo.

string format: uri
faviconUrl

The absolute URL of the brand’s favicon, a square PNG, absent when it has none. A page links it as its icon and its Apple touch icon, in place of the built-in icons.

string format: uri
hideAppName
required

Whether the app name’s text gives way to the logo, which then carries the name as its alternative text. Always false while the brand has no logo.

boolean
hasBackground
required

Whether the brand has a background image, whatever its fit.

boolean
footerLinks
required

The links the brand’s pages draw under the card, in order, each with every label it has, so a page picks the label of its own language and takes the fallback label in a language the link has none for. [] when the brand has none.

Array<object>
<= 3 items

One of a brand’s footer links. Sent back as it came, it is the same link.

object
url
required
string
label
required

The label drawn in a language the link has no label of its own for.

string
labels
required

The label of each built-in language that has its own, by language tag. {} when none has.

object
key
additional properties
string
supportEmail
required

The support email address the brand’s pages show, or an empty string.

string
supportUrl
required

The support page the brand’s pages link to, or an empty string.

string
supportPhone
required

The support phone number the brand’s pages show, in international format: + and the digits, with no separators, such as +442079460958. An empty string when unset.

string
passwordRules
required

What the general settings’ password policy asks of a new password.

object
minLength
required

The minimum length, in characters.

integer
requiresLowercase
required
boolean
requiresUppercase
required
boolean
requiresNumber
required
boolean
requiresSymbol
required
boolean
refusesCommon
required

When true, a commonly used password is refused.

boolean
refusesAccountWords
required

When true, a password too close to the account’s email address, username or the app name is refused.

boolean

Example

{
"brand": {
"appearance": "auto"
}
}

The request failed inside the server, most often a storage error. error_code is INTERNAL_SERVER_ERROR: no detail about the failure, only the request id an operator can find the log line by, and retrying is reasonable. Key rotation’s 500 also answers KEY_SET_INCOMPLETE, which names its cause and no retry clears.

Media typeapplication/json

Admin/account API error envelope. Routing by HTTP status code: 4xx is a client-correctable failure (validation, not found, permission denied, rate limited); 5xx is a server-side problem. The body provides a stable error_code and an error_description for people to read. Protocol endpoints (/auth/token, /auth/authorize, /connect/register, /userinfo) use their RFC-defined error envelopes instead of this one.

object
error_code

Stable identifier for the failure. UPPER_SNAKE for legacy codes (e.g. VALIDATION_ERROR), dotted lowercase for codes named after the sentence’s catalog key (e.g. validator.email.required). Never translated, whatever the request’s language.

string
error_description
required

A sentence for people to read: in the request’s language, from the ui_locales query parameter or else the Accept-Language header, when the server has the sentence in that language, and in English otherwise. Route on error_code, not on this text.

string
error_field

A JSON Pointer (RFC 6901) to the member of the request body the refusal is about, such as /footerLinks/1/url, /footerLinks/0/labels/pt-BR or /palette/light/brand. Left out when the refusal names no member. It’s set by the refusals of a brand’s footer links, palette and custom CSS, and of an email template’s text and brandId.

string

Example generated

{
"error_code": "example",
"error_description": "example",
"error_field": "example"
}