Mautic Community Forums

Mautic REST API where clause is unclear

The API Docs specifically call out the ability to send over complex selection criteria for contacts using the where clause. It says that “This design allows to add multiple conditions in the same request.” But it’s not at all clear how to add multiple conditions and how to build the corresponding query string. I guessed you could just add to the array for an AND clause, and that did indeed work; however, I can’t figure out how to build an OR clause. Can anyone share what a sample OR clause would look like as a query string and/or what it would look like in PHP?