Read the instance settings
const url = 'http://localhost:8080/api/v1/admin/settings';const options = {method: 'GET', headers: {cookie: 'cetra_session=<cetra_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/v1/admin/settings \ --cookie cetra_session=<cetra_session>Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The effective settings. No secret is included.
Effective instance settings. Read-only: they come from config.
GET /api/v1/admin/settings. No SMTP URL and no client secret.
object
From mailbox. Omitted when SMTP is not configured.
New accounts must verify their email before signing in.
Whether enforce_sso_domains is applied: it needs a licence listing sso_enforcement.
Domains that must use SSO. Empty means SSO is not required.
Password login is enabled.
Configured OAuth and OIDC providers. No client secrets.
One OAuth or OIDC provider the UI can start a login with.
Spec 08 § OAuth / OIDC. id matches identities.provider.
object
Name shown on the login button.
Provider id: github, google, or oidc:<name>.
Origin used in links.
Who may create an account.
Email domains allowed to sign up. Empty means no domain restriction.
SMTP is configured.
Proxy CIDRs whose X-Forwarded-For is trusted.
Example
{ "signup": "open"}No credentials, or the credentials are invalid.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The credentials do not allow this operation, or the organization’s plan does not include it (code plan_required).
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}Too many requests.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}