MyRON RustPlugin
Developer API
Wire update checkers, server panels, and Burden-style licenses without scraping HTML.
Authentication
Authorization: Bearer rph_live_…
# or
X-Api-Key: rph_live_…
Create a key in your account. Default rate limit 120 req/min per key, 60/min per IP without a key.
Endpoints
| Method | Path | Auth | |
|---|---|---|---|
| GET | /api/v1 | — | Discovery |
| GET | /api/v1/plugins | — | Catalog (?q &category &tag) |
| GET | /api/v1/plugins/{slug} | — | Plugin detail |
| GET | /api/v1/plugins/{slug}/versions | — | Version list |
| GET | /api/v1/plugins/{slug}/check?current=1.0.0 | — | Update check |
| GET | /api/v1/plugins/{slug}/download | key + downloads.read | File (purchase / free) |
| GET | /api/v1/me | key | Buyer profile |
| GET | /api/v1/me/purchases | key | Owned plugins |
| POST | /api/v1/license/validate | key | Burden / license code |
Update check & download
curl -s "https://rustplugin.myrondev.com/api/v1/plugins/apremove/check?current=0.0.3"
# → { "updateAvailable": true, "latest": { "semVer": "0.0.4", … } }
curl -OJ -H "Authorization: Bearer $KEY" \
"https://rustplugin.myrondev.com/api/v1/plugins/apremove/download"
Webhooks
product.version.published is sent to purchase owners and co-authors. Verify X-Hub-Signature-256.
X-Hub-Event: product.version.published
X-Hub-Signature-256: sha256=<hmac_hex>
{
"type": "product.version.published",
"data": { "slug": "…", "semVer": "1.2.0", "apiCheckUrl": "/api/v1/plugins/…/check" }
}
License validation (LicenseProductCode)
curl -s -X POST https://rustplugin.myrondev.com/api/v1/license/validate \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"productCode":"APBurden","steamId":"7656119…"}'