I have successfully been able to get my token with the oauth2 process.
From the developer account I have added the following scopes:
ReadContacts ReadMessages ReadPresence Contacts ReadAccounts EditExtensions ReadCallLog ReadCallRecording SubscriptionWebhook
But when I am trying to create a webhook through this request:
POST https://platform.devtest.ringcentral.com/restapi/v1.0/subscription
{
"eventFilters": [
"/restapi/v1.0/account/~/extension/~/presence?detailedTelephonyState=true&sipData=true",
"/restapi/v1.0/account/~/extension/~/message-store",
"/restapi/v1.0/account/~/extension/~/presence/line",
"/restapi/v1.0/account/~/extension"
],
"deliveryMode": {
"transportType": "WebHook",
"address": "https://requestb.in/wxg5nvwx"
}
}
I receive this error 403 Forbidden:
{
"errorCode": "SUB-412",
"message": "[hud] extension permission is required for the following event filter: [/restapi/v1.0/account/226393004/extension/226393004/presence/line]",
"errors": [
{
"errorCode": "SUB-412",
"message": "[hud] extension permission is required for the following event filter: [/restapi/v1.0/account/226393004/extension/226393004/presence/line]",
"filter": "/restapi/v1.0/account/226393004/extension/226393004/presence/line",
"permissionName": "HUD"
}
],
"filter": "/restapi/v1.0/account/226393004/extension/226393004/presence/line",
"permissionName": "HUD"
}
Can someone point me on my mistake?
Thanks in advance
Stephanie