Contact Notes

Create a new contact note

POST
/api/contact-notes

Create a note on a contact. mentions triggers @-mention notifications to the listed userIds. attachments accepts R2 keys returned from POST /api/upload.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/contact-notes" \  -H "Content-Type: application/json" \  -d '{    "contactId": "65c2d0e0f0a0b0c0d0e0f0a0",    "note": "@alice please review the W2 attached.",    "mentions": [      "65b1f0a2c3d4e5f6a7b8c9d0"    ],    "attachments": [      {        "key": "orgs/65a0.../notes/w2.pdf",        "name": "w2.pdf",        "size": 121200,        "type": "application/pdf"      }    ]  }'
{  "success": true,  "message": "Contact note created",  "data": {    "_id": "67f0a0b0c0d0e0f0a0b0c0d0",    "userId": {      "_id": "65b1f0a2c3d4e5f6a7b8c9d3",      "fullName": "Cory Tan",      "email": "cory@example.com"    },    "note": "Spoke briefly; will follow up tomorrow.",    "attachments": [],    "reactions": [],    "isEdited": false,    "createdAt": "2026-05-18T14:00:00.000Z"  }}