Opens in a new tab

API Reference

Every endpoint your plugin needs to validate a license, check for updates, and download the latest version — hosted on your own Remotely Master.

OVERVIEW

Base URL: https://your-master-site.com/wp-json/remotely/v1

All endpoints return JSON. POST requests accept standard form-encoded body parameters (not JSON). There is no separate API key — the license_key itself is the credential, checked against your Master on every call. Most developers never call these endpoints directly: the Remotely Client plugin and the licensee protection snippet already handle all of this automatically. This reference is for anyone building a custom integration.

On this page

ENDPOINTS

 

🟩 POST /activate

Activates a license on a given site. Called once when a license key is first entered, and also used internally to log a completed update.

Parameter Type Required Description
license_key string yes The license key to activate
site_url string yes The URL of the site activating the license
product_slug string yes The product’s technical slug
action string no Set to update_installed to log an update instead of activating

Example response

{
“success”: true,
“reason”: “activated”,
“site”: “https://example.com”
}
 

Possible reason values on failure:

  • invalid_license
  • expired
  • inactive
  • activation_limit_reached
  • domain_blocked
  • domain_not_allowed
 

🟧 POST /deactivate

Removes a site from a license’s activated sites, freeing up an installation slot.

Parameter Type Required Description
license_key string yes The license key
site_url string yes The site URL to deactivate

Example response

{ “success”: true, “reason”: “deactivated” }

🟪 POST /license/check

Returns the current status of a license: plan, capacity, usage, and expiration.

Parameter Type Required Description
license_key string yes The license key to check

Example response

{
“status”: “valid”,
“plan”: “yearly”,
“capacity”: “agency”,
“limit”: 50,
“used”: 3,
“expires”: “2027-01-15 00:00:00”,
“activated_at”: “2026-01-15 10:32:00”,
“checked_at”: “2026-07-24 09:00:00”,
“message”: “Licence valide”
}

🟥 GET /product/{slug}

Returns public information about a product (name, version, changelog, banner, icon). Used to power the “View details” popup in WordPress. Include license_key as a query parameter to also receive a download_url — without it, download_url is empty.

Example response

{
“slug”: “remotely-client”,
“title”: “Remotely Client”,
“version”: “0.4.6”,
“description”: “…”,
“changelog”: “…”,
“wp_requires”: “6.0”,
“php_requires”: “7.4”,
“download_url”: “”
}
 

🟫 GET /update/{slug}

Returns update information for a product. Requires a valid license_key as a query parameter — this route is used to confirm an update, not just to display info.

Parameter Type Required Description
license_key string yes Passed as a query parameter

Example response

{
“success”: true,
“new_version”: “0.4.7”,
“package”: “https://your-master-site.com/wp-json/remotely/v1/download-file?token=…”
}
 

🟨 POST /check-update

The main update-check endpoint. Always reports whether a newer version exists, but only allows the download (can_download: true) if the license is currently active for this product — mirroring how commercial plugins like ACF Pro or Yoast behave.

Parameter Type Required Description
license_key string yes The license key
product_slug string yes The product’s technical slug
site_url string no The requesting site’s URL

Example response

{
“success”: true,
“version”: “0.4.7”,
“changelog”: “…”,
“can_download”: true,
“hash”: “a7c9704bbe…”
}
 

🟦 POST /download

Requests a download link for the current version. Never returns the real file location directly — instead returns a temporary, 24-hour token pointing to /download-file.

Parameter Type Required Description
license_key string yes The license key
product_slug string yes The product’s technical slug
site_url string no The requesting site’s URL

Example response

{
“success”: true,
“reason”: “ok”,
“download_url”: “https://your-master-site.com/wp-json/remotely/v1/download-file?token=…”
}
 

🟩 GET /download-file

Serves the actual ZIP file for a valid, unexpired download token generated by /download. Not meant to be called directly — always use the download_url returned by /download.

🟧 GET /ping

A lightweight health check. Returns {"status": "ok", "time": }. Useful to confirm your Master is reachable before troubleshooting anything else.