Developers
Use the nps.today REST API and related tools to trigger surveys from your own systems, receive responses in real time and pull feedback data into your applications or data warehouse.
At a glance
- API reference: api.nps.today/docs is the main source for every endpoint, parameter, request and response. It is generated from the live services. The pages in this section explain how to combine the endpoints, and link to the reference instead of repeating it.
- Authentication and errors: OAuth 2.0 access token (recommended) or API key in the
Authorizationheader. See Authentication and errors. - Concepts: campaign, template, campaign member, respondent, response, company, employee and P-GAP are defined in the Terminology section of the API reference. See also Key concepts.
- Requirements: an nps.today subscription that includes the API module.
Get started
- Create an API key.
- Check that the key works. See Authentication and errors.
- Send your first survey. See Trigger surveys.
- Test before you go live. See Test an integration.
Choose your approach
| I want to... | Use | Guide |
|---|---|---|
| Send a survey when something happens in my system | API or webhook | Trigger surveys · Webhook |
| Generate survey links myself, for example for embedded surveys | Survey link generation | Create your own survey links · Unique personalized links |
| Apply my own logic before respondents are added | Relay | Relay |
| Exchange files instead of calling an API | SFTP | SFTP |
| Get notified when a new response arrives | Webhook | Get responses with a webhook |
| Show feedback in my system or load it into a data warehouse | API (BI endpoints) | Use your customer experience data · Visualize your customer feedback |
| Let agents estimate customer satisfaction | P-GAP | P-GAP (perception gap) |
| Connect a contact center platform | API and IVR setup | Contact center integration guide |
| Embed a survey on my website | Popup | Popup |
| Embed the Feedback App in my application | Feedback App | Feedback App implementation |
| Manage users, API keys and sub-accounts from my own system | Account endpoints | ApiKeys, Users and Tenants in the API reference |
No code? Power Automate and Zapier offer the same triggers and actions without programming.
Reference
- Authentication and errors: the
Authorizationheader, HTTP errors and retries. - Status codes: the campaign member status codes (
AdditionStatus), what each one means and why a survey was or was not sent. - How respondents are identified: the matching rules when you add respondents.
- Upload template fields: respondent, responsible, company and custom fields.
- Merge fields: placeholders you can fill with your own data.
Operations and security
- API certificate and TLS: how certificate renewals affect clients with pinned certificates or locked-down truststores.
- Single sign-on (SSO): the Microsoft (MSAL) sign-in flow.
- Security and requirements: hosting, encryption, authentication and API throttling.