Skip to content

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.0

Query Parameters:

ParameterRequiredDescription
slugYesProduct slug
license_keyYesLicense key for download access
versionYesCurrently 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=KEY

Streams 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.