Developer Documentation
Integrate AgentyPi licensing into your WordPress plugin using our secure HMAC-SHA256 API.
🔑 License Activation
POST /api/v1/license/activate
{
"license_key": "XXXX-XXXX-XXXX-XXXX",
"domain": "yoursite.com",
"installation_id": "uuid-v4",
"signature": "hmac-sha256-hash",
"nonce": "random-string",
"timestamp": 1700000000
}
✅ License Check
POST /api/v1/license/check
{
"license_key": "XXXX-XXXX-XXXX-XXXX",
"domain": "yoursite.com",
"signature": "...",
"nonce": "...",
"timestamp": 1700000000
}
🔒 HMAC Signature
All requests must include a valid HMAC-SHA256 signature of the sorted payload:
$payload = ['license_key'=>'...', 'domain'=>'...', 'nonce'=>'...', 'timestamp'=>time()];
ksort($payload);
$signature = hash_hmac('sha256', json_encode($payload), YOUR_SECRET_KEY);