What problem does it solve?
It helps you design, implement, and debug WordPress REST API endpoints safely and correctly, especially when authentication, schema validation, and REST routing details become confusing.
Core Features & Use Cases
- Native REST endpoint registration patterns: Guides you to use
rest_api_init, define register_rest_route() entries with permission_callback, and structure route callbacks properly (e.g., controller methods instead of closures).
- Schema and response correctness: Shows how to add argument schemas and return proper REST responses using
rest_ensure_response(), enabling reliable client-side integration and validation.
- Authentication and interoperability: Helps you choose the right auth approach (cookie +
X-WP-Nonce, Application Passwords, JWT via middleware) and coordinate REST with Acorn Routes for clear URL separation and non-duplicated resources.
- Debugging and verification: Provides checks for common failure modes like 401, 404/
rest_no_route, schema validation errors, and permalink/setup issues, plus a workflow for namespace discovery.
Quick Start
Use the superpowers-sage:wp-rest-api skill to implement a new custom endpoint under myapp/v1 and make it authenticated, schema-validated, and easy to debug.