Skip to Content
DocsAPI ReferenceLicense API

POST /api/activate

Activate a license key for a machine.

Request

curl -X POST https://api.aidenapp.org/api/activate \ -H "Content-Type: application/json" \ -d '{ "licenseKey": "AIDEN-XXXX-XXXX-XXXX", "machineId": "unique-machine-identifier" }'

Parameters

FieldTypeRequiredDescription
licenseKeystringThe license key to activate
machineIdstringUnique identifier for the machine

Response

{ "success": true, "license": { "key": "AIDEN-XXXX-XXXX-XXXX", "plan": "pro", "expiresAt": "2026-03-05T00:00:00Z", "machineId": "unique-machine-identifier", "activated": true } }

Errors

StatusDescription
400Invalid license key format
404License key not found
409License already activated on another machine
429Too many activation attempts

GET /api/activate/check

Check the status of a license key.

Request

curl "https://api.aidenapp.org/api/activate/check?licenseKey=AIDEN-XXXX-XXXX-XXXX&machineId=unique-machine-identifier"

Parameters

FieldTypeRequiredDescription
licenseKeyqueryThe license key to check
machineIdqueryMachine identifier to verify binding

Response

{ "valid": true, "plan": "pro", "expiresAt": "2026-03-05T00:00:00Z", "active": true }

Errors

StatusDescription
400Missing required parameters
404License key not found