Skip to Content
CadNic Docs

Validate License

Check if a license key is valid and active.

Endpoint

POST /api/v1/licenses/validate

Request Body

FieldTypeRequiredDescription
license_keystringYesThe license key to validate
device_idstringYesDevice identifier to check activation

Example Request

{ "license_key": "SS-XXXX-XXXX-XXXX-XXXX", "device_id": "abc123-def456-ghi789" }

Response

Success — Valid (200)

{ "success": true, "data": { "valid": true, "license_key": "SS-XXXX-XXXX-XXXX-XXXX", "tier": "pro", "expires_at": null, "activations_used": 1, "activations_limit": 3 } }

Success — Invalid (200)

{ "success": true, "data": { "valid": false, "reason": "LICENSE_NOT_FOUND" } }

Notes

  • This endpoint is called by the desktop client on startup and periodically (every 30 days)
  • Returns valid: true even if the device is not activated (for license existence checks)
  • To check device-specific activation, include device_id in the request
  • Rate limited to 10 requests per minute per IP