Skip to main content
Question

not able to create access token using client credential

  • May 23, 2025
  • 1 reply
  • 11 views

Forum|alt.badge.img

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
 

1 reply

Forum|alt.badge.img

Hi Soumya, 

Welcome to Box Community and glad to help!

Please take this inquiry to our specialists for better assistance and feel free to post here

Thanks for posting!