Get All Persons API endpoint returns HTML Error
Here is the URL:
https://someservername.pipedrive.com/ap/v1/persons?api_token=somekeyvalue&filter_id=27
This is the filter JSON I used to create the filter with. It returned Success: true and id of 27
{
“name”: “checkPersonExists”,
“conditions”: {
“glue”:“and”,
“conditions”:[{
“glue”:“and”,
“conditions”: [{
“object”:“person”,
“field_id”:“1”,
“operator”:“LIKE ‘$%’”,
“value”:“c”,
“extra_value”:null
}]
}]
},
"type":"people"
}
I have also tried this payload:
{
“name”: “checkPersonExists”,
“conditions”: {
“glue”:“and”,
“conditions”:[
{
“glue”:“and”,
“conditions”: [
{
“object”:“person”,
“field_id”:“1”,
“operator”:“LIKE ‘$%’”,
“value”:“c”,
“extra_value”:null
}
]
},
{“glue”:“or”,“conditions”:}
]
},
"type":"people"
}
and then used the id returned to try on the same get all persons url, still returns HTML