Skip to main content
Question

BOX API: Grant credentials are invalid

  • May 22, 2025
  • 1 reply
  • 19 views

Forum|alt.badge.img

I have created a Client Grant type application in our company Box application.

When trying to connect to it, I am getting following error:

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>"

On trying this, I am getting the below error:

{"error":"invalid_grant","error_description":"Grant credentials are invalid"}

I read that there was a bug relating to this. Is it still a bug now?

My client_id is l5d6mudnfv8xj4rpqe448djixre01nn5

I am choosing App + Enterprise Access

1 reply

Forum|alt.badge.img

Hello, 

I took a look on the backend and it does not appear that the bug is affecting your application. Can you please tell me if you are still receiving this error? 

Best,

Kourtney, Box Developer Advocate