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:
POST /popup/{campaignId}/response - You need: an OAuth 2.0 access token or an API key, and the campaign ID. See Authentication and errors and Find campaign IDs.
- Result: the historical responses are on the campaign with their original rating time
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:


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
- Send one row first.
- In app.nps.today, open the campaign and select the Responses tab. The response is listed with the original rating time.
- When the first row looks right, run the flow for the rest of the data.