Search for email in your workspace using advanced filters. Supports filtering by email properties including ID, recipient, sender, status, type, subject, dates, and related entities (study, panel, participant, campaigns, teams, populations). Filters can be combined using AND/OR logic operators for complex queries.
Required permissions:
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Search for messages
Filter options to search for messages. Supports person, incentive, participant, and message property filters.
{
"operator": "AND",
"filters": [
{
"message": {
"propertyType": "SINGLE_SELECT",
"propertyName": "EMAIL_STATUS",
"operator": "IS",
"value": "DELIVERED"
}
},
{
"message": {
"propertyType": "DATETIME",
"propertyName": "SENT_AT",
"operator": "IS_WITHIN",
"value": "NUMBER_OF_DAYS_AGO",
"amount": 7
}
},
{
"person": {
"propertyType": "STRING",
"propertyName": "EMAIL",
"operator": "CONTAINS",
"value": "@example.com"
}
}
]
}Filter messages by study ID
Filter messages by team ID
Filter messages by sender user ID
Filter messages by population ID
Pagination arguments. Use startCursor from the result of the endCursor of the response to get the next page. Pagination in reverse is not currently supported
{ "size": 10 }