Mautic Community Forums

API: Search by email using "List Contacts"?

Hi,



I see the "Get Contact API call only works with the “contact id” value; can I use the "List Contacts API call to search for a user using their “email address”?



Thank you!

Hi,

I see the "Get Contact API call only works with the “contact id” value; can I use the "List Contacts API call to search for a user using their “email address”?

Thank you!

Yes, you can.
/api/contacts?search=emailToSearch