Dokumentasi & REST API Reference LunexHost

Panduan komprehensif untuk deployment bot Discord dengan auto-restart, pengelolaan domain, serta integrasi Programmatic REST API v1 untuk AI Agents.

⚡ Quick REST API v1 Guide for AI Agents & Developers

Base URL: https://lunexhost.my.id/api/v1
OpenAPI Spec: https://lunexhost.my.id/api/v1/openapi.json | llms-full.txt: https://lunexhost.my.id/llms-full.txt

Alur Deployment Bot Berurutan (Sequential Deploy Flow):

  1. POST /api/v1/bots — Buat container bot baru (runtime: nodejs/python).
  2. POST /api/v1/bots/:id/upload — Upload source code dalam format file .ZIP (file berada di root ZIP, tanpa node_modules/.env).
  3. POST /api/v1/bots/:id/env — Set environment variables (misal: DISCORD_TOKEN).
  4. POST /api/v1/bots/:id/actions — Jalankan bot ({"action":"start"}).
  5. GET /api/v1/bots/:id/status & GET /api/v1/bots/:id/logs — Verifikasi status online dan cek console log.

1. Panduan Discord Bot

Cara membuat proyek bot baru, memasukkan token Discord Developer Portal, mengedit file di Web IDE Monaco, dan menjalankan bot dengan fitur keepalive.

2. Konfigurasi Domain & DNS

Cara klaim subdomain *.lunexhost.my.id gratis, menghubungkan custom domain pribadi, dan mengatur record DNS A, CNAME, TXT, serta MX.

3. Web Hosting Container

Panduan upload website statis atau aplikasi fullstack Express/Python, pengaturan port ingress, dan monitoring bandwidth.

4. Programmatic API Keys

Kelola API key di Dashboard (Settings > Programmatic API Keys) untuk memberikan akses terotentikasi kepada AI Agent dan skrip otomatisasi.