Last updated 1 year ago
Was this helpful?
Show All notifications of current login user by token
curl -L \ --url 'https://cm.test/api/notifications'
{ "success": true, "message": "text", "data": "text" }
Clear all notifications of current user.
curl -L \ --request POST \ --url 'https://cm.test/api/notifications/clear' \ --header 'Content-Type: application/json' \ --data '{}'
{ "success": true, "message": "text", "data": [ "text" ] }
Delete Selected notifications by ID
curl -L \ --request DELETE \ --url 'https://cm.test/api/notifications/{id}/delete' \ --header 'Content-Type: application/json' \ --data '{}'
You can make the selected notification by id flag to be is_read=true
curl -L \ --request POST \ --url 'https://cm.test/api/notifications/{id}/read' \ --header 'Content-Type: application/json' \ --data '{}'
update notification token for FCM integration token
curl -L \ --request POST \ --url 'https://cm.test/api/notifications/toggle' \ --header 'Content-Type: application/json' \ --data '{ "token": null }'
{ "success": true, "message": "text", "body": [ "text" ] }