Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Get Started with User Interface API

Build Salesforce UI for native mobile apps and custom web apps using the same API that Salesforce uses to build Lightning Experience and Salesforce for Android, iOS, and mobile web. Build user interfaces that let users work with records, list views, actions, favorites, and more. Not only do you get data and metadata in a single response, but the response matches metadata changes made to the org by Salesforce admins. You don’t have to worry about layouts, picklists, field-level security, or sharing—all you have to do is build an app that users love.

The User Interface API base URL is https://{your_instance}.salesforce.com/services/data/v{api_version}/ui-api.

The Record UI resource shows the power of User Interface API. To display a record, your code makes this simple request:
1GET /ui-api/record-ui/001R0000003GeJ1IAK

Behind the scenes, Salesforce does the heavy lifting.

  • Checks field-level security settings, sharing settings, and perms.
  • Makes SOQL queries to get record data.
  • Gets object metadata and theme information.
  • Gets layout information.

You’re one happy developer, because Salesforce transforms the results into an easy-to-consume JSON response with all the metadata and data necessary to display the record.

Most User Interface API resource actions aren’t exposed as static methods in Apex.

Note

In addition to building UI for Salesforce records, you can also use User Interface API to build UI for Salesforce actions, favorites, and list views.