Skip to main content

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"

}

Welcome to the Forum, Ruben ! 🙂



Have you authorized the app in the admin console?


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.


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” :




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.


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.


Reply