Skip to main content
Question

BOX API is not working when CURL used "Grant credentials are invalid"

  • May 23, 2025
  • 3 replies
  • 29 views

Forum|alt.badge.img

Hi Team,

I tried to invoke Box api from curl but facing grant access issue

curl -i -X POST "https://api.box.com/oauth2/token" \
     -H "Content-Type: application/x-www-form-urlencoded" \
     -d "client_id=laxwqvlbbb61zkz7oj1np4d2dvsy8fes" \
     -d "client_secret=[xxxxxxxxx]" \
     -d "grant_type=client_credentials" \
     -d "box_subject_type=user"  \
     -d "box_subject_id=24730584636"

 

Response

 

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

Access: App level

Can someone provide the possible solution. 

3 replies

Forum|alt.badge.img

Hi,

Was your Box application recently created on a free developer account?

We had to temporarily disable some features on the free developer accounts.

It should be back soon.

Best regard


Forum|alt.badge.img

Hi,

@Rui Barbosa

Is this issue got resolved? I'm also getting the same issue. 

A reply would be appreciated.


Forum|alt.badge.img

Not yet.