Licensing API

Endpoints for activating, validating, and managing licenses

Overview

The Licensing API allows external applications to interact with the WooNooW licensing system.

Base URL: https://your-domain.com/wp-json/woonoow/v1


Public Endpoints

Activate License

Activates a license key for a specific domain.

POST /licenses/activate

Activation Parameters

Body ParamsTypeRequiredDescription
license_keystringYesThe license key to activate
domainstringYesThe domain where the software is installed
activation_modestringNoSet to oauth to trigger OAuth flow

Responses

{
  "success": true,
  "activation_id": 123,
  "license_key": "XXXX-YYYY-ZZZZ-WWWW",
  "status": "active"
}

If OAuth is required:

{
  "success": false,
  "oauth_required": true,
  "oauth_redirect": "https://vendor.com/my-account/license-connect/...",
  "state": "abc12345"
}

Validate License

Checks if a license key is valid and active for the current domain.

POST /licenses/validate

Validation Parameters

Body ParamsTypeRequiredDescription
license_keystringYesThe license key to validate
domainstringYesThe domain to check against

Deactivate License

Deactivates a license for the current domain.

POST /licenses/deactivate

Deactivation Parameters

Body ParamsTypeRequiredDescription
license_keystringYesThe license key to deactivate
domainstringYesThe domain to remove

Published on Jul 16, 1936