Skip to content
CWPControl Web PanelDocumentation

API v2

Updated

API v2 is the modern REST API for billing systems and multi-server management. It runs on port 2304 under the /v2 path. The older v1 API keeps working on the same port under /v1.

Enable & keys

Manage API keys/tokens in the admin panel API Manager. A key is restricted to the source IP(s) you allow, so only your billing or control server can call it.

Shape

  • Base URL: https://SERVER:2304/v2/
  • JSON request and response; token authentication.
  • Endpoints for accounts (create / update / suspend / unsuspend / delete / list), packages, and server information, aimed at billing automation and managing many servers from one place.

Firewall

Open port 2304 only to the IPs of your billing/management server (CSF TCP_IN and the key’s IP allow-list).