question

Viresh P avatar image
Viresh P asked Eric Mann answered

Getting "InsufficientPermissions" exception

I am trying to call API /restapi/v1.0/account/accountId/extension/extensionId/fax for send fax.

But I am getting exception:

"errorCode": "InsufficientPermissions",  
"message": "In order to call this API endpoint, application needs to have [Faxes] permission"
rest api
1 |3000

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

Anirban avatar image
Anirban answered

This is a permission issue happens when you call an API of an application that doesn't have that specific permission.

Check the following:

  • You are calling API of right application.
  • make sure that application you are calling have [Faxes] permission
1 |3000

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

Eric Mann avatar image
Eric Mann answered

This literally just happened to me with another application leveraging the [RingOut] permission. I'd mistakenly used an existing app in the sandbox that lacked that permission and saw the same error.

The fix is to:

  • Go into your account
  • Select the app you're trying to use
  • Click Settings in the list on the left-hand side
  • In the OAuth Settings towards the bottom, add the [Faxes] permission
  • Click Save

This worked to solve my immediate problem and might also help with yours.

1 |3000

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

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys