Skip to main content

I tried to create an access token using the following details



{


grant_type: ‘client_credentials’,


client_id: “2yuh6hjmzagiw5hr8tqhxvcqkcgyiw4c”,


client_secret: “my client secret”,


box_subject_type: ‘user’, //


box_subject_id: ‘my user id’, //



};



I am getting following error even after providing the correct credentials:


data: {


error: ‘invalid_grant’,


error_description: ‘Grant credentials are invalid’


}


my app setup is : 1.server authentication (Client credential)


2. app access only



please let me know how to resolve it

Hello ✋,



It looks like this application was made in a free account. Unfortunately, free accounts don’t have access to the admin console, and therefore cannot authorize applications.



With free accounts, the only auth type available is OAuth 2.0. If you’d like to use the other types, you will need to purchase a business plan or above - or if you already have access to a Box instance with a business plan or above license but don’t want to develop in production, check out how your admin can create you a sandbox.



Thanks,


Alex Box Developer Advocate 🥑


Thanks Sir, For responding to my query.


Reply