AVM
January 29, 2024, 11:22am
1
Hi, I am doing and integration and I need to retrieve all today’s personal emails. I have found this endpoint: POST /crm/v3/objects/emails/search
But I don’t know what I need to send as params to get the wished result. Any idea?
I have tried to attach these params to try but I got nothing:
HI, @AVM Did you get this worked out? If not, can you share your example request as a code block in your reply? This makes it easier for our community members or me to try to reproduce the issue you are experiencing.
Thank you! — Jaycee
AVM
February 1, 2024, 10:41am
3
Hi, No I didn’t. OK, here my curl:
curl --location 'https://api.hubapi.com/crm/v3/objects/emails/search' \
--header 'Authorization: Bearer ********' \
--header 'Content-Type: application/json' \
--data '{
"limit": 3,
"after": 0,
"sorts": [
"1"
],
"properties": [
"id",
"hs_email_subject"
],
"filterGroups": [
{
"filters": [
{
"propertyName": "hs_timestamp",
"value": "2024-01-01",
"operator": "GT"
}
]
}
]
}'