Skip to main content
Software License Keys You can easily sell software license keys with Solifyn. We automate key generation, activation limits, and expose simple API endpoints for real-time validation and device tracking in your client application.
  • Auto-Generated on Purchase: Customers automatically receive a unique license key upon successful checkout.
  • Activation Limits: Limit concurrent activations per license key (e.g. restrict to 3 devices).
  • Scale with Add-ons: Connect seat-based Add-ons to dynamically scale key activation limits.
  • Expiry Options: Configure keys that expire after a specific time period.

Creating Products with License Keys

To issue license keys:
  1. When creating or updating a Product, toggle Enable License Keys (hasLicenseKey = true).
  2. Optionally, specify the Activation Limit (maximum devices allowed concurrently).
  3. Optionally, add a custom Activation Message to display to clients.

Client API Integration

Solifyn provides client-facing REST endpoints to verify, activate, and deactivate license keys.

1. Validate License Key

Use this endpoint to verify if a customer’s license key is valid, active, and has not expired.
Terminal
curl -X POST https://api.solifyn.com/licenses/verify \
  -H "Content-Type: application/json" \
  -d '{
    "productId": "prod_12345",
    "key": "A1B2-C3D4-E5F6-G7H8"
  }'

Request Parameters

  • productId (string, required): The ID of the product.
  • key (string, required): The license key string provided by the customer.

Response (200 OK)

{
  "success": true,
  "valid": true,
  "license": {
    "id": "lic_99f2b8a7-...",
    "key": "A1B2-C3D4-E5F6-G7H8",
    "status": "ACTIVE",
    "activationLimit": 3,
    "expiresAt": "2027-05-30T10:00:00.000Z",
    "product": {
      "id": "prod_12345",
      "name": "Developer Pro SaaS"
    }
  }
}

2. Activate License Key (Device/Instance)

If your product enforces an activation limit, your application must register each device activation prior to granting access.
Terminal
curl -X POST https://api.solifyn.com/licenses/activate \
  -H "Content-Type: application/json" \
  -d '{
    "key": "A1B2-C3D4-E5F6-G7H8",
    "deviceIdentifier": "device_mac_001",
    "name": "Jane'\''s Macbook Pro"
  }'

Request Parameters

  • key (string, required): The license key.
  • deviceIdentifier (string, required): A unique client-side identifier (mac address, hardware UUID, etc.).
  • name (string, optional): A friendly name for the device instance.

Response (200 OK)

{
  "id": "inst_77c123...",
  "licenseId": "lic_99f2b8a7-...",
  "instanceId": "device_mac_001",
  "instanceName": "Jane's Macbook Pro",
  "activatedAt": "2026-05-30T10:31:00.000Z"
}

3. Deactivate Device Instance

To free up activation slots, your application can deactivate a registered device.
Terminal
curl -X POST https://api.solifyn.com/licenses/deactivate/device_mac_001 \
  -H "Content-Type: application/json" \
  -d '{
    "key": "A1B2-C3D4-E5F6-G7H8"
  }'

Response (200 OK)

{
  "success": true
}

4. Download files via License Key

If you associate downloadable digital files with your product, customers can securely fetch them using their license key: GET https://api.solifyn.com/licenses/download/:productId?key=:licenseKey