Skip to main content
Question

Error: Grant credentials are invalid

  • May 23, 2025
  • 3 replies
  • 29 views

Forum|alt.badge.img

Hello 

>>>>>

curl -L -X POST "https://<companyboxurl>/oauth2/token"
-H "Content-Type: application/x-www-form-urlencoded"
--data-urlencode "client_id=<client_id>"
--data-urlencode "client_secret=<client_secret>"
--data-urlencode "grant_type=client_credentials"
--data-urlencode "box_subject_type=enterprise"
--data-urlencode "box_subject_id=<enterprise_id>"
>>>>>>
I set up app like this

BOX2_1WFclwdDPNbqv4sbSJFzTA.png

my client id is fxwqim58fbefcy9uafv56o497yowjatg

thanks

 

3 replies

Forum|alt.badge.img

I am facing the same issue. Did you find any solution?


Forum|alt.badge.img

My issue got resolved after I completed the authorization process.

"Submit app for authorization for access to the Enterprise" 

 


Forum|alt.badge.img

What did you select for the application scope on the configuration page? App or App + Enterprise?