Using Your News as an RSS Feed

Using Your News as an RSS Feed

To easily embed a news channel into other applications, use the standard RSS (spec). Staffbase supports generating an RSS feed for one specific news channel. You can receive this news channel’s RSS feed with the correct URL.

This article provides you with the required information on how to generate the correct URL to receive the RSS feed for the news channel.

Getting an API Token

Generate a fresh API token with read-only permissions.

  1. In a browser, open the Admin Interface.
  2. Navigate to  Settings > API access.
  3. Create the the token with restricted read-only permissions.
    The API token is added to the list of tokens.
  4. Click Edit to view the token and check that is does not contain a +. Tokens with a + will cause problems when using them in a URL. If your token contains a + simply delete the token an create a new one by repeating step 2 to 4.

Setting the Token Permissions

In case the channel you like to use for RSS is not visible for all people in the organisation, ensure that the token has permissions to see this channel.

  1. In the Admin Interface, navigate to News > [Channel].
  2. Open the channel settings.
  3. From the drop-down list Visibility in the app select the setting For selected users, groups or API tokens. If you need a token that allows visibility For all users contact support@staffbase.com
  4. Select your freshly created API token.
  5. Save the channel settings.

Fetching the channelID

Get the correct channelID from the channel that you want to export as an RSS feed. The channelID for this channel can be found at the end of the URL.

  1. In the Admin Interface, navigate to News > [Channel].
  2. Go to the URL line in your browser.
    The part after the last slash is the channelID.

Building the URL

The complete URL that you need to receive the news channel consists of several parts. You need to focus on the following parts:

https://your.host/api/channels/channelID/articles/rss?token=your-api-token

  • host
    If your app environment is hosted on our US American infrastructure on MS Azure use backend.staffbase.com.
    If your app environment is hosted on our German infrastructure use de.staffbase.com.
  • channelID (also described here)
  • API token
    Use the API token at the end of the URL as a query parameter.

Example URL:

https://backend.staffbase.com/api/channels/59915b37e4b0796a5926d32f/articles/rss?token=NTli4jNlZTRlNGIwZmJjZDI5ZTU2ODFjOjJkWHU2UkI3M3zRGZiR7LkJaM1E=