Skip to main content
Solved

Error: Grant credentials are invalid


  • New Participant
  • 2 replies

I have created an application as the documentation says, but I always get this error.


https://developer.box.com/guides/authentication/client-credentials/


This is your documentation, can you help me?


This is my app client id: alhd08bt4pv1gt6n9i4ipi8andjscofb


curl -i -X POST "https://api.box.com/oauth2/token" \

-H"Content-Type: application/x-www-form-urlencoded"\

-d"client_id=alhd08bt4pv1gt6n9i4ipi8andjscofb"\

-d"client_secret=*****"\

-d"grant_type=client_credentials"\

-d"box_subject_type=user"\

-d"box_subject_id=2629647****"


Response


{

    "error": "invalid_grant",

    "error_description": "Grant credentials are invalid"

}

Best answer by CodeBoxSeb

Hi @Ruben


Indeed, you’ll need to upgrade your account to a Business tariff at least : https://www.box.com/en-gb/pricing/business


It will allow you to access the Admin console.

View original
Did this topic help you find an answer to your question?

5 replies

CodeBoxSeb
  • Participating Frequently
  • 58 replies
  • June 23, 2023

Welcome to the Forum, Ruben ! 🙂


Have you authorized the app in the admin console?


  • Author
  • New Participant
  • 2 replies
  • June 29, 2023

Thank you @CodeBoxSeb.


How can I authorized my app?


I try follow this guide, but in my admin console I don’t see the authorization tab.


CodeBoxSeb
  • Participating Frequently
  • 58 replies
  • June 29, 2023

Hi @Ruben


Be careful, it’s not the Authorization tab that you need to use.

If you go to your Admin Console, click on “Apps” on the left menu, and then, select “Custom Apps Manager” :



  • Author
  • New Participant
  • 2 replies
  • June 29, 2023

Hi @CodeBoxSeb


Thanks for your support 🙏, I see that you are in box admin but I only have access to

Principal box page and Box developer and I only see my apps in the second link, but this shows like a cards.



Do I need access to other site?


Actually I have a free account, I don’t know if this is the reason.


Thanks.


CodeBoxSeb
  • Participating Frequently
  • 58 replies
  • Answer
  • June 30, 2023

Hi @Ruben


Indeed, you’ll need to upgrade your account to a Business tariff at least : https://www.box.com/en-gb/pricing/business


It will allow you to access the Admin console.


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