question

ashitvora avatar image
ashitvora asked ·

Unable to subscribe to notifications

I've an app where I'm requesting all the permissions but when I subscribe for notifications (webhook notifications), I get following error Client error: 'POST https://platform.devtest.ringcentral.com/restapi/v1.0/subscription' resulted in a '403 Forbidden' response: { "errorCode" : "SUB-410", "message" : "[ReadAccounts] application permission is required for the following event fi (truncated...)
topic-default
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

anton-nikitin avatar image
anton-nikitin answered ·
Ashit,

so, does your application have ReadAccounts permission? If not why can't you add it?

I assume you try to subscribe to account/extension change notifications, right?
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

ashitvora avatar image
ashitvora answered ·
It does have ReadAccounts permission.
Infact it has all the permissions.

Only difference is, initially it had only one and then I added all of them.
Does ringcentral take time to reflect changes in permissions?
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

ashitvora avatar image
ashitvora answered ·
This is what permissions screen looks like  http://screencast.com/t/ak8AoRtgAFwf
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

benjamin-dean avatar image
benjamin-dean answered ·
There is a bit of a delay as the API permissions sync up after a change is made, but I am unsure of precisely how much time it takes.
I've had it take 3-5 minutes to take complete effect.

You can tell if the API permission is ready for use by viewing the 'scope' property in the response payload while obtaining an access_token. 'scope' will contain a list of the API permissions which your application has been enabled with in Developer Portal.
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.