Overview
The UI Config API returns initial configuration needed by a single-page application (SPA): theme, feature flags, pagination limits, and — when CSRF is required — a fresh CSRF token. This endpoint is called anonymously before login.
For the common response envelope and error model, see API Overview.
Fetching UI Configuration
Request
| HTTP Method | GET |
| Endpoint | /api/v2/ui/config |
Returns the initial configuration needed by the SPA.
Response
On success (HTTP 200, UiConfigResponse), the following response is returned in the common envelope format (excerpt).
Each element of response is as follows. All fields are required.
theme
theme is always present but becomes an empty object when no custom theme is associated with the request. Manifest-derived keys (display_name / version / supported_locales) are only present when the active theme includes a manifest.
features
All fields are required.
sort_options
Array of sort options for the search UI. Each element has value and label_key. click_count.* items are present only when search logging is enabled; favorite_count.* items are present only when user favorites are enabled.
num_options
Array of selectable page sizes (integers). Values exceeding page_size_max are excluded.
lang_options
Array of language filter options. Each element has value and label_key. The first element is the all sentinel, followed by one entry per supported language code.
label_options
Array of configured label options. Returns an empty array when no labels are defined. Each element has value and name.
notifications
HTML notification snippets displayed at the top of specific views. An empty string means no notification for that view.
facet_views
Array of configured facet query view groups. Returns an empty array when not defined. Each element has group_name and queries.
filetype_options
Array of file type facet options for the advanced search form. Each element has value and label_key.