question

riley-clegg145 avatar image
riley-clegg145 asked benjamin-dean answered

Invalid application type

I am attempting to access our client's call log and recordings via production api and I am getting the following output: "{'error_description': 'Invalid Application Type.', 'error': 'invalid_client'}". How can we fix this?

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.

benjamin-dean avatar image
benjamin-dean answered
Hi Riley,

Sorry to hear that you're running into issues, and I'm happy to help.

I have a few questions which will help isolate this quicker:
  1. What is your application name please?
  2. What permissions have you requested for this app please?
    You can view the list of permissions by selecting your app from this page: https://developers.ringcentral.com/my-account.html#/applications
    Then copy/paste, in your response, the list of all permissions as listed in Application Credentials -> Permissions
  3. What programming language are you using please?
  4. Are you using one of the RingCentral SDKs please?
  5. You said that you're attempting to fetch data from your client's production RingCentral account, have the API keys associated for your app been authorized for production access? Did you submit a request for production access for the respective app from within the Developer Portal?
  6. Could you provide me the full request (with headers) and the full response you received please? make sure to strip out any the values for: appKey, appSecret, Authorization header, username, password
Having the answers to these questions should provide the data I need to help you.
1 |3000

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
Hi Riley.

The reason is that your app is now authorized to work only with one RC Production account -- the account associated with your developer organization. Let us know what is your app/organization name, please. 
1 |3000

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

riley-clegg145 avatar image
riley-clegg145 answered
The org/app name: StataPile Inc/Statapile Portal How can we get access to our current and future clients?
1 |3000

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

vyshakhbabji avatar image
vyshakhbabji Deactivated answered
Hi Riley,

I assume you are trying to use the Sandbox app key and app secret for your production account.  please use production app key and app secret instead. 

Please read this article carefully and make changes accordingly. If you still have issues let us know.   https://devcommunity.ringcentral.com/ringcentraldev/topics/oauth-authentication-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.

riley-clegg145 avatar image
riley-clegg145 answered
Credentials are not the issue here because we can access our own call log in production. As per Anton, our application cannot access accounts outside of our own. We need to have the ability to access our current and future client accounts as we have been migrating them to ring central.
1 |3000

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
Yes, Anton is correct, your app is currently set to be a private app. This means that the production keys granted will only be able to access the associated account.

If you want to create an app which permits other access by your other clients, you'll want to create a  public app which implements three-legged oauth:
  1. Establishing a redirect URI to configure for the app on the Developer Portal
  2. Opening a browser window to the RingCentral authorization URI embedding the redirect URI
  3. Adding code to the redirect URI page to exchange the authorization code for an access token
An app which implements this workflow is able to handle multiple customer requests appropriately.
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