# API - Adding note not showing up

**URL:** <https://community.hubspot.com/t/api-adding-note-not-showing-up/11265>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [October 12, 2018, 5:19pm UTC](https://community.hubspot.com/t/api-adding-note-not-showing-up/11265 "2018-10-12T17:19:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpaullewer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jpaullewer/32/61905_2.png) [@jpaullewer](https://community.hubspot.com/u/jpaullewer)\
**Post date:** [October 12, 2018, 5:19pm UTC](https://community.hubspot.com/t/api-adding-note-not-showing-up/11265/1 "2018-10-12T17:19:57Z")

</div>

I got the following success message, but can’t find the test note I created under the contact:

errors: , status\_code: 200array(4) { [“engagement”]=\> array(8) { [“id”]=\> int(1335691001) [“portalId”]=\> int(2427637) [“active”]=\> bool(true) [“createdAt”]=\> float(1539364444441) [“lastUpdated”]=\> float(1539364444441) [“ownerId”]=\> int(0) [“type”]=\> string(4) “NOTE” [“timestamp”]=\> int(1539364444) } [“associations”]=\> array(8) { [“contactIds”]=\> array(1) { [0]=\> int(4472251) } [“companyIds”]=\> array(1) { [0]=\> int(183147166) } [“dealIds”]=\> array(0) { } [“ownerIds”]=\> array(0) { } [“workflowIds”]=\> array(0) { } [“ticketIds”]=\> array(0) { } [“contentIds”]=\> array(0) { } [“quoteIds”]=\> array(0) { } } [“attachments”]=\> array(0) { } [“metadata”]=\> array(1) { [“body”]=\> string(18) “note body from PHP” } }

I made sure to add the association. Thoughts?

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [October 12, 2018, 5:57pm UTC](https://community.hubspot.com/t/api-adding-note-not-showing-up/11265/2 "2018-10-12T17:57:00Z")

</div>

Hi @jpaullewer,

You included the `timestamp` value `1539364444` which logged the notes in 1970:

[

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/d/cd19fd4f763cf434df9e98c0064f5dfdce362e42.jpeg)

Notes created.jpg1070x1198 110 KB

]([https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/f/f4479d22c3d9eccab2d495bf18bc8e9988d998b4.jpeg](https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/f/f4479d22c3d9eccab2d495bf18bc8e9988d998b4.jpeg))

---

<div class="post-metadata">

**Author:** ![jpaullewer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jpaullewer/32/61905_2.png) [@jpaullewer](https://community.hubspot.com/u/jpaullewer)\
**Post date:** [October 12, 2018, 5:57pm UTC](https://community.hubspot.com/t/api-adding-note-not-showing-up/11265/3 "2018-10-12T17:57:37Z")

</div>

What format should I use then? I’m doing everything through PHP

$today=new DateTime();  
$currentTimeStamp=$today-\>getTimestamp();

---

<div class="post-metadata">

**Author:** ![jpaullewer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jpaullewer/32/61905_2.png) [@jpaullewer](https://community.hubspot.com/u/jpaullewer)\
**Post date:** [October 12, 2018, 5:57pm UTC](https://community.hubspot.com/t/api-adding-note-not-showing-up/11265/4 "2018-10-12T17:57:02Z")

</div>

Please disregard this issue. I’m not using the correct timestamp format. I’ll have to look into how to format those when doing an import. I could use some help with that though…

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [October 12, 2018, 5:58pm UTC](https://community.hubspot.com/t/api-adding-note-not-showing-up/11265/5 "2018-10-12T17:58:58Z")

</div>

Hey @jpaullewer,

Happy to clarify. Make sure your timestamps are in _milliseconds_, per [this documentation](https://developers.hubspot.com/docs/faq/how-should-timestamps-be-formatted-for-hubspots-apis).

---

<div class="post-metadata">

**Author:** ![jpaullewer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jpaullewer/32/61905_2.png) [@jpaullewer](https://community.hubspot.com/u/jpaullewer)\
**Post date:** [October 12, 2018, 6:01pm UTC](https://community.hubspot.com/t/api-adding-note-not-showing-up/11265/6 "2018-10-12T18:01:49Z")

</div>

I saw that, but based on what date?

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [October 12, 2018, 6:07pm UTC](https://community.hubspot.com/t/api-adding-note-not-showing-up/11265/7 "2018-10-12T18:07:17Z")

</div>

[UNIX Epoch time](https://en.wikipedia.org/wiki/Unix_time), which starts on January 1, 1970.

---

<div class="post-metadata">

**Author:** ![jpaullewer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jpaullewer/32/61905_2.png) [@jpaullewer](https://community.hubspot.com/u/jpaullewer)\
**Post date:** [October 12, 2018, 6:12pm UTC](https://community.hubspot.com/t/api-adding-note-not-showing-up/11265/8 "2018-10-12T18:12:16Z")

</div>

Thank you. I’m trying to get it using PHP and can’t nail down the correct date. I’ll see if there are any other threads that address this. Thank you.
