Skip to main content

Show API Data in Staffbase Without Your Own Server

How to show data from a REST API in Staffbase without a server or hosting: Widget Builder calls the API and the API key stays on the server.

4 min read

You want to show data from another system in your Staffbase intranet, such as the cafeteria menu, open tickets or key figures, and you have no server for the API integration? With Widget Builder by JASP you set up the API request right in the widget. Widget Builder calls the API through its own server, and the widget shows the response in Staffbase. You host nothing yourself, and the API key never reaches your employees’ browsers.

Why is calling an API straight from the browser a problem?

When a widget calls an API in the browser, everything shows up in the network tab of the developer tools: address, headers, body and with them any API key or token. On top of that, the target API has to allow calls from the intranet’s address (CORS). Many internal systems don’t. Until now the usual fix was a small server of your own that queries the API, plus someone to run it.

How does Widget Builder show API data without your own server?

  1. Set up the API request. In the widget you enter the method (GET, POST, PUT, PATCH or DELETE), the address, headers and a body if needed. The API key goes into a header, for example Authorization: Bearer … or X-Api-Key: ….
  2. Route it through Widget Builder. For new requests in a widget, routing through the Widget Builder server is already switched on. The widget then asks Widget Builder, and the server calls the target API. Because the call comes from the server, the target API needs no CORS permission for the intranet.
  3. Show the response. The layout is HTML with Handlebars placeholders. You insert fields from the API response and write the layout yourself, or let the AI editor build it if JASP has enabled it for your tenant.
  4. Make it available in Staffbase. You switch on “Available in Staffbase” and save. Widget Builder registers the widget in Staffbase, and then you place it in Staffbase Studio.

By default, Widget Builder checks the Staffbase sign-in of the person who opens the widget on every call. In the address and headers you can use placeholders for tokens, for example the Staffbase token of the signed-in person. If you don’t want an API queried on every page view, you can switch on a cache per request with its own lifetime; it is off by default and kept per person.

Sources: API Proxy (opens in a new tab) , Caching API requests (opens in a new tab) and Data Tables (opens in a new tab) in the Widget Builder documentation.

What other options are there?

OptionWhere the API is calledWhat you run yourself
Widget Builder with proxyOn the Widget Builder serverNothing; you need a Widget Builder account
Staffbase Custom WidgetIn the code your developers writeThe bundle on a web server or CDN, plus a server if the key has to stay secret
Staffbase Embedded Pages widgetIn the embedded web pageThe web page itself; it has to allow embedding

Sources: Custom Widget Development (opens in a new tab) and Configuring the Embedded Pages Widget (opens in a new tab) , retrieved on 3 December 2026. For a wider overview, see Widget Builder compared to other tools .

Frequently asked questions

Do I need my own server to show API data in Staffbase?
Not with Widget Builder. You set up the API request in the widget, Widget Builder calls the API and the widget shows the response in Staffbase. Widget Builder registers the widget in Staffbase itself. There is no hosting, build or deployment on your side.
Can employees see my API key in their browser?
Not when the request runs through Widget Builder, which is the default for new API requests in a widget. The browser then only sees a request to Widget Builder; the target API’s address, headers and body stay on the server. If you switch the proxy off for a request, the browser calls the API directly and sees its headers too.
What if the system has no API at all?
Then you keep the data in a Data Table in Widget Builder. You import it as a CSV file and choose whether rows are appended or replaced. The widget then shows the rows of the table.

Next step

On the STARTER plan Widget Builder costs nothing. Browse the widget gallery for widgets that already show data from APIs, or tell us about your system through the contact form .