# Create Note using API

**URL:** <https://community.hubspot.com/t/create-note-using-api/96707>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [December 23, 2023, 5:39pm UTC](https://community.hubspot.com/t/create-note-using-api/96707 "2023-12-23T17:39:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RDeshpande8](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@RDeshpande8](https://community.hubspot.com/u/RDeshpande8)\
**Post date:** [December 23, 2023, 5:39pm UTC](https://community.hubspot.com/t/create-note-using-api/96707/1 "2023-12-23T17:39:52Z")

</div>

I want to create the note using the API and then associate it with the contact  
this is using [tray.io](http://tray.io)  
I’m using http connector in tray for hubSpot to make a full url  
url: [https://api.hubapi.com/crm/v3/contacts/notes](https://api.hubapi.com/crm/v3/contacts/notes)  
then I made the queery parameter that is the association code  
“associations”: [  
{  
“to”: {  
“id”: “151”  
},  
“types”: [  
{  
“associationCategory”: “HUBSPOT\_DEFINED”,  
“associationTypeId”: 202  
}  
]  
}  
]  
and the payload that Im using is

{

“requestor”: “ivr”,

“appname”: {

```
 "hs\_timestamp": "2021-11-12T15:48:22Z",

 "hs\_note\_body": "Spoke with decision maker Carla. Attached the proposal and draft of contract."

```

},

“integration”: {

```
"relatedObjectType": "contacts",

"relatedObjectId": "151",

"makePrivate": false

```

}

}

but this is giving the error  
error :  
“response”: {  
“statusCode”: 404,  
“body”: “”  
},  
“expects”: {  
“statusCode”: [  
200,  
201,  
202,  
204  
]  
},  
“message”: “Not found. Looks like this has been removed.”  
}

 ![RDeshpande8_0-1703353115251.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/d/ad3e7a8c1204993df8d72dec84422c092d7115e0.png)

this connector Im using in tray to make this note and associate it with the contact
