Skip to content

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 /notifications

Handler: @index

ParameterTypeLocationRequiredDescription
searchstringqueryNoSearch text
filterstringqueryNoPlatform filter
order_bystringqueryNoSort direction

Response โ€‹

json
{
  "message": "success",
  "items": { "data": [], "total": 0 },
  "total_items": 0,
  "all_valid_platforms": {}
}

Create ยท Status ยท Duplicate ยท Delete โ€‹

ActionMethodEndpointHandlerInputsResponse
CreatePOST/notifications@createplatform, onboarding (bool){ "template_id": 91 }
StatusPUT/notifications@updateids[], status{ "message" }
DuplicatePOST/notifications/duplicate@duplicateids[]{ "message", "item", "item_id" }
DeleteDELETE/notifications@deleteids[]{ "message" }

WP Social Ninja Developer Documentation