# Get logged email activity date via API

**URL:** <https://community.hubspot.com/t/get-logged-email-activity-date-via-api/115218>\
**Category:** Marketplace Apps\
**Tags:** integrations\
**Created:** [August 26, 2024, 3:54pm UTC](https://community.hubspot.com/t/get-logged-email-activity-date-via-api/115218 "2024-08-26T15:54:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Jim\_from\_Charik](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jim_from_charik/32/60913_2.png) [@Jim\_from\_Charik](https://community.hubspot.com/u/Jim_from_Charik)\
**Post date:** [August 29, 2024, 5:43pm UTC](https://community.hubspot.com/t/get-logged-email-activity-date-via-api/115218/4 "2024-08-29T17:43:56Z")

</div>

Hello [@mestopiñalesb](https://community.hubspot.com/t5/user/viewprofilepage/user-id/765608) ,

here is the code you got when you use Hubspot API :

```lia-code-sample
{
 "id": "32022843104",
 "properties": {
 "hs_createdate": "2024-08-29T17:11:29.843Z",
 "hs_email_headers": null,
 "hs_email_html": "<div style=\"\" dir=\"auto\" data-top-level=\"true\"><p style=\"margin:0;\">test email</p></div>",
 "hs_lastmodifieddate": "2024-08-29T17:11:29.843Z",
 "hs_object_id": "32022843104",
 "hs_timestamp": "2024-08-15T16:30:00Z"
 },
 "createdAt": "2024-08-29T17:11:29.843Z",
 "updatedAt": "2024-08-29T17:11:29.843Z",
 "archived": false
}

```

- hs\_timestamp : is the timedate you sent the email in my example 15th of august
- createAt : is the timedate you create the logged email in my example 29th of august

 ![Jim_from_Charik_0-1724952886450.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/8/d8c971535f7a194a8a7165c166641eb36473f1f2.png)

To do so, use this call (ENGAGEMENT API) of course this is an example, you need to adapt it a bit by changing email\_id and your APIKEY :

- **url = “[https://api.hubapi.com/crm/v3/objects/emails/{email\_id}?properties=hs\_email\_headers](https://api.hubapi.com/crm/v3/objects/emails/%7Bemail_id%7D?properties=hs_email_headers), hs\_email\_html,hs\_timestamp”**

If you ask yourself, but how can I get the logged email id ?

- Use search engagement with filters like owners, contacts, companies, dates, …
- Use get email list and you will have the X last one : [https://api.hubapi.com/crm/v3/objects/emails?limit=10&archived=false](https://api.hubapi.com/crm/v3/objects/emails?limit=10&archived=false))

Will it be my first “SOLVED” ???

---

_[View the full topic](https://community.hubspot.com/t/get-logged-email-activity-date-via-api/115218)._
