Auth
Semua request wajib membawa header:
Authorization: Bearer <API_KEY>
Authorized: Bearer <API_KEY> # fallback jika header Authorization belum ada
Install / Update
curl -fsSL https://vpn.botlynk.id/install.sh | sudo bash
curl -fsSL https://vpn.botlynk.id/update.sh | sudo bash
Endpoints
- POST /accounts
- GET /accounts
- GET /accounts/:id
- POST /accounts/:id/renew
- DELETE /accounts/:id
- GET /services
Lihat detail payload di repo docs: vpn-automation/docs/API.md
Contoh Request
curl -X POST https://api.botlynk.id/api/v1/vpn/accounts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"protocol": "vmess",
"username": "user1",
"password": "pass1",
"expires_at": "2026-01-30",
"bandwidth_gb": 1,
"device_limit": 1
}'
Catatan
Dokumentasi ini hanya menampilkan informasi API umum.