Custom Notifications API

List Notifications

Endpoint: POST /notifications/list



            curl -X POST {{base_url}}/notifications/list \
            -H "Content-Type: application/json" \
            -d '{
                "page": 1,
                "limit": 10
            }'
            
        
Response Example: { "status": 1, "data": [ // Array of notifications ], "pagination": { "total": 100, "page": 1, "limit": 10, "pages": 10 } }

Delete Notification

Endpoint: POST /notifications/delete


curl -X POST {{base_url}}/notifications/delete \
-H "Content-Type: application/json" \
-d '{
    "notification_id": 1
}'
        

This command marks the specified notification as deleted.

Mark Notification as Read

Endpoint: POST /notifications/read


curl -X POST {{base_url}}/notifications/read \
-H "Content-Type: application/json" \
-d '{
    "notification_id": 1
}'
        

This command marks the specified notification as read.