Skip to main content

WordPress REST

Provider id: wp-rest · 2 tool(s).

wp_list_routes

List the WordPress REST REST routes registered under /wp/v2 and their HTTP methods. Optional "search" substring filter and "limit" (1-500, default 200). Use this to find a path for wp_request.

Passthrough router — available in every toolset profile.
Profiles: all profiles

Parameters

ParameterTypeRequiredDescription
searchstringnoOnly return routes whose path contains this substring.
limitintegernoMax routes to return (1-500, default 200).

wp_request

Call any WordPress REST REST route (scoped to /wp/v2). GET runs immediately; POST/PUT/PATCH/DELETE require "confirm": true, or pass "dry_run": true to preview the request. Use wp_list_routes to discover available paths.

Passthrough router — available in every toolset profile.
Profiles: all profiles

Parameters

ParameterTypeRequiredDescription
methodstringyesHTTP method: GET, POST, PUT, PATCH, or DELETE.
pathstringyesRoute path within /wp/v2, e.g. /wp/v2/contacts or /wp/v2/contacts/42.
bodyobjectnoRequest body for writes (JSON object).
queryobjectnoQuery-string arguments (JSON object).
confirmbooleannoRequired to execute a write (POST/PUT/PATCH/DELETE).