The /api/1.2/ endpoint is a KeyAuth-compatible API on your own server. All requests are form-encoded POST with: type, name, ownerid, secret, version.
Endpoints
init
ownerid, secret, version, nameVerify app credentials. Returns sessionid.
checkinit
ownerid, secretCheck initialization state.
register
username, password, license (optional)Register a new application user.
login
username, passwordIssue a session token.
logout
sessionidInvalidate a session.
license
key, hwid (optional)Activate/validate a license key.
check
sessionid, hwid (optional)Verify session + fetch app/user info & stats.
upgrade
keyBind a premium license to a user → PREMIUM.
setvar
sessionid, var, valueStore a user variable.
getvar
sessionid, varRead a user variable.
ban
usernameBan a user (revoke sessions).
fetchOnline
List online users.
fetchStats
App statistics (numUsers, numOnline, numKeys...).
chatget
Get chat messages.
chatsend
messageSend a chat message.
checkblacklist
Check blacklist status.
webhook
urlRegister webhook URL.
download
fileDownload an app file.
log
messageWrite an audit log line.
changeUsername
username, sessionidChange a user's username.
forgot
emailPassword reset request.
Response Format
{
"success": true,
"newSession": true,
"sessionid": "...",
"contents": "",
"response": "",
"message": "success",
"download": "",
"info": {},
"appinfo": {},
"messages": [],
"users": []
}