Developers
WPSubscription Developer Hub
Every API spec, auth guide, and agent-readable resource WPSubscription publishes — at stable, predictable URLs.
Endpoint
POST https://{site}/wp-json/wpsubscription/v1/actionSupported actions
- cancel_subscription
- pause_subscription
- resume_subscription
- reactivate_subscription
- expire_subscription
- change_status
- trial_end
- payment_failed
REST API
One Endpoint, Eight Actions
WPSubscription exposes a single POST endpoint for the whole subscription lifecycle. It runs on your own WordPress site — wpsubscription.co publishes the spec and documentation only.
Endpoint
POST https://{site}/wp-json/wpsubscription/v1/actionAuthentication
Site-scoped API key in the JSON request body (api_key), generated in WP Admin → WPSubscription → Settings → API Settings. No OAuth, no dynamic client registration.
Supported actions
- cancel_subscription
- pause_subscription
- resume_subscription
- reactivate_subscription
- expire_subscription
- change_status
- trial_end
- payment_failed
Machine-Readable
Agent & Integration Resources
Point your client, crawler, or coding agent at any of these. All are served from the apex domain and are safe to fetch unauthenticated.
- OpenAPI 3.1
OpenAPI Specification
Full request and response schemas for the subscription API, including typed error codes and scoped permissions.
/.well-known/openapi.json - Markdown
Authentication Guide
How API keys are issued and scoped, what each key can and cannot reach, plus error shapes and rate-limit behaviour.
/auth.md - MCP server card
MCP Server Card
Read-only MCP server at /mcp answering pricing, feature, gateway, and API questions. No credentials required.
/.well-known/mcp/server-card.json - Agent Skills
Agent Skills Index
Discovery index for the wpsubscription-api skill, with a digest so clients can verify what they downloaded.
/.well-known/agent-skills/index.json - ARD catalog
AI Resource Catalog
Agentic Resource Discovery catalog listing every agent-facing resource on this domain in one fetch.
/.well-known/ai-catalog.json - RFC 9727
API Catalog
RFC 9727 linkset tying the API to its machine description and its human documentation.
/.well-known/api-catalog - llms.txt
llms.txt
Curated map of the site for language models — key pages, use cases, developer resources, and notable posts.
/llms.txt - Markdown
Design System
Colour tokens, typography, spacing, and component patterns for building in the WPSubscription visual style.
/design.md
Documentation
Guides, Releases, and Support
Prose documentation for the people behind the integration.
Full Documentation
Setup, configuration, and feature guides for the plugin.
REST API Guide
Worked examples of every subscription action, end to end.
Changelog
Release history for the free and Pro editions, with deprecation notices.
Developer Support
Reach the team when the spec does not answer your question.