This app hasn't been granted all required scopes to make this call

I am using my Developer Key/Oauth Token to get all contacts in from my account.

I am following the instruction on this link:

However, I am not understanding why I need the mentioned scopes. I am just trying to get contacts and it looks like I have to upgrade to a paid plans to include some of these.

Hi @Venky1 ,
No scopes required, use below code fetching contacts list:
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => “https://api.hubapi.com/crm/v3/objects/contacts?limit=10&archived=false&hapikey=YOUR_HUBSPOT_API_KEY”,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => “”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “GET”,
CURLOPT_HTTPHEADER => array(
“accept: application/json”
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo “cURL Error #:” . $err;
} else {
echo $response;
}
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regards.

Hi - Thanks for that.

I am using python for the requests.

I tried this using the same request URL and the Developer API key from my Hubspot App page

However, I am getting the same errror. Not sure what I am doing wrong

I think I found the issue from one of the other threads

I was using a hapiKey from my developer account. Whereas I should be using the Hubspot portal hapikey (an account that has valid contacts)

I did that and it worked. thank you for your assistance..