cwp-apilisted
Install: claude install-skill fattain-naime/cwp-superpowers
# CWP API Integration
Interact with the CWP REST API and shell-based API for automation, account management, and third-party integrations. Handle API endpoints, authentication, and common automation workflows.
If the user provides specific details via "$ARGUMENTS", focus the response on that API task. For example: `/cwp-pro-centos:cwp-api create account for example.com` will focus on the account creation API endpoint.
## API Overview
Use two API interfaces for CWP automation:
| Interface | Port | Protocol |
|---|---|---|
| REST API | 2304 | HTTPS |
| Shell API | N/A | CLI via `/scripts/cwp_api` |
## API Configuration
### Setup
1. Navigate to CWP Settings -> API Manager
2. Generate an API key
3. Whitelist allowed IP addresses
4. Note the API base URL
### Base URL
```
https://SERVER_IP:2304/v1/{function}
```
### Authentication
All API requests require the `key` parameter with your API key.
### Request Format
- Method: POST for all endpoints
- Response: JSON or XML
## REST API Endpoints
### Account Management
| Endpoint | Operations |
|---|---|
| `/v1/account` | add, update, delete, list, suspend, unsuspend |
| `/v1/accountdetail` | list |
| `/v1/accountquota` | list |
| `/v1/account_metadata` | list |
| `/v1/changepack` | update |
| `/v1/changepass` | update |
### Database Management
| Endpoint | Operations |
|---|---|
| `/v1/databasemysql` | add, delete, list |
| `/v1/usermysql` | add, delete, list |
### SSL Management
| Endpoint | Operations |
|---|---|
|