Appearance
Notifications API โ
Manage notification popups (the small review/feed popups shown on the front end).
Base URL: https://your-site.com/wp-json/wpsocialreviews/v2
Policy: NotificationsPolicy
Handler: NotificationsController.
List Notifications โ
GET/notificationsHandler: @index
| Parameter | Type | Location | Required | Description |
|---|---|---|---|---|
search | string | query | No | Search text |
filter | string | query | No | Platform filter |
order_by | string | query | No | Sort direction |
Response โ
json
{
"message": "success",
"items": { "data": [], "total": 0 },
"total_items": 0,
"all_valid_platforms": {}
}Create ยท Status ยท Duplicate ยท Delete โ
| Action | Method | Endpoint | Handler | Inputs | Response |
|---|---|---|---|---|---|
| Create | POST | /notifications | @create | platform, onboarding (bool) | { "template_id": 91 } |
| Status | PUT | /notifications | @update | ids[], status | { "message" } |
| Duplicate | POST | /notifications/duplicate | @duplicate | ids[] | { "message", "item", "item_id" } |
| Delete | DELETE | /notifications | @delete | ids[] | { "message" } |

