Pages, sidebar and share links API reference
Section titled “Pages, sidebar and share links API reference”This page is for integrators and developers who read or write pages through the API, build their own navigation from the sidebar API, resolve anonymous share links, or add widgets to the platform. It documents the stored model, validation, the endpoints and the enums.
A page — known internally as a Generic View — is a composable, entity-agnostic screen: widgets placed into groups on a 12-column grid, pulling data from many entities at once, unlike a Data View which presents a single entity.
The document covers three layers:
- Components (widgets) — the catalog of reusable UI building blocks, and how the backend definition (
Component) maps to a frontend renderer via acomponentName. - Pages (
GenericView) — how a page is assembled from components and groups, its layout/visibility/display options, page types, and the CRUD + end-user rendering endpoints. - Navigation & system links — the sidebar link tree (
LinkType= Module / View / Page / Report), the/v2/side-barAPI, delegation and restricted-access filtering, and the anonymous system-link token flow.
Terminology note: in the backend, a “page” is the
GenericViewentity. The route prefix is/v1/generic-viewsand the sidebar/link layer refers to it asLinkType.Page. This document uses “page” andGenericViewinterchangeably.
Components (widgets)
Section titled “Components (widgets)”The component catalog: Component
Section titled “The component catalog: Component”Component (models/component.model.ts) is the definition of a reusable UI element — a field control or a page widget. It is a versioned, named catalog entry, not an instance placed on a page.
| Field | Type | Required | Meaning |
|---|---|---|---|
specificationVersion | number (default 1) | yes | Schema version of this definition (ISpecificationVersion). |
name | LocalizedValue | yes | Human-readable, localized display name. |
type | number | yes | Component type. Values come from ComponentTypeEnum: 0 = ViewComponent, 1 = EditComponent. |
componentName | string | yes | Stable identifier that binds this definition to a frontend renderer and (for field controls) to a backend option fetcher. |
dataTypes | number[] | yes | Which field data types this component can render/edit. |
entitySource | string | no | Optional entity the component draws its data from. |
preferredPairedComponents | string[] | yes | Other componentNames that pair well with this one (UI hint). |
componentOptions | object[] | yes | Declarative option schema exposed to the builder when configuring an instance. |
validations | object[] | no | Optional validation descriptors. |
idInjection is disabled (settings: {idInjection: false}), so a Component carries no auto-generated id; the componentName is its identity key.
componentName: the wiring key
Section titled “componentName: the wiring key”The componentName string is the join across the stack. Two consumers rely on it:
-
Backend option fetchers. Field controls that need server-supplied options (e.g. a user picker) register a
Fetchersubclass whose staticcomponentNamematches.FetcherBooter(booters/fetcher.booter.ts) scansfetchers/**/*.fetcher.jsand binds each class under`${FETCHER_BINDING_PREFIX}${cls.componentName}`.FetcherFactoryService.getFetcher(componentName)resolves it at request time (optional — returnsundefinedif none is registered). Example:UserComponentFetcherdeclaresstatic componentName = 'UserReferenceComponent'.Fetchers implement
fetch(spaceId, data, options?)and receive a richFetcherOptions(filter,includeIds,forceIncludeIds, cascaded-parent context, search, parameters, user/language). Seefetchers/types.ts. -
Frontend registry.
createComponentMetadata()(frontend/libs/shared/plugin-cdk/.../component-metadata-base.ts) turns aComponentModel(theComponentshape) into aComponentRegisterDataModel: it mapscomponentOptions → options,type → componentType, and appliesdisplayOptions/fieldQueryOptionsdefaults, plussupport*capability flags (supportUniqueOption,supportDefaultValue,supportSearchable,supportMultipleOptions, …). This is how a catalog entry becomes a live, configurable widget in the builder.
FieldComponent: a component on a field
Section titled “FieldComponent: a component on a field”FieldComponent (models/field-component.model.ts) is the minimal binding used when a field renders through a component:
{ component: string; // the componentName to render with options: object; // instance configuration for that component}This is the same component + options pairing used by page widgets (below); FieldComponent is the field-level form of it.
Widgets
Section titled “Widgets”The core widgets registered in the web app (dynamic-widgets-components/metadata.ts;
groups in generic-view-content/_utils/widget-group-utils.ts) are Section and
Column (groups), Title (heading levels 1–6), Text (multiline or markdown;
editable height), Link and Link list (External, or Internal to a System View,
Module View or Data View; link targets support dynamic token filling), Media and
Media List, Document (optional preview image) and Document List,
Summary (a statistic query), View (a data view; Count of entries 3 / 5 /
10, default 5, or 3 / 5 / Unlimited when the face supports paging and search),
TimeLine (source Full / Module / Entity) and Navigation (default 12 columns,
auto or fixed row height). Each widget has its own visibility settings. All widgets
are registered in-app — there is no third-party/remote (federated) widget
loading, and adding a new widget is a developer task.
An earlier version of the builder page described widget settings with older labels (Timeline Page Navigation Auto / Manual / Page Numbers, Number of Posts, Show Pinned Posts, Source Entity / Unit / General; Summary Unit / Entity with a locked View; View widget locked to the Table view with Number of Entries; widget Custom Display and Custom Style). The current designer labels are on Pages & Widgets.
The View widget: client-side behaviour changes
Section titled “The View widget: client-side behaviour changes”The View widget embeds a data view on a page and honours that view’s faces, sorting and paging. Three behaviours changed recently; all are client-side, and the page model did not change:
- Kanban face
Since 1.6— a View widget showing the Kanban face used to apply the face to rendering only while still fetching the flat entries list, so the board stayed empty. It now loads the board itself, with the view’s column field (including, from 1.10, a reference column field — see Data Views & Faces) and per-column load more; switching the face in the page editor refetches the first page in the new face’s shape. Also delivered to the 1.6 and 1.8 lines as an update. - Column sort
Since 1.10— sorting a column of the widget’s table used to flip the header arrow without reordering the rows. The widget now keeps the active sort (seeded from the view’s default sorting), returns to page one and refetches on every sort change, and falls back to the default sorting when the sort is cleared. - Card-view paging
Since 1.6— in card view the paginator no longer sits against the last row of cards (table view unchanged). Also delivered to the 1.8 line.
Plugin widget packs
Section titled “Plugin widget packs”The optional packs are registered via each plugin’s plugin-module.config.ts exposes; the working custom widgets live in the core app under shared/custom-plugins/*. Which widgets you actually see depends on which packs are installed in your deployment:
- DIWAN — QR-code, quick-counters, quick-summaries, links-grid, v-card, footer, attendance, sign-in.
- GATE — timeline slider, timeline hero-slider.
- task-management — hero-slider, quick-links, quick-services, stay-in-touch (announcements), success-stories, welcome-title, who-we-are, wiki, entity-view-summary; plus a citizen-profile entry template.
- Composite summaries — an aggregated-summaries widget.
Note that the two sample plugins that used to ship as an SDK example (frontend/libs/plugins/gate, plugins/task-mgmt) were empty scaffolds with no implemented behaviour, and libs/plugins/ was removed outright by the library restructure — the working widget packs above are the ones under frontend/apps/core/src/app/shared/custom-plugins/*, which is where they have always lived.
Pages: the GenericView model
Section titled “Pages: the GenericView model”GenericView fields
Section titled “GenericView fields”A page is a GenericView (models/generic-view/generic-view.model.ts), identified by a UUID. It holds the page’s identity, its content (components/groups), and its behavior (sharing, anonymous access, refresh, redirects). Selected fields:
| Field | Type | Notes |
|---|---|---|
specificationVersion | number (default 1) | Page schema version. |
name | LocalizedValue | Required, localized page name. |
normalizedName | string | URL-safe slug, validated by NormalizedNameValidation (min/max length + pattern). Auto-generated from name if omitted (see create flow). |
description | NullableLocalizedValue | Optional. |
icon | Icon | Optional. |
anonymous | AnonymousViewOption | null | Anonymous access config incl. share URLs/tokens. Drives system-link creation. |
authenticated | AuthenticatedViewOption | null | Authenticated-access options (e.g. default view, restricted). |
isPublished | boolean (default false) | Publish state. |
isPinned | boolean (default false) | Pin state. |
relatedTo | NullableReferenceProperty | If set, {dataEntity:'DataModule', dataEntry:<uuid>} scopes the page to a module; null/absent means a system/space-level page. |
components | GenericViewComponent[] (default []) | Top-level widgets on the page. |
groups | GenericViewGroup[] (default []) | Layout groups; each holds its own components. |
sideBarConfig | SideBarConfig | null | Controls sidebar open/close behavior when the page opens. |
displayConfig | GenericViewDisplayConfig | null | Page-chrome flags (transparent, full page, header, spacing, container layout). |
displayOrder | number (default 0) | Ordering hint. |
uiAttributes | object | null | Free-form UI metadata. |
allowExportPDF | boolean (default false) | Enables PDF export of the page. |
domain | ReferenceProperty | Optional domain scoping. |
autoRefresh | GenericViewAutoRefresh | null | {enabled, interval} auto-refresh. |
creationInfo / updateInfo | ActionInfo | Audit stamps (who/when, delegatee). |
pageType | PageTypeEnum (default Normal) | 0 = Normal, 1 = Embedded. |
embeddedPageConfig | EmbeddedPageConfig | {url} — required and URL-validated when pageType = Embedded. |
sharing | ApplicationSharing | Required sharing config (Private/Public/Shared). |
redirectionRules | RedirectionRule[] (default []) | Conditional redirects evaluated for the page — see Redirection rules: evaluation below. |
updateIdentifier | string | Required; regenerated (v4()) on create — an optimistic-concurrency / change token. |
help | PageHelp | null | Optional in-page help/documentation. Since 1.2. |
executionPlan | ExecutionPlan | null | Computed allowed-routes plan (set by calculateExecutionPlan). |
The GenericView constructor seeds components = [] and groups = [] when absent. This is why a migration must never use updateById to patch a page (it would rebuild the entity and blank both arrays); use a raw $set instead.
Placing a widget: GenericViewComponent
Section titled “Placing a widget: GenericViewComponent”Each widget instance on a page is a GenericViewComponent (generic-view-component.model.ts):
| Field | Type | Required | Notes |
|---|---|---|---|
componentId | UUID | yes | Unique per page — enforced (see validation). |
component | string | yes | The componentName to render with. |
options | {[key:string]: any} | yes | Instance configuration. May carry options.groupId to nest the widget in a group. |
displayOptions | ComponentDisplayOptions | yes | Size/width/alignment/height (below). |
title / description | NullableLocalizedValue | no | Per-instance overrides. |
icon | Icon | no | Per-instance icon. |
uiAttributes | object | null | no | Free-form UI metadata. |
visibility | ComponentVisibility | no | Anonymous/authenticated visibility rules (below). |
Grid & sizing: ComponentDisplayOptions
Section titled “Grid & sizing: ComponentDisplayOptions”| Field | Type | Default | Notes |
|---|---|---|---|
size | ComponentSizeEnum | required | Preset grid footprint: Row1Col1(0) … Row2Col4(7). |
width | number (1–12) | 1 | 12-column width. |
verticalAlginment | VerticalAlignmentEnum | 0 = Stretch | Stretch/Start/End/Center (note: the field name is spelled verticalAlginment in source). |
showInNewRow | boolean | false | Force the widget onto a new row. |
height | ComponentHeightConfiguration | — | {advanced, unit (default 'px'), value (default 100, min 0)}. |
Conditional visibility: ComponentVisibility
Section titled “Conditional visibility: ComponentVisibility”visibility (component-visibility.model.ts) gates a widget by audience:
custom: boolean(defaultfalse) — whenfalse, the widget inherits the page’s default visibility; whentrue,settingsapply.settings: ComponentVisibilitySettings— holdsanonymous(AnonymousOption) andauthenticated(AuthenticatedOption) toggles, letting a widget show/hide differently for anonymous vs. logged-in viewers.
Component visibility is validated at create/update time against the page’s own anonymous/authenticated configuration (validateComponentVisibility), including components nested inside groups. In the designer this surfaces as the Custom Visibility toggle in a widget’s General section.
Grouping & layout: GenericViewGroup
Section titled “Grouping & layout: GenericViewGroup”A GenericViewGroup (generic-view-group.model.ts) is a layout container:
groupId: UUID— unique per page.options: GroupConfiguration—{groupId?, orientation}whereorientationisLayoutOrientationEnum(0 = Horizontaldefault,1 = Vertical). (GroupConfigurationisstrict:false, so extra layout keys may be present.)components: GenericViewComponent[]— the widgets inside the group.
A top-level component joins a group by setting options.groupId to the group’s groupId. The create/update flow validates that every referenced group exists.
Page-level display, sidebar & refresh
Section titled “Page-level display, sidebar & refresh”GenericViewDisplayConfig(nullable):transparent,fullPage,outerSpacing,showPageHeader, and free-formpageContainerLayout.SideBarConfig(nullable):openMode: SideBarOpenModeEnum—0 = Preserve(default),1 = Hide,2 = Open,3 = Close. Determines what happens to the navigation sidebar when this page is opened.GenericViewAutoRefresh(nullable,strict:false):{enabled (default false), interval (default 0)}.LinkConfiguration(link-configuration.model.ts) — a reusable hyperlink descriptor (used by widgets/config, distinct from sidebar links):type: LinkTypeEnum(0 = External,1 = internal),url?, localizedtitle/description,icon, andopenIn: OpenLinkInEnum(0 = NewTab,1 = SameWindow,2 = NewWindow).
Page types: Normal vs Embedded
Section titled “Page types: Normal vs Embedded”pageType (PageTypeEnum) is Normal (0) or Embedded (1). An Embedded page renders an external URL via embeddedPageConfig.url. On create/update the service enforces (validateEmbeddedPageConfig):
- the URL is present → else
EmbeddedPageMustHaveURLException; - the URL is valid → else
EmbeddedPageInvalidURLException.
Designer labels and the stored model
Section titled “Designer labels and the stored model”| Designer (Details / Content tab) | Stored as |
|---|---|
| Page Type Normal / Embedded, URL | pageType (Normal = 0, Embedded = 1), embeddedPageConfig.url |
| Pin to Sidebar | isPinned |
| Display Sidebar Preserve / Open / Close | sideBarConfig.openMode (Preserve = 0, Open = 2, Close = 3; Hide = 1 has no designer option) |
| Appearance: Transparent background, Full width page, Content padding, Page header, Contained layout | displayConfig.transparent, fullPage, outerSpacing, showPageHeader, pageContainerLayout |
| Allow Exporting as PDF | allowExportPDF |
| Auto Refresh | autoRefresh {enabled, interval} |
| Redirection rules (a JSON textarea) | redirectionRules |
| Help & documentation | help |
| Sharing level, Spaces | sharing (ApplicationSharing) |
| Widget Edit width / Vertical Alignment (Stretch, Top, Bottom, Middle) / New row / Edit height | displayOptions.width, verticalAlginment (Stretch, Start, End, Center), showInNewRow, height |
| Widget Custom Visibility | visibility.custom + visibility.settings |
| Section / Column widgets | GenericViewGroup |
Redirection rules: evaluation
Section titled “Redirection rules: evaluation”redirectionRules route users to a specific target page based on conditions —
priority-ordered, first match wins, and a rule only matches when both its access
type (Anonymous/Authenticated/Everyone/Restricted) and its named users/groups admit
the caller. Since 1.10 this two-part match is enforced correctly for a page’s own
rules (previously a rule’s named audience was silently ignored outside the
Restricted case, and an anonymous visitor could hit a hard crash instead of a normal
redirect-or-render). Pages and data views share the exact same evaluator; see
Data Views & Faces § Redirection rules
for the full evaluation semantics. A home/default page is auto-provisioned when a
module or space is created.
Page (GenericView) API
Section titled “Page (GenericView) API”Endpoints
Section titled “Endpoints”All routes are under the data-service. CRUD is authorized by voteByRelatedToFilterFactory('relatedTo', …) voters; end-user render routes are separate.
| Method | Path | Purpose |
|---|---|---|
POST | /v1/generic-views | Create a page (NewGenericView body). |
GET | /v1/generic-views | List pages. |
GET | /v1/generic-views/count | Count pages (where filter). |
GET | /v1/generic-views/default | Get the current user’s default page. |
GET | /v1/generic-views/{id} | Get a page by id (builder view). |
GET | /v1/generic-views/end-user/{id} | Get a page for rendering (end-user). |
GET | /v2/generic-views/end-user/{id} | End-user render, v2. |
PATCH | /v1/generic-views/{id} | Update a page. |
PATCH | /v1/generic-views/{id}/permissions | Update page permissions only. |
DELETE | /v1/generic-views/{id} | Delete a page. |
Create flow: validation & side effects
Section titled “Create flow: validation & side effects”POST /v1/generic-views (create) runs, in order:
validateNameon the localized name.validateGenericView— e.g. a restricted authenticated view cannot also be the default view (RestrictedViewCanNotBeDefaultException);relatedTo, if present, must be a validReferenceProperty.validateComponentUniqueness—componentIds must be unique across the page (ComponentIdMustBeUniqueException).validateGroupExistence— every component’soptions.groupIdmust match an existing group (ComponentGroupIdNotExistException).validateGroupsUniqueness—groupIds must be unique (ComponentGroupIdMustBeUniqueException).validatePermissionsandvalidateComponentVisibility(recursively into group components).- If
pageType = Embedded,validateEmbeddedPageConfig. - normalizedName: scoped uniqueness. Scope is module-level when
relatedTois set, otherwise all space-level pages (relatedTonull/absent). A providednormalizedNamemust be unique in scope (GenericViewNormalizedNameDuplicateException); otherwise it is auto-generated fromnamewithgenerateUniqueNormalizedName(..., 'page'). - Audit stamps (
creationInfo/updateInfo), a freshupdateIdentifier(v4()), andcalculateExecutionPlan(static allowed routes). - Persist, then side effects: if
anonymous.enabled, create system links viaSystemLinkService.upsertSystemLink; enforce default-view uniqueness; store permissions into access-rights; publishGenericViewCreatedEvent.
Update flow: concurrency and installed pages Since 1.10
Section titled “Update flow: concurrency and installed pages Since 1.10”PATCH /v1/generic-views/{id} compares the incoming updateIdentifier with the stored one (409 UPDATE_CONFLICT) and then writes conditionally: the page is claimed only while its stored token still matches the one that was read, and only then replaced with a new token (OP#28318). Two saves that both passed the comparison can therefore no longer overwrite each other — the second one gets a 409 and must re-read. A page save also records the files the page references before the write and releases the ones it dropped afterwards; deleting a page releases them all.
A page installed by a package is locked (403 PACKAGE_RESOURCE_READ_ONLY). Through the same PATCH, and only for a body that changes them, the client keeps:
isPublished— never checked against the token.name,description,icon(OP#27491). The first change records the package’s own value inpackageLabels, and typing the package’s value back removes the record; an update of the package keeps the client’s label. A label write needs the currentupdateIdentifier.icon: nullclears the icon only with?clearIcon=true(OP#28316), because the page editor sendsicon: nullfor every page that has none;description: nullalways clears.
The write is partial: the stored components and groups stay exactly as they are, the page’s existing default-page assignments are kept rather than taken from the payload, and only the chosen keys, the audit stamp and a new updateIdentifier are set. Display order, audience and access-right rows (PATCH /v1/generic-views/{id}/permissions) are the client’s too, and an update of the package keeps them. The same rules for views are on Data views.
Global pages in packages Since 1.10
Section titled “Global pages in packages Since 1.10”A global page — a page with no module or entity scope (relatedTo absent) — can be a root of a package, alone or beside modules, and is exported without children. A package save that names a page belonging to a module or entity is 422 PACKAGE_PAGE_NOT_GLOBAL; publishing refuses a page that has since moved into one (PUBLISH_PAGE_NOT_GLOBAL), or that was itself installed or forked from another package (PUBLISH_PAGE_INSTALLED, PUBLISH_PAGE_FORKED). A statistic-query widget on the page whose data entry points outside the package still installs: the widget is left unconfigured — the same state the widget editor produces — instead of failing the install. See the packaging screens for where pages are added to a package.
Navigation: the sidebar link tree
Section titled “Navigation: the sidebar link tree”The sidebar is a tree of links. A link is a LinkDataEntry whose value is a LinkDataEntryValue; the sidebar API returns them shaped as GenericLink nodes.
LinkDataEntryValue (stored shape)
Section titled “LinkDataEntryValue (stored shape)”| Field | Type | Notes |
|---|---|---|
order | number | Sort order within siblings. |
parent | ReferenceProperty | null | Parent link (builds the tree). |
icon | Icon | |
published | boolean | Only published:true, state:1 links are returned. |
type | CollectionValueModel<LinkType> | Module / View / Page / Report / Untyped. |
ownership | CollectionValueModel<LinkOwnership> | System ('0') or Manual ('1'). |
title | LocalizedValue | Required. |
description | NullableLocalizedValue | |
target | LinkTarget | {url, targetId, targetSectionId, targetViewAction}. |
authentication | LinkAuthentication | {type, users[], groups[]} — controls who can see the link. |
domain | ReferenceProperty[] | Empty array = all domains; otherwise must match request domain. |
sharing | ApplicationSharing | Private/Public/Shared vs. the request space. |
LinkType (@osos/shared): Module = '0', View = '1', Page = '2', Report = '3', Untyped = '4'.
LinkAuthenticationTypeEnum: Anonymous = '0', Authenticated = '1', Everyone = '2', Restricted = '3'.
GenericLink (returned shape) & URL derivation
Section titled “GenericLink (returned shape) & URL derivation”The response node is GenericLink (generic-link.model.ts): id, order, title, description, icon, url, target, type, parent, children[], plus view extras userQueries, userCollections, sharedCollections. Subclasses set the client url from target.targetId:
| Link type | Class | Derived url |
|---|---|---|
| Module | ModuleLink | null (container only) |
| Page | PageLink | /${targetId} |
| View | ViewLink | /v/${targetId} (also carries saved queries + collections) |
| Report | ReportLink | /reports/${targetId} (web-only) |
| other | GenericLink | target.url as stored |
GET /v2/side-bar
Section titled “GET /v2/side-bar”SideBarController.getViewsForSidebarV2 returns a SidebarDtoV2.
Headers/params:
x-domain-id(header) — request domain.x-space-id(header) — request space.include(query,SidebarIncludeDataEnum):All = 0(default),Links = 1,OnlyService = 2. Theincludeselector is Since 1.4.
SidebarDtoV2 fields:
| Field | Type | Notes |
|---|---|---|
links | GenericLink[] | The link tree (empty when include = OnlyService). |
serviceViewsStatus | SidebarServiceStatus | null | Service-section counters (null when include = Links). |
isRestricted | boolean | Whether the user holds the system-level Restricted floor. Since 1.8. |
restrictedAccess | {hasModuleAccess, hasEntityAccess} | Resource-level grants for restricted users; each is true if any module/entity grant is ≥ AccessRightLevelEnum.ViewAccess. Since 1.8. |
The endpoint is @authorize({skip: true}) but requires authentication (Auth2 strategy at the controller). The restricted-access summary is attached to every include variant so the DTO shape stays stable.
How links are selected & assembled
Section titled “How links are selected & assembled”LinksService.getLinksForSidebar(domain, spaceId, userId, delegationId?):
- Audience filter by
authentication.type:- Anonymous request (
userIdnull): types0(Anonymous) or2(Everyone), plus type1(Authenticated) only when the link’s ownvalue.type.id === '0'. - Authenticated request: types
1(Authenticated) or2(Everyone), plus3(Restricted) when the user is listed inauthentication.usersor is a member of one ofauthentication.groups.
- Anonymous request (
- Base predicate:
published:trueANDstate:1; domain matches (emptydomainarray = global, elsedomain.dataEntry === domain); sharing isPublic, orPrivate/Sharedscoped to the requestspaceId. - Order:
value.order ASC, thenvalue.title.en ASC. - Delegation filter (when
delegationIdis set): drops links whose target the delegatee lacks permission for —view/report/pagetargets are checked against delegatedview/report/genericViewentitlements (extractResourceInfoFromLink+filterLinksByDelegatedPermissions). Links that don’t point to a controlled resource are kept. - View enrichment: for
Viewlinks, attach the user’s saved queries (userQueries), owned collections (userCollections), and shared collections (sharedCollections). - Tree build (
convertLinksToTree): parent/child nesting viavalue.parent. AViewlink whose parent is hidden is skipped. Finally,Modulelinks with no children are dropped (empty modules don’t show).
System links (anonymous share tokens)
Section titled “System links (anonymous share tokens)”“System links” are opaque tokens that expose a view or page to anonymous visitors without exposing its id. This is a different concept from sidebar links.
Model & storage
Section titled “Model & storage”- A share URL is a
ViewUrl:{uniqueToken: string, validity?: string | null}. - On a page/view,
anonymous(AnonymousViewOption) holdsenabled,defaultView,urls: ViewUrl[], and optionalhumanVerification. - Persisted tokens live as
SystemLinkEntryrecords (value.relatedObject,value.token,value.validity), written bySystemLinkService.
Generating & reconciling tokens
Section titled “Generating & reconciling tokens”generateUniqToken(size)— creates ananoid(size)token and retries on the (rare) collision.SYSTEM_TOKEN_LENGTH = 32.upsertSystemLink(relatedObject, links, user, isUpdate?)— inserts new tokens and, on update, archives any previously active token that is no longer in the submitted list (state →Archived). Called automatically from the page create flow whenanonymous.enabled.
System-link API
Section titled “System-link API”| Method | Path | Auth | Purpose |
|---|---|---|---|
GET | /v1/system-link/generate | authenticated | Returns {token}, a fresh unique 32-char token to attach to an anonymous URL. |
GET | /v1/system-link/resolve/{token} | @authenticate.skip() (public) | Resolves a token to the entity behind it. |
Resolve semantics (getAnonymousView):
- Token length must equal
SYSTEM_TOKEN_LENGTH(32) → elseInvalidViewTokenExption. - Look up a
DataViewsby token, else aGenericViewby token → if neither,DataViewNotExistException. - If the resolved view is not anonymous and the token is expired (
anonymous.urls[].validity < now), reject as invalid. - On success, return a
ReferenceProperty:{dataEntity: 'DataViews' | 'GenericView', dataEntry: <view.id>}. The caller then loads the actual view/page via the normal render route.
Quick reference: enums
Section titled “Quick reference: enums”| Enum | Values |
|---|---|
ComponentTypeEnum | ViewComponent=0, EditComponent=1 |
ComponentSizeEnum | Row1Col1=0 … Row2Col4=7 |
VerticalAlignmentEnum | Stretch=0, Start=1, End=2, Center=3 |
LayoutOrientationEnum | Horizontal=0, Vertical=1 |
SideBarOpenModeEnum | Preserve=0, Hide=1, Open=2, Close=3 |
PageTypeEnum | Normal=0, Embedded=1 |
LinkType | Module='0', View='1', Page='2', Report='3', Untyped='4' |
LinkOwnership | System='0', Manual='1' |
LinkAuthenticationTypeEnum | Anonymous='0', Authenticated='1', Everyone='2', Restricted='3' |
LinkTypeEnum (LinkConfiguration) | External=0, internal=1 |
OpenLinkInEnum | NewTab=0, SameWindow=1, NewWindow=2 |
SidebarIncludeDataEnum | All=0, Links=1, OnlyService=2 |
ApplicationSharingLevelEnum | Private='PRIVATE', Public='PUBLIC', Shared='SHARED' |
Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27