Grant credentials are invalid Hello, I've created an app using Laravel and I'm getting the error {"error":"invalid_grant","error_description":"Grant credentials are invalid"}. I have set the app's Access Level to Enterprise Access + app as per documentation. The code I am using in Laravel is:
$response = Http::asForm()->withHeaders([ 'content-type' => 'application/x-www-form-urlencoded'])->post('https://api.box.com/oauth2/token', [ 'client_id' => '*********************************', 'client_secret' => '*********************', 'grant_type' => 'client_credentials', 'box_subject_type' => 'enterprise', 'box_subject_id' => '****************']);
In the dashboard, my enterprise ID is equal to 0, so I think I should use the user ID. Thank you very much for the help.