Skip to content

Pages & Onboarding API โ€‹

Two small groups: pages (a page/post search used by admin pickers) and onboarding (the first-run setup wizard).

Base URL: https://your-site.com/wp-json/wpsocialreviews/v2


Pages โ€‹

Policy: PagesPolicy ยท Handler: PagesController

Search Pages โ€‹

GET /pages/search

Paginated page/post search for pickers (e.g. selecting a display location).

Handler: @search

ParameterTypeLocationRequiredDescription
searchstringqueryNoSearch text
pageintegerqueryNoPage number (default 1)
per_pageintegerqueryNoItems per page (default 20)
include_idsarrayqueryNoAlways include these IDs
post_typestringqueryNoRestrict to a post type

Returns the paginated result from Helper::searchPagesList.


Onboarding โ€‹

Policy: AdminPolicy ยท Handler: OnboardingController

MethodEndpointHandlerInputsResponse
GET/onboarding@indexโ€”{ "status", "data" } (platforms/templates/post types)
POST/onboarding@createsee below{ "status", "message" }
POST/onboarding/skip@skipโ€”{ "status", "message" }
GET/onboarding/config@getConfigโ€”{ "status", "data": { steps[], platform_config, settings } }

Complete onboarding โ€” POST /onboarding โ€‹

ParameterTypeRequiredDescription
platform_typesstring/arrayYesWhich platform families are being set up
platform_namestringYesThe chosen platform
templateobjectYes{ name, type }
review_platforms / feed_platforms / chat_platformsarrayNoSelected platforms
post_type, template_idmixedNoTarget display
subscribe_to_newsletter, share_databoolNoOpt-ins

WP Social Ninja Developer Documentation