Developers
WPSubscription Developer Hub
Every API spec, auth guide, and agent-readable resource WPSubscription publishes — at stable, predictable URLs.
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 Specification
Full request and response schemas for the subscription API, including typed error codes and scoped permissions.
/.well-known/openapi.jsonMarkdownAuthentication Guide
How API keys are issued and scoped, what each key can and cannot reach, plus error shapes and rate-limit behaviour.
/auth.mdMCP server cardMCP Server Card
Read-only MCP server at /mcp answering pricing, feature, gateway, and API questions. No credentials required.
/.well-known/mcp/server-card.jsonAgent SkillsAgent Skills Index
Discovery index for the wpsubscription-api skill, with a digest so clients can verify what they downloaded.
/.well-known/agent-skills/index.jsonARD catalogAI Resource Catalog
Agentic Resource Discovery catalog listing every agent-facing resource on this domain in one fetch.
/.well-known/ai-catalog.jsonRFC 9727API Catalog
RFC 9727 linkset tying the API to its machine description and its human documentation.
/.well-known/api-catalogllms.txtllms.txt
Curated map of the site for language models — key pages, use cases, developer resources, and notable posts.
/llms.txtMarkdownDesign System
Colour tokens, typography, spacing, and component patterns for building in the WPSubscription visual style.
/design.mdDocumentation
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.
