How to Integrate NPS via API?

sBeamer recommends users to follow these simple rules to integrate the NPS (Net Promoter Score) into your app using the API successfully:

1. Use the /nps/check Endpoint:

The /nps/check endpoint allows you to check whether a specific user should be shown the NPS prompt based on the criteria set in your NPS settings. If the user qualifies, the API will return a URL where you can display the NPS prompt.

Attached in this doc: beamer-nps-test I’m sending a very simple HTML file which includes a basic example implementation of NPS using the new API endpoint. The file includes some basic CSS styling as well as a JavaScript snippet that implements the whole cycle (check if the user should see the prompt, and, if so, show the prompt for that user), all with some comments to make it more understandable so you and your team can get started easily.

2. Setting Up a Front-End API Key:

If you plan to make these API calls directly from the front end, it is essential to create a separate API key with restricted permissions. Follow these steps to ensure secure implementation:

Step 1: Go to Settings > API.

Step 2: Create a new API key specifically for this purpose.

Step 3: Restrict the key’s permissions to the Check NPS prompt status only, as this is the only permission required for this endpoint.

Note: Ensure that the new API key is configured to only allow checking NPS prompt status. This minimizes security risks and limits the key’s access to other functions.

3. Setting Up NPS for mobile:

To send NPS surveys to mobile users, you have a couple of options:

Enable the NPS Widget for Mobile:

Step 1: Go to NPS Settings.

Step 2: Navigate to the NPS Widget.

Step 3: Toggle the SHOW ON MOBILE option. If enabled, users on mobile devices will be prompted to take the NPS survey.

Send NPS via API

To send NPS via API for mobile apps:

  • For Web Apps: Simply integrate the NPS script via beamer_config as you would for any web-based platform. This will display the NPS surveys directly on the app.
  • For Native Mobile Apps: Since Beamer doesn’t have a native SDK for NPS, you can use a hybrid method. This involves checking for the NPS prompt via the API and displaying it manually within the native app.

The Beamer configuration setup itself can trigger the NPS survey display in web apps, but for native apps, the API method is required.

Note: For native mobile apps, while there’s no SDK, many customers have successfully used this hybrid method.

  • You can use the script normally if your app is a web app.
  • For native apps, implement NPS through the API.

Your Data Security and Privacy is our Priority.

At Beamer, we care about our customers’ data and this is how we protect it.

icons

Data Ownership

Your account and data belongs to you and will not be sold in any case. We can delete your account and data upon your request. Learn more

icons

Encryption

Beamer data is encrypted in transit (advanced TLS protocols and 2,048-bit keys or better) and at rest (using AES 256 encryption with integrity).

icons

Access

Customer data is always backed up and uptime is over 99.9%.

icons

GDPR

Beamer is GDPR Compliant and has the Data Processing Agreements in place. Learn more

icons

Penetration testing

Third party network, application and physical security tests are conducted regularly. Learn more