How to Check WordPress REST API Discovery Read-Only
Start from a public page on a site you manage and inspect the REST discovery link or HTTP Link header when present. It can identify the site’s actual API root, including a subdirectory or alternate route. Request only the public index using GET. Record the final URL, HTTP status and whether the response is a JSON document with the expected site and namespace information.
Compare that result to the failure in the block editor or an integration. If the index works, examine the exact authorized request in your own browser developer tools and record its status and route without copying cookies or nonces. A discovery failure, a legitimate authorization response and a server error are different outcomes. If a proxy returns an HTML challenge instead of JSON, check its logs and supported behavior on staging.
Use a minimal staging reproduction before changing a plugin or access rule. Preserve authentication for private resources. Confirm the original operation succeeds and recheck signed-out behavior after the fix so working editor access does not expose endpoints that were meant to stay private.
If a public route works and only signed-in requests fail, diagnose signed-in REST nonce and cache failures with an authorized staging account.
Related guides
Official references
Ferkesh Hosting. Last reviewed .
Спасибі за відгук!