Get All Persons API endpoint returns HTML Error

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

hey @pipedrivefan,

Please, make sure all attributes in the URL are correct and you have no typos. For example, in your provided URL an “I” is missing in the .com/api/v1/... part.

I’ve just tested to be sure the endpoint works. Everything seems to be ok on our end. Additionally, you can provide the correlation-id of your call if you are certain you are calling the API correctly.

Hi Jakub, thanks for the quick reply. No wonder…it was late at night over here where I am on West coast United States. What a silly mistake, thanks for pointing it out! It works now!