question

Viresh V Pandit avatar image
Viresh V Pandit 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"
faxfax api
1 |1000

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

Anirban Sen Chowdhary avatar image
Anirban Sen Chowdhary 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 |1000

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 |1000

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.