Skip to content

Upload historical data

Use this method to load responses you collected before you started with nps.today, for example from another survey tool. Each call adds a respondent and their response to a campaign in one step.

At a glance

Endpoint

https://api.nps.today/popup/{campaignId}/response

Replace {campaignId} with the ID of the campaign the responses should be added to.

Example: upload from Excel with Power Automate

In this example, the historical data is in an Excel spreadsheet, and a Power Automate flow sends one request per row:

A Power Automate flow that reads Excel rows and calls the nps.today API for each row

The HTTP action with the nps.today endpoint, headers and body

Example payload
{
"respondent":{
    "emailAddress":"@{items('Apply_to_each')?['CustomerEmail']}",
    "firstName":"@{items('Apply_to_each')?['Customer first name']}",
    "lastName":"",
    "title":"",
    "externalId":"@{items('Apply_to_each')?['Customer ID']}"
},
"response":{
    "rating":"@{items('Apply_to_each')?['NPS rating']}",
    "userComment":"@{items('Apply_to_each')?['Customer feedback']}",
    "ratingTime":"@{items('Apply_to_each')?['Survey date']}"
},
"employee":{
    "email":"@{items('Apply_to_each')?['AgentEmail']}",
    "firstName":"@{items('Apply_to_each')?['AgentName']}",
    "lastName":"",
    "title":"",
    "department":"@{items('Apply_to_each')?['Department']}",
    "team":"",
    "division":"",
    "phoneNumber":"",
    "active":true
}
}

Set ratingTime to the original date and time of each response.

Verify it worked

  1. Send one row first.
  2. In app.nps.today, open the campaign and select the Responses tab. The response is listed with the original rating time.
  3. When the first row looks right, run the flow for the rest of the data.