Embeddable APIs

concept australia Updated Sep 25, 2026 1 min read embeddable-apis.md
Raw file servicenow.com

Service Portal automatically loads the Seismic framework and embeddable APIs when you enable embeddables. To access these APIs in your Service Portal widget scripts, call the spEmbeddables AngularJS service.

spEmbeddables service

The spEmbeddables service is the entry point for all embeddable interactions. Inject the spEmbeddables service into your widget controller to use the available APIs.

API details

API

Description and example

init()

Initializes the embeddables framework with a specified UI Builder theme.

Service Portal calls this API automatically based on the theme you configured in the portal settings.

getEmbeddables(tagNames)

Retrieves embeddable component data by component tag name.

For example:

JavaScript
spEmbeddables.getEmbeddables(['case-list']).then(function(components) { $scope.caseList = components['case-list'];});

setEvents(element, events)

Registers event handlers on an embeddable component element.

For example:

JavaScript
var caseListElement = document.querySelector('case-list');spEmbeddables.setEvents(caseListElement, { onSelect: $scope.onCaseSelect, onUpdate: $scope.onCaseUpdate});

setProperties(element, properties)

Updates component properties at runtime. The component re-renders with the new values.

For example:

JavaScript
var caseListElement = document.querySelector('case-list');spEmbeddables.setProperties(caseListElement, { filterConfig: newFilter});
**Parent Topic:**[Embeddables in Service Portal](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/service-portal/embeddables-service-portal.md)
Keywords embeddablesAPIspEmbeddablesAngularJS service
Search documentation
Search document titles and file paths on the australia branch