WordPress REST API Not Working? Check Discovery Safely
On a WordPress site you manage, look for the https://api.w.org/ discovery relation in an HTTP Link header or the page head. Open the advertised URL with GET and note the final address, status and response type. Sites with pretty permalinks commonly use /wp-json/. WordPress can use /?rest_route=/ when pretty permalinks are off. Follow the advertised URL on a subdirectory or multisite installation.
| What you see | Next check |
|---|---|
| 200 with JSON and the expected namespaces | Discovery works. Check the exact editor or integration request under its intended authorization. |
| 404 at /wp-json/ | Compare the advertised URL and the site’s permalink configuration. |
| 401 or 403 | Check the authorization requirement of the exact route. Leave private routes protected. |
| HTML instead of JSON | Look for a login redirect or an intermediary error page. Compare the final URL and scoped site logs. |
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.
If you are evaluating a move after diagnosis, compare WordPress-compatible shared hosting. New orders are currently closed.
Related guides
Official references
Ferkesh Hosting. Last reviewed .
Ευχαριστίες για τα σχόλιά σας!