EnterpriseIntermediate
wp-rest-api
REST API routes/endpoints, schema, auth, and response shaping
Developer Setup
Setup & Installation
bash
npx skills add https://github.com/WordPress/agent-skills --skill wp-rest-apinpx skills add https://github.com/WordPress/agent-skills --skill wp-rest-apiOr paste this URL into your assistant to install:
Overview
What This Skill Does
REST API routes/endpoints, schema, auth, and response shaping
Application
When to use this Skill
- Integrating wp rest api into your development workflow.
- Following best practices for rest api routes/endpoints, schema, auth, and response shaping.
- Automating repetitive tasks with AI-assisted tooling.
- Building production-grade applications with proper standards.
- Debugging and troubleshooting common implementation issues.
Documentation
Show Skills.md file
WP REST API
When to use
Use this skill when you need to:
- create or update REST routes/endpoints
- debug 401/403/404 errors or permission/nonce issues
- add custom fields/meta to REST responses
- expose custom post types or taxonomies via REST
- implement schema + argument validation
- adjust response links/embedding/pagination
Inputs required
- Repo root + target plugin/theme/mu-plugin (path to entrypoint).
- Desired namespace + version (e.g.
my-plugin/v1) and routes. - Authentication mode (cookie + nonce vs application passwords vs auth plugin).
- Target WordPress version constraints (if below 6.9, call out).
Procedure
0) Triage and locate REST usage
- Run triage:
Lines 1 - 25 of 108
Recommendations