Appearance
Check Activation
Quick check if a license is activated for a specific domain. Lightweight endpoint with no side effects.
POST /public/v1/licenses/checkRequest
json
{
"public_key": "pk_your_public_key",
"license_key": "MYPLUGIN-XXXX-XXXX-XXXX-XXXX",
"domain": "https://example.com"
}| Field | Required | Description |
|---|---|---|
public_key | Yes | Your product's public key |
license_key | Yes | The license key to check |
domain | Yes | Domain to check activation for |
Response (Activated)
json
{
"activated": true,
"activation_id": "act_xxx",
"activated_at": "2026-02-06T12:00:00.000Z"
}Response (Not Activated)
json
{
"activated": false,
"activation_id": null,
"activated_at": null
}Example
bash
curl -X POST https://api.packedge.dev/public/v1/licenses/check \
-H "Content-Type: application/json" \
-d '{
"public_key": "pk_your_public_key",
"license_key": "MYPLUGIN-XXXX-XXXX-XXXX-XXXX",
"domain": "https://example.com"
}'PHP Example
php
function is_license_activated($license_key) {
$response = wp_remote_post('https://api.packedge.dev/public/v1/licenses/check', [
'body' => json_encode([
'public_key' => 'pk_your_public_key',
'license_key' => $license_key,
'domain' => home_url(),
]),
'headers' => ['Content-Type' => 'application/json'],
]);
$body = json_decode(wp_remote_retrieve_body($response), true);
return isset($body['activated']) && $body['activated'];
}Use Cases
Use this endpoint when you want to:
- Check activation status without modifying anything
- Display license status in your plugin's settings page
- Verify activation before enabling premium features
