Skip to navigation

Filter Parameters

Many resources accept filters and other parameters which can be simply passed in the GET query string. However, for more advanced filtering, like combining several conditions or filtering by custom fields, some resources also provide a POST .../list endpoint that accepts the same parameters in a JSON-encoded request body.

For example, the following two requests are equivalent:

curl -X POST \
-H 'licenseKey: yourlicensekey' \
-H 'appSecret: yourappsecret' \
-H 'content-type: application/json' \
-d '{"mode": "list", "pipeline_id": "THE_PIPELINE_ID", "search": "acme"}' \
https://api-dev.houseofapps.ai/v1/integrations/leads/list
curl -H 'licenseKey: yourlicensekey' \
-H 'appSecret: yourappsecret' \
'https://api-dev.houseofapps.ai/v1/integrations/leads?pipeline_id=THE_PIPELINE_ID&search=acme'

The POST .../list endpoints (leads, contacts, and companies) also accept dropdown_filters, a list of rules combined with match (all or any):

{
"mode": "list",
"match": "all",
"dropdown_filters": [
{
"field_id": "THE_CUSTOM_FIELD_ID",
"operator": "eq",
"values": ["Enterprise"]
}
]
}

Use GET /v1/integrations/filter-fields?entity_type=lead to get the fields you can filter on for your organization.