Freshsales CRM API Find contact by email

I’m trying to look up a contact via the /crm/sales/contacts api, but the documentation doesn’t show how to lookup by email or any other attribute. It only shows how to fetch a contact using the ID. But I don’t know the ID, I only know my reference ID and my user’s email address. Has anyone else been able to successfully search for a contact via the /crm/sales/contacts api with a query parameter such as ?email=guy%40example.com?

When I try to cURL the API with my API token listed under API for CRM I get this error:

{"errors":{"code":403,"message":["You are not authorized to perform this operation."]}}%  

cURL sample command:

curl -H "Authorization: Token token=REDACTED" -H "Content-Type: application/json" -X GET https://REDACTED.myfreshworks.com/crm/sales/api/contacts\?email\=guy%40example.com

I found the solution. You have to use the search API.

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