License Keys
License keys are the core of PackEdge. Each key grants a customer access to a product with defined seat limits and expiration.
Key Format
License keys follow the format:
PREFIX-XXXX-XXXX-XXXX-XXXXWhere PREFIX is the product's license prefix (or a default). The key is auto-generated on creation.
Creating a License
Via Dashboard
- Go to Licenses in the sidebar
- Click New License
- Select the product and plan
- Enter the customer's email
- Set seats and expiration (optional)
Via API
bash
curl -X POST https://api.packedge.dev/api/licenses \
-H "Content-Type: application/json" \
-H "Cookie: session=YOUR_SESSION" \
-d '{
"productId": "prd_xxx",
"planId": "pln_xxx",
"customerEmail": "[email protected]",
"customerName": "John Doe",
"seats": 5,
"expiresAt": "2026-12-31T23:59:59Z"
}'License Status
| Status | Description |
|---|---|
active | Valid and accepting activations |
expired | Past expiration date |
revoked | Manually revoked by admin |
suspended | Temporarily disabled |
Seats
The seats field controls how many sites can activate a license simultaneously. When a license reaches its seat limit, new activations are rejected.
Expiration
Licenses can have an optional expiresAt date. Expired licenses fail validation and cannot be activated.
Actions
- Revoke — sets status to
revokedand deactivates all activations - Regenerate — generates a new license key (old key stops working)
