External authentication methods for webhook calls
When nps.today calls a URL in your system, for example with a Webhook call on an NPS Notification trigger, your system can require the call to be authenticated. An external authentication method stores the credentials that nps.today sends with those calls, so you only enter them once and can reuse them on several campaigns.
At a glance
- Where: Account > Authentication tab > External authentication methods
- You need: access to the account settings in app.nps.today, and the credentials your system expects
- Result: webhook calls from nps.today include the authentication header your system requires
Authentication types
nps.today adds the credentials to every call as an HTTP header:
| Authentication type | Fields | Header that nps.today sends |
|---|---|---|
| Basic | Username, Password | Authorization: Basic <username:password, Base64 encoded> |
| Bearer | Value (the token) | Authorization: Bearer <value> |
| Api Key | Api Key | Authorization: ApiKey <api key> |
| Custom Authentication Header | Authentication header name, Authentication header scheme (optional), Value | <header name>: <scheme> <value>, or <header name>: <value> without a scheme |
For a custom header, the dialog shows how your header will look before you save it.
Add an authentication method
- In the left menu, under Management, click Account.
- Select the Authentication tab. Under External authentication methods, the page shows how many methods you have.
- Click Add Authentication Method.
- In Name, enter a name you will recognize later, for example "CRM webhook".
- In Authentication type, select the type your system expects.
- Fill in the fields for that type. See the table above.
- Click Create.
Use the method on a webhook call
- Open the campaign and click Edit Campaign.
- Expand Settings and find NPS Notification triggers.
- On the trigger, select Webhook call under Notification Channel, and enter the Webhook URL.
- In Authentication, select the authentication method.
- Click Test to send an example call with the credentials, then click Save Campaign.
See Webhook notification.
Change or delete a method
- On the Authentication tab, click the method in the External authentication methods list.
- Change the fields and click Save Changes, or click Delete to delete it.
The list shows where each method is used, in the columns Linked notification triggers and Linked webhooks. Click a campaign name to open the campaign that owns the trigger.
Deleting a method that is in use
When you delete a method that is linked to notification triggers or webhooks, nps.today lists them and asks you to confirm. Your system may then reject the calls from those triggers and webhooks. Move them to another method first.
Verify it worked
- Click Test on the NPS Notification trigger that uses the method.
- Check in your system's log that the call arrived with the expected header and was accepted.