WordPress Updates (Edge)
Public endpoint for WordPress update checks. Returns WordPress-compatible update data.
Update Check
GET /v1/wp/update-check?slug=SLUG&license_key=KEY&version=1.0.0Query Parameters:
| Parameter | Required | Description |
|---|---|---|
slug | Yes | Product slug |
license_key | Yes | License key for download access |
version | Yes | Currently installed version |
Response:
json
{
"name": "My Plugin",
"slug": "my-plugin",
"version": "2.0.0",
"new_version": "2.0.0",
"url": "https://example.com/readme",
"package": "https://api.packedge.dev/v1/download/rel_xxx?license_key=KEY",
"tested": "6.4",
"requires": "5.0",
"requires_php": "7.4",
"icons": {
"1x": "https://example.com/icon-128.png",
"2x": "https://example.com/icon-256.png"
},
"banners": {
"low": "https://example.com/banner-772x250.png",
"high": "https://example.com/banner-1544x500.png"
},
"sections": {
"description": "Plugin description",
"changelog": "## 2.0.0\n- New feature"
}
}The package field (download URL) is only included if the license key is valid and active.
Download Release
GET /v1/download/:releaseId?license_key=KEYStreams the release ZIP file from R2 storage. Validates the license before serving the file and tracks download count.
Caching
- Product info and latest release data are cached in KV for 5 minutes
- Cache key:
wp-update:{slug}
Integration
See the WordPress Plugin guide for complete integration code including the pre_set_site_transient_update_plugins and plugins_api filters.
