I am using ActiveCampaign API to list all contacts from account, but API returns only contacts which has at-least one lists assigned. My account contains around 159 contacts with 'has records' tag assigned, out of which 133 contacts has no lists assigned. When I run API call, it will return only 26 contacts (With atleast one lists assigned). I even tried 'filters[listid]' params.
I need to fetch all the contacts even if they don't have any lists assigned to them. Is there any way to achieve this?
Here is sample API call
$ac = new ActiveCampaign(<ACTIVECAMPAIGN_URL>, <ACTIVECAMPAIGN_API_KEY>);
$params = array(
'api_key' => <ACTIVECAMPAIGN_API_KEY>,
'api_action' => 'contact_list',
'api_output' => 'json',
'filters[tagname]' => 'has records',
'full' => '0',
'page' => '2'
);
$results = (array) $ac->api('contact/list?'.http_build_query($params), $params);