Install
openclaw skills install toolweb-mirrory-mvpToken generation and validation service for WordPress proxy and desktop application session management.
openclaw skills install toolweb-mirrory-mvpMirrory API is a secure token management service designed to handle authentication workflows between WordPress proxy systems and desktop applications. It provides robust token generation tied to WordPress user accounts and validates session tokens on application startup, ensuring secure and seamless user experiences across integrated platforms.
The API operates on a coin-based system where WordPress proxies deduct 200 coins before requesting token generation. This integration model allows for metered access control and usage tracking across enterprise deployments. Desktop applications leverage the validation endpoint to verify token authenticity and machine binding on each session initialization.
Ideal users include WordPress administrators managing multi-platform authentication, desktop application developers requiring secure session management, and enterprises implementing token-based access control across distributed systems.
A WordPress proxy generates a token after deducting 200 coins from a user account:
Request:
{
"wp_user_id": 12345,
"proxy_secret": "your-proxy-secret-key-here"
}
Response:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_in": 86400,
"user_id": 12345
}
A desktop application validates a token on startup to verify the session is active:
Request:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"machine_id": "desktop-machine-uuid-1234567890"
}
Response:
{
"valid": true,
"user_id": 12345,
"machine_id": "desktop-machine-uuid-1234567890",
"expires_at": "2024-12-31T23:59:59Z"
}
Generates a new authentication token for a WordPress user after coin deduction by the proxy.
/mirrory/generate-tokenParameters:
| Name | Type | Required | Description |
|---|---|---|---|
wp_user_id | integer | Yes | The WordPress user ID requesting the token |
proxy_secret | string | Yes | Secret key from the WordPress proxy for authentication |
Response:
Validates an existing token and confirms it is bound to the specified machine, typically called by desktop applications on startup.
/mirrory/validate-tokenParameters:
| Name | Type | Required | Description |
|---|---|---|---|
token | string | Yes | The JWT token to validate |
machine_id | string | Yes | Unique identifier of the requesting machine |
Response:
Health check endpoint to verify API service availability.
/mirrory/healthResponse:
| Plan | Calls/Day | Calls/Month | Price |
|---|---|---|---|
| Free | 5 | 50 | Free |
| Developer | 20 | 500 | $39/mo |
| Professional | 200 | 5,000 | $99/mo |
| Enterprise | 100,000 | 1,000,000 | $299/mo |
ToolWeb.in - 200+ security APIs, CISSP & CISM, platforms: Pay-per-run, API Gateway, MCP Server, OpenClaw, RapidAPI, YouTube.