Filter contacts module using email in V8 API

How can I filter a contact record using their email?

I’m following the API guide here but it only works for direct fields of the module. I already tried using email1 but it doesn’t work because emails is not stored directly to the contact module but is stored as a relationship to the email address module.