user_id
, org_id
, and content
as mandatory fields.agent_id
to link the notification contextually.curl --location -g --request POST 'https:///v2/api/notification' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_id": 147,
"agent_id": 1297,
"org_id": 1,
"content": "Testing Notification API"
}'
{
"success": true,
"message": "Notification created successfully.",
"data": {
"id": 71609,
"content": "Testing Notification API",
"is_read": false,
"created_on": "2025-02-04T19:11:39.239363Z",
"is_deleted": false,
"redirection_details": {},
"recipient": 147,
"org": 1,
"agent": 1297
}
}