License Management System

Internal tool for license validation and management

API Access

Public API - No Authentication Required Admin API - Authentication Required

Validate License

Public endpoint - No authentication required. License keys are sent via X-LICENSE-KEY header for security (encrypted via HTTPS).

Admin Authentication

Admin endpoints require Basic Authentication. Use the management script to create admin accounts with specific permissions (read: view licenses, write: activate/deactivate, delete: remove licenses).
⚠️ Not authenticated. Please login to access admin endpoints.

List Licenses

Requires 'read' permission. Display all licenses in the system.

License Details

Requires 'read' permission. View detailed information of a specific license.

Public Endpoints (No Authentication Required)

Security: License keys must be sent via X-LICENSE-KEY header (encrypted via HTTPS)

GET /validate with X-LICENSE-KEY header
POST /validate with X-LICENSE-KEY header
GET /health

Admin Endpoints (Authentication Required)

GET /admin/licenses?limit=100 Basic Auth + read
GET /admin/licenses/ABC123-DEF456-GHI789 Basic Auth + read
POST /admin/licenses/ABC123-DEF456-GHI789/deactivate Basic Auth + write
POST /admin/licenses/ABC123-DEF456-GHI789/activate Basic Auth + write

Permissions

read: View licenses
write: Activate/deactivate licenses
delete: Delete licenses (via script)

Script Management (Script Only)

These operations require the management script:

SCRIPT ./manage-licenses.sh create
SCRIPT ./manage-licenses.sh update
SCRIPT ./manage-licenses.sh delete
SCRIPT ./manage-licenses.sh create-admin
SCRIPT ./manage-licenses.sh update-admin-permissions