Skip to main content

The API returned an error code [400] invalid_grant - Grant credentials are invalid

  • March 1, 2024
  • 1 reply
  • 230 views

Hi Team,

I am getting The API returned an error code [400] invalid_grant - Grant credentials are invalid error while connect to BOX .

Authorization method : OAuth 2.0 (Server Authentication) with Client Credentials Authorization

My account is a paid account

1 reply

rbarbosa Box
  • Developer Advocate
  • 553 replies
  • March 11, 2024

Hi @bhavesh , welcome to the forum…


9 out of 10 times, folks, including myself, forget to send the CCG or JWT application to authorization, which might explain your situation.


In the developer console for your application, locate the Authorization tab and click the review and submit button. It looks like this:



Once you’ve done that, the administrator needs to approve the application. In the admin console, navigate to apps, and locate the custom apps amanager. From there authorize the application. Looks something like this:



At first glance and with the information you provided, this should do it.


Let us know.


Best regards


Rui


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings