Notification

Send mention notifications to mentioned users

POST
/api/notifications/mentions

Fan-out helper called by note/comment surfaces when one or more @user mentions are detected. Creates a notification per mentioned user (excluding the author) and returns the recipient list.

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

curl -X POST "https://example.com/api/notifications/mentions" \  -H "Content-Type: application/json" \  -d '{    "contactId": "65c2d0e0f0a0b0c0d0e0f0a0",    "mentions": [      "65b1f0a2c3d4e5f6a7b8c9d0",      "65b1f0a2c3d4e5f6a7b8c9d1"    ],    "noteContent": "@alice @brenda please review this lead",    "authorName": "Cory Tan"  }'
{  "success": true,  "message": "Mention notifications sent",  "notifications": 2,  "recipients": [    "65b1f0a2c3d4e5f6a7b8c9d0",    "65b1f0a2c3d4e5f6a7b8c9d1"  ]}