Documentation for CSKU AI Public API and Webhooks.
# Buat repository baru di GitHub
# Lalu push kode Anda:
git remote add origin https://github.com/USERNAME/csku-docs.git
git branch -M main
git push -u origin main- Buka Mintlify Dashboard
- Klik "New Project" atau "Import Project"
- Pilih "Import from Git"
- Connect repository GitHub Anda
- Pilih repository
csku-docs - Mintlify akan otomatis deploy dokumentasi
Setelah deploy selesai, Anda akan mendapatkan URL seperti:
https://username.mintlify.app
Di dokumentasi yang sudah di-deploy:
- ✅ Fitur interaktif API akan jalan
- ✅ Bisa langsung test API dari browser
- ✅ Komponen
<ApiReference>akan menampilkan UI test API
mintlify dev memerlukan Node.js LTS (v18, v20), bukan versi terbaru (v25).
Sudah di-install Node 20 LTS:
# Pastikan menggunakan Node 20
node --version
# Harus: v20.x.x
# Jika masih v25, jalankan:
export PATH="/opt/homebrew/opt/node@20/bin:$PATH"
# Jalankan dev server
mintlify devJika ingin test API tanpa Mintlify:
# Test langsung menggunakan curl
curl -X POST "http://localhost:8080/v1/message" \
-H "Business: biz_123" \
-H "Secret: secret123456" \
-H "Content-Type: application/json" \
-d '{
"conversation_id": "conv_123",
"text": "Test message"
}'csku-docs/
├── mint.json # Konfigurasi Mintlify
├── openapi.yaml # Spesifikasi OpenAPI (WAJIB untuk fitur API interaktif)
├── introduction.mdx # Halaman intro
├── quickstart.mdx # Quickstart
├── authentication.mdx # Auth
├── error-codes.mdx # Error codes
├── api-reference/ # Dokumentasi API
│ ├── introduction.mdx
│ ├── health/
│ ├── message/
│ ├── note/
│ └── conversation/
├── webhooks/ # Dokumentasi Webhook
│ ├── introduction.mdx
│ ├── authentication.mdx
│ ├── configuration.mdx
│ ├── best-practices.mdx
│ ├── retry-mechanism.mdx
│ ├── troubleshooting.mdx
│ ├── examples.mdx
│ └── events/ # Event types
└── logo/ # Logo assets
| File | Penting | Deskripsi |
|---|---|---|
openapi.yaml |
WAJIB | Untuk fitur API interaktif di Mintlify |
mint.json |
WAJIB | Konfigurasi utama dokumentasi |
*.mdx |
WAJIB | Konten dokumentasi |
| Logo SVG | Opsional | Untuk branding |
Penyebab: mintlify dev lokal kadang tidak menampilkan komponen OpenAPI secara penuh.
Solusi:
- Deploy ke Mintlify cloud (rekomendasi)
- Atau gunakan Mintlify terbaru dengan Node LTS
Solusi:
# Install Node 20 LTS
brew install node@20
brew link --overwrite node@20
# Verify
node --versionPastikan format benar:
openapi: 3.0.3
info:
title: CSKU AI Public API
version: "1.3" # PAKAI TANDA KUTIP!Jika tidak ingin deploy ke Mintlify:
# Install Netlify CLI
npm install -g netlify-cli
# Deploy
netlify deploy --prod# Install Vercel CLI
npm install -g vercel
# Deploy
vercelUntuk bantuan lebih lanjut:
- Email: support@csku.ai
- Dokumentasi: https://docs.csku.ai
- Mintlify Docs: https://mintlify.com/docs