LibreAuth Nut.exe Visit Website
Client API

Upgrade (Redeem License)

POST https://libreauth.nutexe.dev/api/1.3/

Apply a license key to an existing user account to extend or change subscription.

LibreAuth API v1.3 · type=upgrade

Query Params

type string required
Example: upgrade
Request action name
name string required
Example: MyApp
Application name from Seller Panel
ownerid string required
Example: XXXXXXXXXX
10-character Owner ID from panel credentials
sessionid string required
Example: your_session_id
Session ID returned by init
username string required
Example: user123
Existing username
key string required
Example: XXXX-XXXX
License key to redeem

Request Code Samples

Shell
curl -X POST 'https://libreauth.nutexe.dev/api/1.3/' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'type=upgrade&name=MyApp&ownerid=XXXXXXXXXX&sessionid=your_session_id&username=user123&key=XXXX-XXXX'
Go
app := libreauth.New("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/")
app.Init()
app.Upgrade("user123", "XXXX-XXXX")
PHP
<?php
$ch = curl_init('https://libreauth.nutexe.dev/api/1.3/');
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_POSTFIELDS => 'type=upgrade&name=MyApp&ownerid=XXXXXXXXXX&sessionid=your_session_id&username=user123&key=XXXX-XXXX', 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': 'upgrade',
    'name': 'MyApp',
    'ownerid': 'XXXXXXXXXX',
    'sessionid': 'your_session_id',
    'username': 'user123',
    'key': 'XXXX-XXXX'
})
print(res.json())
HTTP
POST /api/1.3/ HTTP/1.1
Host: libreauth.nutexe.dev
Content-Type: application/x-www-form-urlencoded

type=upgrade&name=MyApp&ownerid=XXXXXXXXXX&sessionid=your_session_id&username=user123&key=XXXX-XXXX
C#
var app = new LibreAuth("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
await app.InitAsync();
await app.UpgradeAsync("user123", "XXXX-XXXX");
C++
LibreAuth::Client app("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
app.init();
app.upgrade("user123", "XXXX-XXXX");
JavaScript
const body = new URLSearchParams({
  type: 'upgrade',
  name: 'MyApp',
  ownerid: 'XXXXXXXXXX',
  sessionid: 'your_session_id',
  username: 'user123',
  key: 'XXXX-XXXX'
});
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.upgrade('user123', 'XXXX-XXXX');
Java
LibreAuth app = new LibreAuth("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
app.init();
app.upgrade("user123", "XXXX-XXXX");
Rust
let mut app = LibreAuth::new("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
app.init()?;
app.upgrade("user123", "XXXX-XXXX")?;
Ruby
app = LibreAuth.new('MyApp', 'XXXXXXXXXX', '1.0', 'https://libreauth.nutexe.dev/api/1.3/')
app.init
app.upgrade('user123', 'XXXX-XXXX')
Perl
my $app = LibreAuth->new('MyApp', 'XXXXXXXXXX', '1.0', 'https://libreauth.nutexe.dev/api/1.3/');
$app->init;
$app->upgrade('user123', 'XXXX-XXXX');
Lua
local app = LibreAuth.new('MyApp', 'XXXXXXXXXX', '1.0', 'https://libreauth.nutexe.dev/api/1.3/')
app:init()
app:upgrade('user123', 'XXXX-XXXX')
React
const app = new LibreAuth('MyApp', 'XXXXXXXXXX', '1.0', process.env.REACT_APP_API_URL);
await app.Init();
await app.Upgrade('user123', 'XXXX-XXXX');
Vue
const app = new LibreAuth('MyApp', 'XXXXXXXXXX', '1.0', import.meta.env.VITE_API_URL);
await app.Init();
await app.Upgrade('user123', 'XXXX-XXXX');
Unity
var app = new LibreAuth("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
await app.InitAsync();
await app.UpgradeAsync("user123", "XXXX-XXXX");
WPF
var app = new LibreAuth("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
await app.InitAsync();
await app.UpgradeAsync("user123", "XXXX-XXXX");
VB.NET
var app = new LibreAuth("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
await app.InitAsync();
await app.UpgradeAsync("user123", "XXXX-XXXX");

Responses

application/json · object
{
  "success": true,
  "message": "Upgraded successfully",
  "nonce": ""
}