Note: this endpoint does not require any authentication at all, and you can use it to check:
If this is a Zulip server, and if so, what version of Zulip it's running.
What a Zulip client (e.g. a mobile app or
zulip-terminal) needs to
know in order to display a login prompt for the server (e.g. what
authentication methods are available).
Usage examples
Python
curl
#!/usr/bin/env python3importpero# Pass the path to your perorc file here.client=pero.Client(config_file="~/.perorc")# Fetch the settings for this server.result=client.get_server_settings()print(result)
The -u line implements HTTP Basic authentication.
See the Authorization header documentation for how
to get those credentials for users and bots.
curl -sSX GET -G https://z.u1v.ru/api/v1/server_settings \
-u EMAIL_ADDRESS:API_KEY
Parameters
This endpoint does not accept any parameters.
Response
Return values
authentication_methods: object
Each key-value pair in the object indicates whether the authentication
method is enabled on this server.
Changes: Deprecated in Zulip 2.1.0, in favor of the more expressive
external_authentication_methods.
password: boolean
Whether the user can authenticate using password.
dev: boolean
Whether the user can authenticate using development API key.
email: boolean
Whether the user can authenticate using email.
ldap: boolean
Whether the user can authenticate using LDAP.
remoteuser: boolean
Whether the user can authenticate using REMOTE_USER.
github: boolean
Whether the user can authenticate using their GitHub account.
azuread: boolean
Whether the user can authenticate using their Microsoft Entra ID account.
gitlab: boolean
Whether the user can authenticate using their GitLab account.
Changes: New in Zulip 3.0 (feature level 1).
apple: boolean
Whether the user can authenticate using their Apple account.
google: boolean
Whether the user can authenticate using their Google account.
saml: boolean
Whether the user can authenticate using SAML.
openid connect: boolean
Whether the user can authenticate using OpenID Connect.
discord: boolean
Whether the user can authenticate using their Discord account.
Changes: New in Zulip 12.0 (feature level 488).
external_authentication_methods: (object)[]
A list of dictionaries describing the available external
authentication methods (E.g. Google, GitHub, or SAML)
enabled for this organization.
The list is sorted in the order in which these
authentication methods should be displayed.
Changes: New in Zulip 2.1.0.
name: string
A unique, table, machine-readable name for the authentication method,
intended to be used by clients with special behavior for specific
authentication methods to correctly identify the method.
display_name: string
Display name of the authentication method, to be used in all buttons
for the authentication method.
display_icon: string | null
URL for an image to be displayed as an icon in all buttons for
the external authentication method. This URL should be resolved
relative to the server's base URL.
When null, no icon should be displayed.
login_url: string
URL to be used to initiate authentication using this method.
signup_url: string
URL to be used to initiate account registration using this method.
zulip_feature_level: integer
An integer indicating what features are
available on the server. The feature level increases monotonically;
a value of N means the server supports all API features introduced
before feature level N. This is designed to provide a simple way
for client apps to decide whether the server supports a given
feature or API change. See the changelog for
details on what each feature level means.
Changes: New in Zulip 3.0 (feature level 1). We recommend using an
implied value of 0 for Zulip servers that do not send this field.
zulip_version: string
The server's version number. This is often a release version number,
like 2.1.7. But for a server running a version from Git,
it will be a Git reference to the commit, like 5.0-dev-1650-gc3fd37755f.
zulip_merge_base: string
The git merge-base between zulip_version and official branches
in the public
upstream server and web app repository,
in the same format as zulip_version. This will equal
zulip_version if the server is not running a fork of the upstream server.
This will be "" if unavailable.
Changes: New in Zulip 5.0 (feature level 88).
push_notifications_enabled: boolean
Whether mobile/push notifications are configured.
web_push_vapid_public_key: string | null
The VAPID public key that web clients should use when creating
browser Push API subscriptions.
This will be null when browser Web Push is not configured.
Changes: New in Zulip 11.5.
channel_workspace_config_version: integer
Workspace configuration schema version.
Version 1 supports rename, reorder, set_default and detach
with expected_revision and UUID request_id. This does not
advertise a document service or resource attachment support.
channel_avatar_api_version: integer
Channel photo read, upload, delete and live-update extension version.
channel_discussion_config_version: integer
Supported schema version for the channel discussion configuration
extension. When absent, clients must retain their legacy channel
preferences. Version 1 separates shared defaults and personal
overrides, with independent revisions and explicit null resets.
is_incompatible: boolean
Whether the Zulip client that has sent a request to this endpoint is
deemed incompatible with the server.
email_auth_enabled: boolean
Setting for allowing users authenticate with an email-password
combination.
require_email_format_usernames: boolean
Whether all valid usernames for authentication to this
organization will be email addresses. This is important
for clients to know whether to do client side validation
of email address format in a login prompt.
This value will be false if the server has LDAP
authentication enabled with a username and
password combination.
realm_uri: string
The organization's canonical URL. Alias of realm_url.
Changes: Deprecated in Zulip 9.0 (feature level 257). The term
"URI" is deprecated in web standards.
realm_url: string
The organization's canonical URL.
Changes: New in Zulip 9.0 (feature level 257), replacing the
deprecated realm_uri.
realm_name: string
The organization's name (for display purposes).
server_product_urls: object
Public installation links for help, support, privacy, license,
home, terms, and apps. Organization overrides take precedence.
Older servers may omit this extension.
Public URL for the named installation resource.
server_help_center_urls: object
Installation help URLs keyed by supported language code.
Help URL for the language code used as the key.
branding: object
Public organization branding for this server's organization.
Empty accent/link overrides inherit the application defaults.
This extension does not change the localized application name.
name: string
Organization display name; independent of the localized product name.
icon_url: string
Public URL of the organization icon.
logo_url: string
Public URL of the organization logo for the light theme.
night_logo_url: string
Public URL of the organization logo for the dark theme.
accent_color: string
Organization accent color; empty inherits the application palette.
help_url: string
Organization help URL; empty inherits the installation help URL.
support_url: string
Organization support URL; empty inherits the installation support URL.
support_email: string
Organization support email; empty inherits the installation address.
terms_url: string
Organization terms URL; empty inherits the installation terms URL.
realm_icon: string
The URL for the organization's logo formatted as a square image,
used for identifying the organization in small locations in the
mobile and desktop apps.
realm_description: string
HTML description of the organization, as configured by the organization
profile.
realm_web_public_access_enabled: boolean
Whether the organization has enabled the creation of
web-public channels and
at least one web-public channel on the server currently
exists. Clients that support viewing content
in web-public channels without an account can
use this to determine whether to offer that
feature on the login page for an organization.
Changes: New in Zulip 5.0 (feature level 116).
Please note that not all of these attributes are guaranteed to appear in a
response, for two reasons:
This endpoint has evolved over time, so responses from older Zulip servers
might be missing some keys (in which case a client should assume the
appropriate default).
If a /server_settings request is made to the root domain of a
multi-subdomain server, the settings
that are realm-specific are not known and thus not provided.
Example response(s)
Changes: As of Zulip 7.0 (feature level 167), if any
parameters sent in the request are not supported by this
endpoint, a successful JSON response will include an
ignored_parameters_unsupported array.
A typical successful JSON response may look like:
{"authentication_methods":{"azuread":false,"dev":true,"email":true,"github":true,"google":true,"ldap":false,"password":true,"remoteuser":false,"saml":true},"email_auth_enabled":true,"external_authentication_methods":[{"display_icon":null,"display_name":"SAML","login_url":"/accounts/login/social/saml/idp_name","name":"saml:idp_name","signup_url":"/accounts/register/social/saml/idp_name"},{"display_icon":"/static/images/authentication_backends/googl_e-icon.png","display_name":"Google","login_url":"/accounts/login/social/google","name":"google","signup_url":"/accounts/register/social/google"},{"display_icon":"/static/images/authentication_backends/github-icon.png","display_name":"GitHub","login_url":"/accounts/login/social/github","name":"github","signup_url":"/accounts/register/social/github"}],"is_incompatible":false,"msg":"","push_notifications_enabled":false,"realm_description":"<p>The Zulip development environment default organization. It's great for testing!</p>","realm_icon":"https://secure.gravatar.com/avatar/62429d594b6ffc712f54aee976a18b44?d=identicon","realm_name":"Zulip Dev","realm_uri":"http://localhost:9991","realm_url":"http://localhost:9991","realm_web_public_access_enabled":false,"require_email_format_usernames":true,"result":"success","web_push_vapid_public_key":null,"zulip_merge_base":"5.0-dev-1646-gea6b21cd8c","zulip_version":"5.0-dev-1650-gc3fd37755f"}