I have a requirement to filter contacts from freshdesk based on custom field values which are of field types number and date field.
Had been trying with few combinations but unable to fetch the contacts getting invalid_field. Here are a couple of sample queries which i had tried with but unsuccessful.
I tried the same API and it seems to work for me. Can you please try this
Check if the custom field is returning in the response - curl -v -u <API_KEY>:X -X GET https://<domain>.freshdesk.com/api/v2/contact_fields
Then try using the query API with the same custom field name (case sensitive)- curl -v -u <API_KEY>:X -X GET 'https://<domain>.freshdesk.com/api/v2/search/contacts?query="your_custom_field_name:value"'
Ya now it works. A bit weird why it didn’t work for the fields i had created earlier.
If you can try to create a field with name Test field 1 and see if the API works.