We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Jun 10, 2022 1:55 PM - edited Jun 10, 2022 1:56 PM
I need to retrieve all notes associated with a contact id. I am using Integromat + Custom API Call, easy to experiment with.
The hubspot engagement note documentation is hard for me to follow.
Where do I put the contact id?
Solved! Go to Solution.
Jun 10, 2022 2:09 PM - edited Jun 10, 2022 2:12 PM
Hi @jaysonb,
You have two options here:
Option 1:
Get the associated note ids on the contact
https://developers.hubspot.com/docs/api/crm/associations/v3
Post /crm/v3/associations/contact/note/batch/read
{"inputs": [{
"id": "457501"
}]}
Which will return:
{ "status": "COMPLETE", "results": [ { "from": { "id": "457501" }, "to": [ { "id": "22570614037", "type": "contact_to_note" }, { "id": "22570614134", "type": "contact_to_note" } ] } ], "startedAt": "2022-06-10T18:00:15.317Z", "completedAt": "2022-06-10T18:00:15.338Z" }
Then batch get the note properties
https://developers.hubspot.com/docs/api/crm/notes
Post /crm/v3/objects/notes/batch/read
{"inputs": [
{"id": "22570614037"},
{"id": "22570614134"}
], "properties":["hs_note_body"]}
Which will return the details of the notes.
Option 2:
Post the search api
https://developers.hubspot.com/docs/api/crm/search
Post /crm/v3/objects/notes/search
{"filters":
[{"propertyName":"associations.contact","operator":"EQ","value":"457501"}],
"properties":["hs_note_body"]}
Which will return the details of the notes.
It may seem like option 2 is clearly better, but the search api has a seperate 4 per second api limit(seperate from all other requests). While the other two requests share the same 10 or 15(tier depending) api limit of all other requests.
Best,
✔️ Was I able to help answer your question? Help the community by marking it as a solution.
![]() | Joshua Beatty Still have questions? Let's Talk |
Jun 10, 2022 2:09 PM - edited Jun 10, 2022 2:12 PM
Hi @jaysonb,
You have two options here:
Option 1:
Get the associated note ids on the contact
https://developers.hubspot.com/docs/api/crm/associations/v3
Post /crm/v3/associations/contact/note/batch/read
{"inputs": [{
"id": "457501"
}]}
Which will return:
{ "status": "COMPLETE", "results": [ { "from": { "id": "457501" }, "to": [ { "id": "22570614037", "type": "contact_to_note" }, { "id": "22570614134", "type": "contact_to_note" } ] } ], "startedAt": "2022-06-10T18:00:15.317Z", "completedAt": "2022-06-10T18:00:15.338Z" }
Then batch get the note properties
https://developers.hubspot.com/docs/api/crm/notes
Post /crm/v3/objects/notes/batch/read
{"inputs": [
{"id": "22570614037"},
{"id": "22570614134"}
], "properties":["hs_note_body"]}
Which will return the details of the notes.
Option 2:
Post the search api
https://developers.hubspot.com/docs/api/crm/search
Post /crm/v3/objects/notes/search
{"filters":
[{"propertyName":"associations.contact","operator":"EQ","value":"457501"}],
"properties":["hs_note_body"]}
Which will return the details of the notes.
It may seem like option 2 is clearly better, but the search api has a seperate 4 per second api limit(seperate from all other requests). While the other two requests share the same 10 or 15(tier depending) api limit of all other requests.
Best,
✔️ Was I able to help answer your question? Help the community by marking it as a solution.
![]() | Joshua Beatty Still have questions? Let's Talk |
Jun 10, 2022 2:25 PM
Dude. Thank You!
I didnt see any of this in the documentation 🙂
Got your first option at least working in seconds. You put me on the right track!!!