News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
API Error OAU-222 Account does not exist
Tags: authentication
Dec 2, 2020 at 4:03am   •   2 replies  •  1 likes
angq fasq

Hi, we try to authenticate through Authorization Code Flow and we get the error OAU-222 when calling the following request and using the required parameters and authenticate with HTTP Basic scheme using the client ID and client secret as login and password, correspondingly .

POST /restapi/oauth/token


We have a developer account and sandbox account and have created the app. We call the API to get the authorization code, we log in with our sandbox user and get the code correctly. However, when we call the token request to get the access token I get the error.

This is the response we get:


    "error": "invalid_grant",

    "errors": [


            "errorCode": "OAU-222",

            "message": "Account does not exist"



    "error_description": "Account does not exist"


Is there something else we need to do in our sandbox account? This doesn't make any sense since we can login successfully in order to receive an authorization code. Thank you.

2 Answers
answered on Dec 3, 2020 at 2:14am  

Thanks. By digging in the JavaScript code in the examples we figured out that the problem was in the scoping and using the body parameters. The documentation seems a bit confusing.

answered on Dec 2, 2020 at 4:26am  


A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

Resource center
Product Releases
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us