Client API reference (1.2)

KeyAuth-compatible: existing KeyAuth SDKs work when you point url to Ghotz and use your app credentials. See KeyAuth → Ghotz migration.

Base URL (POST, application/x-www-form-urlencoded or form fields):

https://keyghotz.space/api/1.2/

Every request needs your app identity:

FieldRequiredDescription
nameYesApplication name (dashboard)
owneridYes10-character account Owner ID
typeYesEndpoint: init, register, login, license, …

Response signature

JSON body is returned with header signature: HMAC-SHA256(response_body, app_secret). If you passed enckey on init, later responses may use enckey + "-" + secret as the HMAC key (Ghotz-compatible).

Function management (enable in dashboard)

FeatureBitmasktype
Login1login
Register2register
License (key-only)4license

Enable under App Settings → Function Management. If disabled, API returns an error telling you to enable it.

1. init

Start a session before register/login/license.

FieldNotes
typeinit
verYour program version (optional version check)
enckeyOptional, max 35 chars — enables encrypted responses

Success returns sessionid — save it for the next calls.

{
  "success": true,
  "message": "Initialized",
  "sessionid": "xxxxxxxx",
  "appinfo": { "version": "1.0", "customerPanelLink": "https://keyghotz.space/panel/..." }
}

2. register (username + password + license key)

FieldNotes
sessionidFrom init
usernameNew username (max 70 chars)
passPassword
keyUnused license key from dashboard / store
hwidHardware ID (required if HWID lock enabled, min 20 chars when set)
emailOptional

3. login (username + password)

FieldNotes
sessionidFrom init
usernameRegistered username
passPassword
hwidMachine identifier (lock / reset in dashboard)

Success returns info with subscription details.

4. license (key only, no username)

User redeems a license key as both username and password internally — good for simple loaders.

FieldNotes
sessionidFrom init
keyLicense key
hwidHardware ID

Store webhook (website payments)

Separate endpoint — not part of 1.2 client API:

POST https://keyghotz.space/api/store/?app=APP_SECRET

See Website tutorial or STORE_WEBHOOK.md in the project root.

Seller API (generate keys from server)

GET https://keyghotz.space/api/seller/?sellerkey=SELLER_KEY&type=add&expiry=30&level=1&amount=1

Use only on your server — never expose sellerkey in the browser.