Developer documentation

WordPress Plugin API

Integrate Drecha plugin licensing and protected updates. This reference lists only routes that are currently operational.

Base URL
https://drecha.com/api/wordpress-plugins
Version
1
Rate limit
60 requests per minute

License Management

POST

Activate license

https://drecha.com/api/wordpress-plugins/licenses/activate

Activates a license for one WordPress installation.

Authentication
Publicly reachable; a valid license key is required.
Required headers
Accept: application/json, Content-Type: application/json

Example request body

{
    "plugin_slug": "drecha-events",
    "license_key": "EXAMPLE-LICENSE-KEY",
    "installation_id": "example-installation-id",
    "site_url": "https://example.com"
}

Successful response

{
    "valid": true,
    "message": "License activated.",
    "activation_identifier": "8f02ed29-87c8-4a7a-8678-e03bb85e130d"
}
POST

Validate license

https://drecha.com/api/wordpress-plugins/licenses/validate

Validates an existing license against its installation identifier and normalized site URL.

Authentication
Publicly reachable; a valid, active license and matching installation are required.
Required headers
Accept: application/json, Content-Type: application/json

Example request body

{
    "plugin_slug": "drecha-events",
    "license_key": "EXAMPLE-LICENSE-KEY",
    "installation_id": "example-installation-id",
    "site_url": "https://example.com"
}

Successful response

{
    "valid": true,
    "message": "License is valid."
}
POST

Deactivate license

https://drecha.com/api/wordpress-plugins/licenses/deactivate

Deactivates an installation so its production activation can be used elsewhere.

Authentication
Publicly reachable; the license key and matching installation identifier are required.
Required headers
Accept: application/json, Content-Type: application/json

Example request body

{
    "plugin_slug": "drecha-events",
    "license_key": "EXAMPLE-LICENSE-KEY",
    "installation_id": "example-installation-id"
}

Successful response

{
    "valid": true,
    "message": "Installation deactivated."
}

Plugin Updates

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"
}

Plugin Releases

No standalone public endpoint is currently implemented for this category. Release management is administrator-only, and protected downloads use temporary signed URLs returned by an authorized update check.

Secure Downloads

No standalone public endpoint is currently implemented for this category. Release management is administrator-only, and protected downloads use temporary signed URLs returned by an authorized update check.

Installation Reporting

No standalone public endpoint is currently implemented for this category. Release management is administrator-only, and protected downloads use temporary signed URLs returned by an authorized update check.

Common errors

StatusMeaning
403The license or installation is not authorized for this operation.
404The plugin or a published release was not found.
422The JSON request failed validation.
429The 60 requests-per-minute API limit was exceeded.

Functional cookies only

Saaso only uses functional cookies for sign-in, security, and core product flows. By continuing to use the site, you agree to that use.