GET
Latest version
https://drecha.com/api/wordpress-plugins/{slug}/latest
Returns metadata for the latest published release. Draft and unpublished products are not returned.
- Authentication
- Publicly reachable; no license is required.
- Required headers
- Accept: application/json
Successful response
{
"name": "Drecha Events",
"slug": "drecha-events",
"version": "1.0.0",
"requires": "6.2",
"tested": "6.7",
"requires_php": "8.0",
"sections": {
"changelog": "Initial public release."
}
}
POST
Update check
https://drecha.com/api/wordpress-plugins/{slug}/update-check
Validates the installation, compares its installed version, and returns a temporary protected package URL.
- Authentication
- Publicly reachable; a valid license activated for the supplied installation and site URL is required.
- Required headers
- Accept: application/json, Content-Type: application/json
Example request body
{
"license_key": "EXAMPLE-LICENSE-KEY",
"site_url": "https://example.com",
"installation_id": "example-installation-id",
"current_version": "0.9.0"
}
Successful response
{
"name": "Drecha Events",
"slug": "drecha-events",
"version": "1.0.0",
"requires": "6.2",
"tested": "6.7",
"requires_php": "8.0",
"sections": {
"changelog": "Initial public release."
},
"update_available": true,
"package": "https://drecha.com/wordpress-plugin-downloads/temporary-example-token?expires=1700000000&signature=fictional"
}