Error: 'Scope and URL mismatch',

while getAlllLeadLabels I endup with this error
data: {
success: false,
error: ‘Scope and URL mismatch’,
errorCode: 403,
error_info: ‘Please check developers.pipedrive.com
}

Hi Tharik,

I’ve tested this endpoint now and it responds with the correct list of labels. Can you share more details on

  • How you send the request
  • and which scopes have you requested when creating the access_token in case of OAuth authorization?
curl --request GET 'https://api.pipedrive.com/v1/leadLabels?api_token=<TOKEN>
 --header 'Accept: application/json'

{
  "success": true,
  "data": [
    {
      "id": "fd193420-865d-11eb-a400-93b4a38c3689",
      "name": "Hot",
      "color": "red",
      "add_time": "2021-03-16T13:46:20.000Z",
      "update_time": "2021-03-16T13:46:20.000Z"
    },
    {
      "id": "fd195b30-865d-11eb-a400-93b4a38c3689",
      "name": "Cold",
      "color": "blue",
      "add_time": "2021-03-16T13:46:20.000Z",
      "update_time": "2021-03-16T13:46:20.000Z"
    },
    {
      "id": "fd195b31-865d-11eb-a400-93b4a38c3689",
      "name": "Warm",
      "color": "yellow",
      "add_time": "2021-03-16T13:46:20.000Z",
      "update_time": "2021-03-16T13:46:20.000Z"
    }
  ]
}