Question

authenticate the app

  • 20 April 2022
  • 2 replies
  • 443 views

How to authenticate the app with a super admin user in order to receive voicemail event notification for other users than oneself(Webhook Subscription)?


2 replies

Userlevel 1

You can authenticate your app with a super admin user, read your account extensions to detect the extension id of each extension you want to get a voicemail notification. Then subscribe for the voicemail event notification as shown below:

var eventFilters = [
      '/restapi/v1.0/account/~/extension/{extensionId_1}/voicemail', // e.g. 101
      '/restapi/v1.0/account/~/extension/{extensionId_2}/voicemail', // e.g. 102
      '/restapi/v1.0/account/~/extension/{extensionId_n}/voicemail', // e.g. n
]


ok. can you tell what are the steps for app authentication?

Reply