Documentation
How to integrate your software with this authentication platform.
1. Get your credentials
Create an application in the admin panel and copy:
app_id— public application idapp_secret— secret (keep private, send asx-secretheader orsecretquery)
2. API endpoints
All endpoints accept application/json or x-www-form-urlencoded.
POST/api/1.0/init
POST/api/1.0/login
POST/api/1.0/register
POST/api/1.0/license
POST/api/1.0/var
POST/api/1.0/log
POST/api/1.0/logout
3. Example flow
# 1) Init
curl -X POST https://your-domain/api/1.0/init \
-H "Content-Type: application/json" \
-d '{"appid":"YOUR_APP_ID","secret":"YOUR_APP_SECRET","hwid":"abc123"}'
# => { "success": true, "data": { "sessionid": "..." } }
# 2) Register
curl -X POST https://your-domain/api/1.0/register \
-H "Content-Type: application/json" \
-d '{"appid":"YOUR_APP_ID","secret":"YOUR_APP_SECRET","sessionid":"...","username":"user1","password":"pass","key":"XXXXX-XXXXX-XXXXX-XXXXX","hwid":"abc123"}'
# 3) Login
curl -X POST https://your-domain/api/1.0/login \
-H "Content-Type: application/json" \
-d '{"appid":"YOUR_APP_ID","secret":"YOUR_APP_SECRET","sessionid":"...","username":"user1","password":"pass","hwid":"abc123"}'
# 4) Validate license
curl -X POST https://your-domain/api/1.0/license \
-H "Content-Type: application/json" \
-d '{"appid":"YOUR_APP_ID","secret":"YOUR_APP_SECRET","sessionid":"...","key":"XXXXX-XXXXX-XXXXX-XXXXX","hwid":"abc123"}'4. Local setup
- Create a free Supabase project at
supabase.com - Run
supabase/schema.sqlin the SQL editor - Copy
.env.local.exampleto.env.localand fill in the values npm installthennpm run dev- Login at
/dashboard/loginwith the bootstrap credentials you set