KeyNode Documentation
Learn how to integrate KeyNode into your applications
Quick Start
Get up and running in under 5 minutes
API Reference
Complete API documentation
Examples
Code examples in multiple languages
Introduction
KeyNode is a powerful license authentication system that helps you protect your software and manage access to your applications. With features like HWID binding, version locking, and comprehensive analytics, you can ensure only authorized users access your tools.
Quick Start Guide
Create a Project
Navigate to your dashboard and create a new project. Each project represents an application or tool you want to protect.
Generate License Keys
Generate license keys for your users with customizable tiers and durations.
Integrate the API
Use our API to validate licenses in your application.
API Integration
import requests
import hashlib
import platform
def get_hwid():
"""Generate a unique hardware ID"""
data = f"{platform.node()}-{platform.machine()}-{platform.processor()}"
return hashlib.sha256(data.encode()).hexdigest()
def validate_license(license_key, project_id):
"""Validate a license key with KeyNode"""
response = requests.post(
"https://keynode.app/api/license/validate",
json={
"key": license_key,
"projectId": project_id,
"hwid": get_hwid(),
"version": "1.0.0"
}
)
return response.json()
# Usage
result = validate_license("XXXX-XXXX-XXXX-XXXX", "your-project-id")
if result.get("valid"):
print("License valid!")
else:
print(f"License invalid: {result.get('error')}")API Endpoints
/api/license/validateValidate a license key and bind it to a hardware ID.
Request Body:
key- The license key to validateprojectId- Your project IDhwid- Hardware ID of the clientversion- Client application version
/api/keys/generateGenerate new license keys for a project.
Request Body:
projectId- Target project IDquantity- Number of keys to generatetier- STANDARD, MEDIA, or RESELLERduration- Duration valuedurationType- HOURS, DAYS, or LIFETIME
Need Help?
Community Discord
Join our Discord for support
GitHub
View examples and report issues