Discover REST routes
discover_rest_routesList REST namespaces and routes registered by your WordPress site, including plugin-added ones, to verify available endpoints before making API calls.
Instructions
List the REST namespaces and routes the site actually registers, including those added by plugins. Use this before rest_api so you call routes that exist — WordPress route shapes vary between plugin versions and guessing wastes calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Filter routes by substring. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| namespace | No | Show routes under one namespace only, e.g. "wc/v3". |