Skip to main content
Question

Grant credentials are invalid

  • May 22, 2025
  • 2 replies
  • 35 views

Forum|alt.badge.img

Hello,

I cannot successfully authenticate using the client_credentials grant type.  I am getting the error, "Grant credentials are invalid."  Here is the call that I'm making:

curl --location --request POST 'https://api.box.com/oauth2/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=jhct7cubn91eupoppam1jkekd4ym4iu8' \
--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>>'
 
Any ideas?  Thanks!
 
 

2 replies

Forum|alt.badge.img

I'm bumping this one?  Can anyone help with this?  What should I do about this issue?


Forum|alt.badge.img

Hi David

Can you confirm that the app you have created has been authorised in the admin console?

https://developer.box.com/guides/authorization/custom-app-approval/#server-authentication-apps

Rgds,

Peter Christensen, Platform Solutions Engineer, Box