Skip to main content
The First Step
May 19, 2023
Solved

SUB-528 [SubscriptionWebSocket] application permission is required for [WebSocket]

In the settings for the app I have "Webhook Subscriptions" checked, but all I get is application permission denied. I am missing something and I do not know what. Can some one point me in the correct direction.

var bodyParams = new CreateSubscriptionRequest();
bodyParams.eventFilters = new[] { "/restapi/v1.0/account/~/extension/101/presence?detailedTelephonyState=true" };
bodyParams.deliveryMode = new NotificationDeliveryModeRequest()
{
transportType = "WebSocket",
address = "ws://127.0.0.1:7890",

};
bodyParams.expiresIn = 3600;
var resp = await _restClient.Restapi().Subscription().Post(bodyParams);


Employee
May 19, 2023

Disregard my answer if you want WebHook instead of WebSocket.

It seems that you are using C# language. Please check https://github.com/ringcentral/RingCentral.Net/tree/master/RingCentral.Net.WebSocket

You cannot create websocket subscription via RestAPI. So you'd better use the official SDK extension I provided above.

And yes, app permission is required. Please create a ticket to request for permission: https://developers.ringcentral.com/support/create-case

This feature is not yet fully public so you cannot add this permission yourself.


3 replies

PhongVu
Community Manager
Community Manager
May 19, 2023

The transportType must be "WebHook", not "WebSocket"

{
    transportType = "WebHook",
    address = "https://...."
};

If you still face problem, please refer to this quick start for a full demo project.

Employee
May 19, 2023

Disregard my answer if you want WebHook instead of WebSocket.

It seems that you are using C# language. Please check https://github.com/ringcentral/RingCentral.Net/tree/master/RingCentral.Net.WebSocket

You cannot create websocket subscription via RestAPI. So you'd better use the official SDK extension I provided above.

And yes, app permission is required. Please create a ticket to request for permission: https://developers.ringcentral.com/support/create-case

This feature is not yet fully public so you cannot add this permission yourself.


ajonesThe First StepAuthor
The First Step
May 22, 2023

I am taking your advice and requesting permission for this feature via:

https://developers.ringcentral.com/support/create-case

Thank you.