Skip to main content
The First Step
May 16, 2016 4:08 PM UTC
Question

400 Bad Request - Access denied [C#, HttpWebRequest]

Hello,

We are not using SDK. We are writing our library we need to get Access Toke. So we use C# then Httpwebrequest.


After passing all instructions on API DOCs we receiving

400 Bad Request - Access denied [C#, HttpWebRequest]


Could you help us.

Thank you

12 replies

New Participant
Jun 6, 2016 4:22 PM UTC
Thanks Benjamin for your help, now I receive a different response with different error code (400):
{
"error": "invalid_client"
"error_description": "Access Denied."
}

the credentials are the ones provided by my Dashboard after the login..




Found Your Voice
Jun 8, 2016 5:54 PM UTC
That error usually means that the User credentials you are using do not belong to the same application/account (which is required during the initial stages of development).

Check that the username, extension, and password, are all part of a User/Extension which is enabled and defined in your Sandbox account in the [Sandbox version] of the Online Account Portal: https://service.devtest.ringcentral.com