Skip to content

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-XXXX

Where PREFIX is the product's license prefix (or a default). The key is auto-generated on creation.

Creating a License

Via Dashboard

  1. Go to Licenses in the sidebar
  2. Click New License
  3. Select the product and plan
  4. Enter the customer's email
  5. 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

StatusDescription
activeValid and accepting activations
expiredPast expiration date
revokedManually revoked by admin
suspendedTemporarily 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 revoked and deactivates all activations
  • Regenerate — generates a new license key (old key stops working)