Android — Kotlin / Java (APK)

Android apps use Ghotz Auth API 1.2. Set your API base URL to https://keyghotz.space/api/1.2/ in the Java/Kotlin SDK.

1. Credentials (Kotlin)

val GhotzApp = KeyAuthAPI(
    name = "YOUR_APP",
    ownerid = "YOUR_OWNERID",
    version = "1.0",
    url = "https://keyghotz.space/api/1.2/"
)

2. Typical flow

GhotzApp.init()
if (!GhotzApp.response.success) return

GhotzApp.license(licenseKey, KeyAuthAPI.getHwid())
// or GhotzApp.login(user, pass, KeyAuthAPI.getHwid())

HWID on Android is usually derived from Settings.Secure.ANDROID_ID or the SDK helper.

iOS → · Dart / Flutter → · Full tutorial →