How to list emails by owner id

Hello,

I am trying to get Engagement - Email using HS Api.

Example request:
https://api.hubapi.com/crm/v3/objects/emails?limit=50&archived=false&properties=hs_email_status&properties=hs_email_text&properties=hs_email_subject&properties=hs_email_sender_email&properties=hs_email_to_email&associations=company&associations=contact&associations=deal

However, I would like to only get engagements created by a specific Agent, is this possible? I have tried adding owner_id and hubspot_owner_id and hs_owner_id as param but nothing worked.

Hey, @DTyburek :waving_hand: Welcome to our community! Have you tried using the Search API for this one? It allows you to search Engagements, use a filter like EQ, and include your specific properties in the request body.

Have fun building! — Jaycee

This did the trick, thank you!
ie, for some future readers reference

{
 "limit": 50,
 "properties": ["hs_email_subject", "hs_email_text", "hubspot_owner_id", "hs_email_direction", "hs_email_to_email"],
 "filterGroups":[
 {
 "filters":[
 {
 "propertyName": "hubspot_owner_id",
 "operator": "EQ",
 "value": "123456"
 }
 ]
 }
 ],
 "sorts": [
 {
 "propertyName": "hs_createdate",
 "direction": "DESCENDING"
 }
 ]
}