Scope and URL mismatch - API CallLogs

Hello guys,

I need to use route from PIPEDRIVE API, to create and update call logs, but always returns this error:

{“success”:false,“error”:“Scope and URL mismatch”,“errorCode”:403}

The Pipedrive Official client this not have updated to use this routes.
I wrote the following PHP code:

//The URL of the resource that is protected by Basic HTTP Authentication.
$url = '';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Accept: application/json',
    'Authorization: Bearer ' . Pipedrive\Configuration::$oAuthToken->accessToken
$response = curl_exec($ch);
echo $response;

But this code not working when i use oAuth authentication.
This works fine when use api_token, see:

Can you help us ?

Hi Felipe,

With API Token you wouldn’t be affected by Scope limitations so it makes sense it works with the token.

With OAuth, what Scopes are you using?

Hello David,

I am using all scopes with full access, including Admin scope.

Hey Felipe,

I didn’t notice previously that it was for CallLogs. At the moment, we don’t offer a Scope for this endpoint so it’s not possible to retrieve this info via an OAuth integration, but we are working to make this scope available soon.

We can enable this on a case-by-case basis. Is your plan to build a phone integration or are you just testing?
If you’re building an integration, please DM the account you’re building it on so I can enable this.

Hello David,
Not just for testing David. We are creating an commercial app for DirectCall … and will put on marketplace, when this app ready to use.

1 Like