Skip to main content

I have created a sandbox app. I am using RestClient api . With the credentials from my sandbox. Password is my Ringcentral account pasword.

restClient = new RestClient(RINGCENTRAL_CLIENTID, RINGCENTRAL_CLIENTSECRET, RINGCENTRAL_SERVER);

restClient.authorize(RINGCENTRAL_USERNAME, RINGCENTRAL_EXTENSION, RINGCENTRAL_PASSWORD);


I get error on authentication.

AceRoutingKey: sjc11-c01-ace11.1e06d9b3-8c80-11eb-971a-005056bb8878

11:27:09,559 ERROR [stderr] (test task-9) RoutingKey: SJC11P01

11:27:09,559 ERROR [stderr] (test task-9)

11:27:09,559 ERROR [stderr] (test task-9) {

11:27:09,559 ERROR [stderr] (test task-9) "error" : "invalid_grant",

11:27:09,559 ERROR [stderr] (test task-9) "errors" : [ {

11:27:09,559 ERROR [stderr] (test task-9) "errorCode" : "OAU-140",

11:27:09,559 ERROR [stderr] (test task-9) "message" : "Invalid resource owner credentials"

11:27:09,559 ERROR [stderr] (test task-9) } ],

11:27:09,559 ERROR [stderr] (test task-9) "error_description" : "Invalid resource owner credentials"

11:27:09,559 ERROR [stderr] (test task-9) }


Please let me know what is wrong here? I have setup the sanbox as per teh instruction specidfied for password authentication type.

You said "Password is my Ringcentral account pasword." Do you mean the user name and password you login the RingCentral dev portal at https://developers.ringcentral.com? If that is the case, it is wrong.

You can find our sandbox username from the dev portal by select the "Sandbox Accounts" option.


the user name is phone no. I copied the credentials from the JSON

{"RINGCENTRAL_CLIENTID":"G2IVTQIvRriGGO4QEiIt9Q","RINGCENTRAL_CLIENTSECRET":"Mx8cfv-kRLSpTP0RIB7wfQ43NGUOqjQfWS5_TAjxXU9A","RINGCENTRAL_SERVER":"https://platform.devtest.ringcentral.com","RINGCENTRAL_USERNAME":"+13128589132","RINGCENTRAL_EXTENSION":"101","RINGCENTRAL_PASSWORD":"<YOUR ACCOUNT PASSWORD>"}


What do you mean by Your account password? in credentials it just shows "Active". So i used my Ringcentral account pasword.


i changed my sandbox password and passing that password but get error when i use RestClient.java


Don't ask me. That was what you wrote

"I have created a sandbox app. I am using RestClient api . With the credentials from my sandbox. Password is my Ringcentral account pasword."


I looked for a sandbox account with this main company number "+13128589132" and found nothing. I doubt that this is the username for your dev portal, not your sandbox


Reply