Search a contact by e-mail

Hello, is there any method to search for a contact by e-mail?



I’m trying like this:

Code:
$contactApi->getList('email:'.$email);

The problem is, if I type just 'italo' for example, the API will give me all the e-mails that has 'italo', it's like a 'where' using %LIKE%.

Thanks.

Hello, is there any method to search for a contact by e-mail?

I’m trying like this:

$contactApi->getList('email:'.$email);

The problem is, if I type just ‘italo’ for example, the API will give me all the e-mails that has ‘italo’, it’s like a ‘where’ using %LIKE%.

Thanks.

Looking around Mautic panel I found my answer:

[code]Search Operators:

  • (plus sign) - Search for the exact string (i.e. if admin, then administrator will not match)
    ! (exclamation mark) - Not equals string
    " " (double quotes) - Search by phrase
    ( ) (parentheses) - Group expressions together.
    OR - By default the expressions will be joined as AND statements. Use the OR operator to change that.

Search commands
is:anonymous
is:unowned
is:mine
email:*
segment:{segment_alias}
name:*
company:*
owner:*
ip:*
ids:ID1,ID2 (comma separated IDs, no spaces)
common:{segment_alias} + {segment_alias} + …[/code]