# The difference between 'CreatedAt' and 'timestamp' in Engagement API

**URL:** <https://community.hubspot.com/t/the-difference-between-createdat-and-timestamp-in-engagement-api/16148>\
**Category:** APIs & Integrations\
**Created:** [September 9, 2019, 8:02am UTC](https://community.hubspot.com/t/the-difference-between-createdat-and-timestamp-in-engagement-api/16148 "2019-09-09T08:02:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noob](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/noob/32/43030_2.png) [@Noob](https://community.hubspot.com/u/Noob)\
**Post date:** [September 9, 2019, 8:02am UTC](https://community.hubspot.com/t/the-difference-between-createdat-and-timestamp-in-engagement-api/16148/1 "2019-09-09T08:02:35Z")

</div>

Can anyone teach me what the difference is between ‘CreatedAt’ and ‘timestamp’ in engagement API?

I read through the API docs, but still don’t fully understand the difference.

I found that in most caes CreatedAt is the same as timestamp, but in some cases they aren’t the same.

Thank you so much for reading my post.

---

<div class="post-metadata">

**Author:** ![lscanlan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lscanlan/32/66262_2.png) [@lscanlan](https://community.hubspot.com/u/lscanlan)\
**Post date:** [September 12, 2019, 5:29pm UTC](https://community.hubspot.com/t/the-difference-between-createdat-and-timestamp-in-engagement-api/16148/2 "2019-09-12T17:29:01Z")

</div>

Hi @Noob,

I think you’ll notice the difference when you go to create some engagements. Take a look here for example: [https://developers.hubspot.com/docs/methods/engagements/create\_engagement](https://developers.hubspot.com/docs/methods/engagements/create_engagement). There’s some sample JSON in the right sidebar, which includes a timestamp. And there’s also a description of the timestamp field on that page:

`Optional timestamp, should be used for logical ordering (e.g. when a call occurred, vs when it was last modified)`

So if you create a note engagement for example using the sample JSON on that page, you’ll get the engagement’s JSON back in the response. You’ll notice that the createdAt field is the time when the enagement itself was created. The timestamp field corresponds to when the engagement occurred.

Does that help explain it?

---

<div class="post-metadata">

**Author:** ![Noob](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/noob/32/43030_2.png) [@Noob](https://community.hubspot.com/u/Noob)\
**Post date:** [September 13, 2019, 4:25am UTC](https://community.hubspot.com/t/the-difference-between-createdat-and-timestamp-in-engagement-api/16148/3 "2019-09-13T04:25:58Z")

</div>

Thank you so much. It makes so much sense to me.
