skills.vishalvoidskills/vishalvoid
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-api

Overview

What This Skill Does

REST API routes/endpoints, schema, auth, and response shaping

Application

When to use this Skill

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

  1. Run triage:
Lines 1 - 25 of 108

Recommendations

Explore other random skills

All skillsMy patterns