Description
wp-rest-api is an agent skill for the WordPress REST API layer. It covers the full lifecycle from route registration to response shaping: registering custom routes and controller classes, validating request arguments with JSON Schema, managing authentication with nonces or application passwords, and exposing custom post types and taxonomies through REST endpoints. Rather than tracing WordPress hook order and schema rules by hand, the skill follows the sequence, and it covers edge cases that the official handbook puts in footnotes. Listed uses include registering a custom namespace endpoint to serve data to a decoupled React front end, exposing a custom post type in the wp/v2 namespace, validating arguments with a schema so bad input is rejected early, choosing between nonce and application password authentication, and shaping a response so that only the fields a client needs are returned. The skill is for developers who build APIs on WordPress for headless sites, mobile apps or block editor features. You install it with the skills command from the WordPress/agent-skills repository, and the source is public on GitHub.…
Highlights
- Custom routes and controller classes
- JSON Schema argument validation
- Nonce and application password authentication
- Custom post types and taxonomies in REST
- Response shaping for clients
Ratings & Reviews
No ratings yet
Be the first to rate WordPress/wp-rest-api.
People also visit
WordPress/wp-interactivity-api
Frontend interactivity with data-wp- directives and stores
WordPress/wp-rest-api FAQ
What does this skill do?
It guides building WordPress REST API routes, validation, authentication and response shaping.
How do I install it?
Run npx skills add https://github.com/WordPress/agent-skills --skill wp-rest-api, or paste the repository link and ask your coding assistant to install it.
Who is it for?
Developers building custom WordPress endpoints for headless front ends, apps or block editor features.
Which authentication methods does it cover?
Nonces and application passwords, as the page describes.
Is it free?
The skill is in a public repository on GitHub and the page shows no price, so it is open source.
What are the best WordPress/wp-rest-api alternatives?
Popular alternatives to WordPress/wp-rest-api include wp-rest-api, WordPress/wp-abilities-api and wp-abilities-audit. See all WordPress/wp-rest-api alternatives












