User Interface API

User Interface API allows you to get Salesforce record data into your Lightning web component. LWR sites don’t require anything special when developing your Lightning web components with User Interface API.

To learn more, check out the following topics in the Lightning Web Components Developer Guide.

If your site is public or includes public pages, make sure that you also enable the following settings in the Administration workspace under Preferences.

  • Allow guest users to access public APIs

Lets guest users access any Lightning web components that use the User Interface API, in addition to the API access that it already provides. Enable this setting to give guest users access to Salesforce CMS and record detail pages, such as Knowledge detail pages.

  • Let guest users view asset files, library files, and CMS content available to the site

Lets guest users access Lightning web components that use @salesforce/contentAssetUrl.

Tip