Skip to main content

Licenses API

Manage product licenses programmatically.

List Licenses

Get all licenses for the authenticated user.

GET /api/licenses

Response:

[
{
"id": "uuid",
"key": "ECO-XXXX-XXXX-XXXX",
"productId": "uuid",
"status": "active",
"activationsCount": 1,
"activationsLimit": 3,
"expiresAt": "2027-02-16T00:00:00Z",
"createdAt": "2026-02-16T00:00:00Z"
}
]

Validate a License

Check if a license key is valid.

POST /api/licenses/validate
Content-Type: application/json

{
"key": "ECO-XXXX-XXXX-XXXX",
"domain": "mysite.com"
}

Response:

{
"valid": true,
"license": {
"key": "ECO-XXXX-XXXX-XXXX",
"status": "active",
"expiresAt": "2027-02-16T00:00:00Z"
}
}

Activate a License

Register a domain/installation against a license.

POST /api/licenses/activate
Content-Type: application/json

{
"key": "ECO-XXXX-XXXX-XXXX",
"domain": "mysite.com"
}

Response:

{
"activated": true,
"activationsCount": 2,
"activationsLimit": 3
}

Deactivate a License

Remove a domain/installation from a license.

POST /api/licenses/deactivate
Content-Type: application/json

{
"key": "ECO-XXXX-XXXX-XXXX",
"domain": "mysite.com"
}

Response:

{
"deactivated": true,
"activationsCount": 1
}

Error Responses

ErrorMeaning
License not foundThe key doesn't exist
License expiredThe license has passed its expiration date
Activation limit reachedAll activation slots are used
License revokedThe license was manually revoked