question

Brian N avatar image
Brian N asked Phong Vu answered

OAU-222 SandBox Account - Account does not exist

I am trying to authenticate, but i am getting OAU-222:

I follow this documentation: https://developers.ringcentral.com/guide/authentication/jwt-flow

App Name: RPA

Sandbox: +19293784076

HTTP Input:

{
                   
  "url": "https://platform.devtest.ringcentral.com/restapi/oauth/token",
  "body": "",
  "method": "POST",
  "headers": {
                   
    "Content-Type": "application/x-www-form-urlencoded",
    "Authorization": "Basic XXXX
  },
  "queryParams": {
                   
    "assertion": "JWT KEY",
    "grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer"
  }
}

Then I get this error:

{
                   
  "response": {
                   
    "status": 400,
    "body": {
                   
      "error": "invalid_grant",
      "errors": [
        {
                   
          "errorCode": "OAU-222",
          "message": "Account does not exist"
        }
      ],
      "error_description": "Account does not exist"
    }
  },
  "request": {
                   
    "body": ""
  }
}
authentication
1 |3000

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

1 Answer

Phong Vu avatar image
Phong Vu answered

How do you actually post the request?

This is not the way to post the body as the assertion and and grant_type are not query parameters!

"queryParams": {
    "assertion": "JWT KEY",
    "grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer"
  }
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