Filtered search contact by tags

Hi everyone,
I need to use /api/filtered_search/contact to get filtered data by tags.
How to write such a request correctly:

{
    "filter_rule": [
        {
            "attribute": "tags",
            "operator": "is_in",
            "value": "tag1"
        }
    ]
}

Thanks.

Hi @xauuu

Following is the format to apply filters based on the tags field in Freshsales,

"filter_rule":[{"attribute":"tag_ids","operator":"is_in","value":[11111,22222]}]

Here, you need to pass the id of the tags in the API call. You can not view the ID of the tag in the UI and so you can add the required tags to a sample contact in Freshsales and then GET that contact using API. The API response should have the IDs of those tags which you can later use in the filtered search API request.

Thanks

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.