Introduction

Welcome to the Nexus Auth API v1. This API allows you to integrate secure license verification and user authentication directly into your C++, Python, or C# applications.

Base URL

https://your-domain.com/api/v1

POST/init

Initialize connection and validate application integrity.

Parameters

  • ownerid String (Required)
  • name String (Required)
  • secret String (Required)
  • version String (Optional)

Example Request

python
import requests

data = {
    "name": "Nexus App",
    "ownerid": "your_owner_id",
    "secret": "app_secret_key",
    "version": "1.0"
}

resp = requests.post("https://api.nexus.com/api/v1/init", json=data)
print(resp.json())

POST/license

Redeem or validate a license key. Automatically locks HWID on first use.

Parameters

  • key String (Required)
  • hwid String (Required)
  • + all init params

Example Request

python
data = {
    "key": "XXXX-XXXX-XXXX-XXXX",
    "hwid": "user_hwid_string",
    "name": "Nexus App",
    "ownerid": "...",
    "secret": "..."
}

resp = requests.post("https://api.nexus.com/api/v1/license", json=data)

if resp.json()["success"]:
    print("Welcome Back!")
else:
    print("Invalid Key")