# Create

## Create a Note

<mark style="color:green;">`POST`</mark> `https://{{account_id}}.acquire.io/api/v1/crm/note/create?contactId={{contactId}}`

Create a note. The **contact\_id** must be passed in to the body as a query parameter. The body must contain a `"type"` key set to `"note"`. \ <br>

#### Query Parameters

| Name                                        | Type    | Description      |
| ------------------------------------------- | ------- | ---------------- |
| contactId<mark style="color:red;">\*</mark> | integer | The contact's ID |

#### Headers

| Name                                            | Type   | Description         |
| ----------------------------------------------- | ------ | ------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer {{API\_KEY}} |

#### Request Body

| Name         | Type   | Description                                     |
| ------------ | ------ | ----------------------------------------------- |
| mentionUsers | array  | Array of integers. Mention userIds in the note. |
| message      | string | Message of the note                             |
| description  | string | A description for the note                      |
| title        | string | Title for the note                              |
| type         | string | "note"                                          |

{% tabs %}
{% tab title="200 " %}

```
{
  "data": {
    "contactId": "90",
    "userId": 1,
    "title": "this is test note title",
    "description": "this is test note description",
    "type": "note",
    "dateCreated": "2021-03-11T11:47:51.874Z",
    "id": 13,
    "users": [
      {
        "note": {
          "contactId": "90",
          "userId": 1,
          "title": "this is test note title",
          "description": "this is test note description",
          "type": "note",
          "dateCreated": "2021-03-11T11:47:51.874Z",
          "id": 13
        },
        "userId": 1
      }
    ],
    "lastMessage": {
      "userId": 1,
      "message": "this is test note",
      "type": "message",
      "parentId": null,
      "dateCreated": "2021-03-11T11:47:52.000Z",
      "note": {
        "id": 13,
        "contactId": 90,
        "userId": 1,
        "type": "note",
        "title": "this is test note title",
        "description": "this is test note description",
        "dateCreated": "2021-03-11T11:47:52.000Z"
      },
      "id": 15,
      "user": {
        "departments": [],
        "roles": [],
        "id": 1,
        "name": "Surendra Suthar",
        "firstName": "Surendra Suthar",
        "lastName": "",
        "photo": "https://uat-drive.acquire.io/suthar/media/2020/10/IMG_2353-(3)-201aff39871a8ccc0f3e9ff0.jpg",
        "email": "surendra@acquire.io",
        "clientId": "",
        "parentId": 0,
        "type": "user",
        "accessLevel": null
      }
    }
  }
}
```

{% endtab %}
{% endtabs %}

**Body (raw)**

```
{
  "type": "note",
  "title": "this is test note title",
  "description": "this is test note description",
  "message": "this is test note",
  "mentionUsers": [
    "00"
  ]
}
```
