Logotype Sitevision Developer

Log in

Log in

Can I access the REST-API from a Script or WebApp/RESTApp?

RestApi offers a way to access the REST-API server-side, i.e. without making any outgoing http request.

Published: 2022-07-22  |  Updated: 2024-09-26

RestApi is a util that provides methods to make server-side calls to the REST-API. It is very useful since some data is only exposed through the REST-API and not in the Public API.

Step 1 - Get an instance of RestApi

For WebApp/RESTApp - use import:

For Script module - use require:

Step 2 - Make use of RestApi