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.

Domains

Domains API

Manage domains on your server.

List Domains

GET /api/v1/domains

Response

{
  "data": [
    {
      "id": 1,
      "domain": "example.com",
      "php_version": "8.2",
      "ssl_enabled": true,
      "created_at": "2024-12-01T10:00:00Z"
    }
  ],
  "meta": {
    "total": 1,
    "page": 1
  }
}

Create Domain

POST /api/v1/domains

Request

{
  "domain": "newsite.com",
  "php_version": "8.2",
  "create_database": true,
  "enable_ssl": true
}

Delete Domain

DELETE /api/v1/domains/{id}

Returns 204 No Content on success.

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