Client API
Feature Ticket
Issue a short-lived feature_token after license. Server checks subscription pack (SubCore::HasFeature) then app entitlements. Pair with type=feature_ack when Panel Require Feature Ack is on. SDK: SessionGate.RequireFeatureOrDie.
Query Params
type
string
required Example:
featureRequest action name
name
string
required Example:
MyAppApplication name
ownerid
string
required Example:
XXXXXXXXXX10-character Owner ID
sessionid
string
required Example:
your_session_idSession ID returned by
initfeature
string
required Example:
injectFeature name (a-z 0-9 _ -)
Request Code Samples
Shell
curl -X POST 'https://libreauth.nutexe.dev/api/1.3/' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'type=feature&name=MyApp&ownerid=XXXXXXXXXX&sessionid=your_session_id&feature=inject'
PHP
<?php
$ch = curl_init('https://libreauth.nutexe.dev/api/1.3/');
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_POSTFIELDS => 'type=feature&name=MyApp&ownerid=XXXXXXXXXX&sessionid=your_session_id&feature=inject', 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': 'feature',
'name': 'MyApp',
'ownerid': 'XXXXXXXXXX',
'sessionid': 'your_session_id',
'feature': 'inject'
})
print(res.json())
HTTP
POST /api/1.3/ HTTP/1.1
Host: libreauth.nutexe.dev
Content-Type: application/x-www-form-urlencoded
type=feature&name=MyApp&ownerid=XXXXXXXXXX&sessionid=your_session_id&feature=inject
JavaScript
const body = new URLSearchParams({
type: 'feature',
name: 'MyApp',
ownerid: 'XXXXXXXXXX',
sessionid: 'your_session_id',
feature: 'inject'
});
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);
Responses
application/json · object
{
"success": true,
"message": "Feature ticket",
"feature": "inject",
"feature_token": "...",
"exp": 1710000000,
"ttl": 60
}
application/json · object
{
"success": false,
"message": "Feature not entitled"
}