Client API
Register
Create a new user account using a valid license key.
Query Params
type
string
required Example:
registerRequest action name
name
string
required Example:
MyAppApplication name from Seller Panel
ownerid
string
required Example:
XXXXXXXXXX10-character Owner ID from panel credentials
sessionid
string
required Example:
your_session_idSession ID returned by
inithwid
string
required Example:
HWID-12345Hardware ID string from client
username
string
required Example:
newuserDesired username
pass
string
required Example:
passwordPassword
key
string
required Example:
XXXX-XXXXUnused license key
Request Code Samples
Shell
curl -X POST 'https://libreauth.nutexe.dev/api/1.3/' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'type=register&name=MyApp&ownerid=XXXXXXXXXX&sessionid=your_session_id&username=newuser&pass=pass&key=XXXX&hwid=HWID'
Go
app := libreauth.New("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/")
app.Init()
app.Register("newuser", "pass", "XXXX", "HWID")
PHP
<?php
$ch = curl_init('https://libreauth.nutexe.dev/api/1.3/');
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_POSTFIELDS => 'type=register&name=MyApp&ownerid=XXXXXXXXXX&sessionid=your_session_id&username=newuser&pass=pass&key=XXXX&hwid=HWID', CURLOPT_HTTPHEADER => ['Content-Type: application/x-www-form-urlencoded'], CURLOPT_RETURNTRANSFER => true]);
echo curl_exec($ch);
Python
import requests
res = requests.post('https://libreauth.nutexe.dev/api/1.3/', data={
'type': 'register',
'name': 'MyApp',
'ownerid': 'XXXXXXXXXX',
'sessionid': 'your_session_id',
'username': 'newuser',
'pass': 'pass',
'key': 'XXXX',
'hwid': 'HWID'
})
print(res.json())
HTTP
POST /api/1.3/ HTTP/1.1
Host: libreauth.nutexe.dev
Content-Type: application/x-www-form-urlencoded
type=register&name=MyApp&ownerid=XXXXXXXXXX&sessionid=your_session_id&username=newuser&pass=pass&key=XXXX&hwid=HWID
C#
var app = new LibreAuth("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
await app.InitAsync();
await app.RegisterAsync("newuser", "pass", "XXXX", "HWID");
C++
LibreAuth::Client app("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
app.init();
app.register("newuser", "pass", "XXXX", "HWID");
JavaScript
const body = new URLSearchParams({
type: 'register',
name: 'MyApp',
ownerid: 'XXXXXXXXXX',
sessionid: 'your_session_id',
username: 'newuser',
pass: 'pass',
key: 'XXXX',
hwid: 'HWID'
});
fetch('https://libreauth.nutexe.dev/api/1.3/', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: body.toString() })
.then(r => r.json()).then(console.log);
TypeScript
const app = new LibreAuth('MyApp', 'XXXXXXXXXX', '1.0', 'https://libreauth.nutexe.dev/api/1.3/');
await app.init();
await app.register('newuser', 'pass', 'XXXX', 'HWID');
Java
LibreAuth app = new LibreAuth("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
app.init();
app.register("newuser", "pass", "XXXX", "HWID");
Rust
let mut app = LibreAuth::new("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
app.init()?;
app.register("newuser", "pass", "XXXX", "HWID")?;
Ruby
app = LibreAuth.new('MyApp', 'XXXXXXXXXX', '1.0', 'https://libreauth.nutexe.dev/api/1.3/')
app.init
app.register('newuser', 'pass', 'XXXX', 'HWID')
Perl
my $app = LibreAuth->new('MyApp', 'XXXXXXXXXX', '1.0', 'https://libreauth.nutexe.dev/api/1.3/');
$app->init;
$app->register('newuser', 'pass', 'XXXX', 'HWID');
Lua
local app = LibreAuth.new('MyApp', 'XXXXXXXXXX', '1.0', 'https://libreauth.nutexe.dev/api/1.3/')
app:init()
app:register('newuser', 'pass', 'XXXX', 'HWID')
React
const app = new LibreAuth('MyApp', 'XXXXXXXXXX', '1.0', process.env.REACT_APP_API_URL);
await app.Init();
await app.Register('newuser', 'pass', 'XXXX', 'HWID');
Vue
const app = new LibreAuth('MyApp', 'XXXXXXXXXX', '1.0', import.meta.env.VITE_API_URL);
await app.Init();
await app.Register('newuser', 'pass', 'XXXX', 'HWID');
Unity
var app = new LibreAuth("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
await app.InitAsync();
await app.RegisterAsync("newuser", "pass", "XXXX", "HWID");
WPF
var app = new LibreAuth("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
await app.InitAsync();
await app.RegisterAsync("newuser", "pass", "XXXX", "HWID");
VB.NET
var app = new LibreAuth("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
await app.InitAsync();
await app.RegisterAsync("newuser", "pass", "XXXX", "HWID");
Responses
application/json · object
{
"success": true,
"message": "Registered successfully"
}