The Agent REST API is a token-authenticated alternative to MCP, introduced in SchemaWP 1.2.0. It exposes the same tools, the same session briefing, and the same History auditing as the MCP server — but over plain REST, so any agent that can make HTTP requests can use it, no MCP support required.
Creating a connection
- Go to SchemaWP → Connections and select API as the connection method
- Give the connection a friendly name and click Create Connection
- Copy the generated connection brief — it contains the site URL, the API base URL, the Bearer token, and the required session workflow. The token is shown once; only its prefix remains visible afterwards
- Paste the brief into your AI chat — that’s the whole setup
Active connections are listed in the Connections sidebar, where each token can be revoked at any time.
Authentication
Every request carries the token in the Authorization header:
Authorization: Bearer scwp_…
Endpoints
The API lives under:
https://yoursite.com/wp-json/scwp-agent/v1
GET /bootstrap— session briefing:core_rules(the same ACSS identity, constraints, and procedures MCP delivers oninitialize.instructions), plus the required workflowGET /instructions— the full ACSS core design-system rules (fallback if bootstrap was skipped or truncated)GET /capabilities— enabled operations with their fullinputSchema(REST equivalent of MCPtools/list)GET /context— current site contextGET /history— recent patch history (limitparameter, default 10)POST /actions/{tool}— run a tool with a JSON body of arguments, e.g.POST /actions/schemawp_acss_get_config
Session workflow
The connection brief instructs the agent to follow the same session order as MCP:
- Call
GET /bootstraponce at session start and treatcore_rulesas the system prompt - Call
GET /capabilitiesto discover operations and schemas; if the catalog is truncated,POST /actions/schemawp_acss_get_tool_schema - Before any writes:
GET /contextandGET /history - Load domain skills (
POST /actions/schemawp_acss_get_skill) and read current values (POST /actions/schemawp_acss_get_config) before patching - Run mutations with
POST /actions/{tool}— History is the source of truth for what changed
Notes
- The available operations mirror the Agent Tools toggles in SchemaWP Settings — tools disabled there are absent from
/capabilitieson all surfaces - All mutating calls are audited in Patch History, exactly like MCP tool calls
- The Agent REST API works on WordPress 6.7+ — it does not require the Abilities API