API Documentation

Integrate WisPanel with your applications using our comprehensive REST API.

Base URL

https://your-server-ip:2083/api/v1

All API endpoints are relative to this base URL.

Quản lý DNS

API Quản lý DNS

Quản lý DNS zones, records và templates.

DNS Zone

GET  /api/v1/dns/{domain}         # Lấy zone
PUT  /api/v1/dns/{domain}         # Cập nhật toàn bộ zone
POST /api/v1/dns/{domain}/reset   # Reset về mặc định

DNS Records

GET    /api/v1/dns/{domain}/records   # Danh sách
POST   /api/v1/dns/{domain}/records   # Thêm record
PUT    /api/v1/dns/{domain}/records   # Cập nhật
DELETE /api/v1/dns/{domain}/records   # Xóa

Thêm record:

{
  "type": "A",
  "name": "subdomain",
  "value": "192.168.1.100",
  "ttl": 3600
}

DNS Templates

GET    /api/v1/dns/templates        # Danh sách templates
POST   /api/v1/dns/templates        # Tạo template
DELETE /api/v1/dns/templates/{id}   # Xóa template
POST   /api/v1/dns/{domain}/apply-template  # Áp dụng

Rate Limiting

API requests are limited to 60 requests per minute per API token.

  • X-RateLimit-Limit: Maximum requests per minute
  • X-RateLimit-Remaining: Remaining requests
  • X-RateLimit-Reset: Unix timestamp when limit resets