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
| Field | Type | Required | Description |
|---|---|---|---|
licenseKey | string | ✅ | The license key to activate |
machineId | string | ✅ | Unique 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
| Status | Description |
|---|---|
400 | Invalid license key format |
404 | License key not found |
409 | License already activated on another machine |
429 | Too 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
| Field | Type | Required | Description |
|---|---|---|---|
licenseKey | query | ✅ | The license key to check |
machineId | query | ✅ | Machine identifier to verify binding |
Response
{
"valid": true,
"plan": "pro",
"expiresAt": "2026-03-05T00:00:00Z",
"active": true
}Errors
| Status | Description |
|---|---|
400 | Missing required parameters |
404 | License key not found |