Contact search api not return any results

I am trying to search contacts using the contact api search endpoint. I am using the api request body given below:

curl --request POST \
 --url 'https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=MY_HUBSPOT_API_KEY' \
 --header 'content-type: application/json' \
 --data '{
 "filterGroups": [
 {
 "filters": [
 {
 "value": "email_to_search@hubspot.com",
 "propertyName": "email",
 "operator": "EQ"
 }
 ]
 }
 ],
 "sorts": [
 "id"
 ],
 "query": "string",
 "properties": [
 "id"
 ],
 "limit": 3,
 "after": 0
}'

The above api call returns the following result:

{"total":0,"results":[]}

I have verified that a contact with the request email address exists by fetching the record using the list endpoint as well as through the web interface. In fact, I have tried using other property and there values as well. I do not get any results returned for them either. I am not sure if I am lacking some sort of permission or making a mistake while forming the request. I have also verified that using my api key I can create, update, and list contact records. I just can’t seem to make the search endpoint work. Any Help would be greatly appreciated!

Found the issue, I still had the query parameter. Works fine after removing that.