Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
feat: Add rocket-net-api skill (via api-doc-scraper)
Jez975b44d01b2b
diff --git a/skills/rocket-net-api/.claude-plugin/plugin.json b/skills/rocket-net-api/.claude-plugin/plugin.jsonnew file mode 100644index 00000000..0c1f1b53--- /dev/null+++ b/skills/rocket-net-api/.claude-plugin/plugin.json@@ -0,0 +1,12 @@+{+ "name": "rocket-net-api",+ "description": "Build integrations with Rocket.nets WordPress hosting API. Manage sites, domains, backups, plugins, themes, CDN cache, FTP accounts, and more programmatically. Use when: building WordPress hosting management tools, automating site deployment, creating reseller portals, managing multiple WordPress sites, integrating with Rocket.net hosting services, automating backup workflows, or building custom control panels.",+ "version": "1.0.0",+ "author": {+ "name": "Jeremy Dawes",+ "email": "[email protected]"+ },+ "license": "MIT",+ "repository": "https://github.com/jezweb/claude-skills",+ "keywords": []+}diff --git a/skills/rocket-net-api/README.md b/skills/rocket-net-api/README.mdnew file mode 100644index 00000000..33888c5d--- /dev/null+++ b/skills/rocket-net-api/README.md@@ -0,0 +1,28 @@+# Rocket.net API Skill++Build integrations with Rocket.net's managed WordPress hosting platform.++## Keywords++rocket.net, rocket net, rocketnet, wordpress hosting, managed wordpress, hosting api, wordpress api, site management, domain management, cdn cache, cloudflare cdn, backup api, restore backup, wordpress plugins, wordpress themes, ftp accounts, ssh keys, staging site, site clone, wp-cli, wordpress cli, reseller hosting, hosting reseller, control panel api, jwt authentication, site deployment, automated backups, cloud backups, waf firewall, access logs, bandwidth reporting, visitor statistics, password protection, shopshield, billing api, invoice management, payment methods++## Use Cases++- Building custom WordPress hosting control panels+- Automating site deployment and configuration+- Creating reseller hosting portals+- Bulk managing multiple WordPress sites+- Automating backup and restore workflows+- Integrating CDN cache purging into CI/CD+- Building monitoring dashboards for hosting metrics+- Automating plugin/theme updates across sites+- Managing staging environments programmatically++## Error Keywords++- "401 Authentication failed"+- "Token expired"+- "Invalid or missing request parameters"+- "Unable to authenticate"+- "rocket.net api"+- "control.rocket.net"diff --git a/skills/rocket-net-api/SKILL.md b/skills/rocket-net-api/SKILL.mdnew file mode 100644index 00000000..01309b6c--- /dev/null+++ b/skills/rocket-net-api/SKILL.md@@ -0,0 +1,544 @@+---+name: rocket-net-api+description: |+ Build integrations with Rocket.net's WordPress hosting API. Manage sites, domains, backups, plugins, themes, CDN cache, FTP accounts, and more programmatically.++ Use when: building WordPress hosting management tools, automating site deployment, creating reseller portals, managing multiple WordPress sites, integrating with Rocket.net hosting services, automating backup workflows, or building custom control panels.+license: MIT+---++# Rocket.net API Integration++Build integrations with Rocket.net's managed WordPress hosting platform API. This skill covers authentication, site management, domain configuration, backups, plugins/themes, CDN cache control, and all 200+ API endpoints.++## API Overview++**Base URL**: `https://api.rocket.net/v1`++**Authentication**: JWT token-based+- Obtain token via POST `/login` with email/password+- Token expires in 7 days+- Include in requests as `Authorization: Bearer <token>`++**Content Type**: JSON API+- Required header: `Content-Type: application/json`+- Recommended header: `Accept: application/json`++**Documentation**: https://rocketdotnet.readme.io/reference/introduction++## Authentication++### Get JWT Token++```typescript+const response = await fetch('https://api.rocket.net/v1/login', {+ method: 'POST',+ headers: {+ 'Content-Type': 'application/json',+ 'Accept': 'application/json'+ },+ body: JSON.stringify({+ username: '[email protected]',+ password: 'your-password'+ })+});++const { token } = await response.json();+// Use token in subsequent requests+```++### Authenticated Request Pattern++```typescript+async function rocketApiRequest(+ endpoint: string,+ options: RequestInit = {}+): Promise<any> {+ const response = await fetch(`https://api.rocket.net/v1${endpoint}`, {+ ...options,+ headers: {+ 'Content-Type': 'application/json',+ 'Accept': 'application/json',+ 'Authorization': `Bearer ${token}`,+ ...options.headers+ }+ });++ if (response.status === 401) {+ // Token expired, re-authenticate+ throw new Error('Token expired - request new token');+ }++ return response.json();+}+```++## API Endpoints by Category++### Sites Management++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/sites` | List all sites |+| POST | `/sites` | Create new site |+| GET | `/sites/{id}` | Get site details |+| PATCH | `/sites/{id}` | Update site properties |+| DELETE | `/sites/{id}` | Delete site |+| POST | `/sites/{id}/clone` | Clone a site (background task) |+| GET | `/sites/{id}/credentials` | Get site credentials |+| GET | `/sites/{id}/usage` | Get site usage statistics |+| POST | `/sites/{id}/lock` | Lock site (prevent modifications) |+| DELETE | `/sites/{id}/lock` | Unlock site |+| GET | `/sites/{id}/pma_login` | Get phpMyAdmin SSO link |+| GET | `/sites/{id}/settings` | Get site settings |+| PATCH | `/sites/{id}/settings` | Update site settings |+| GET | `/sites/locations` | List available site locations |++### Staging Sites++| Method | Endpoint | Description |+|--------|----------|-------------|+| POST | `/sites/{id}/staging` | Create staging site |+| DELETE | `/sites/{id}/staging` | Delete staging site |+| POST | `/sites/{id}/staging/publish` | Publish staging to production |++### Site Templates++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/sites/templates` | List site templates |+| POST | `/sites/templates` | Create site template |+| GET | `/sites/templates/{id}` | Get template details |+| DELETE | `/sites/templates/{id}` | Delete template |+| POST | `/sites/templates/{id}/sites` | Create site from template |++### Domains++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/sites/{id}/domains` | List domain aliases |+| POST | `/sites/{id}/domains` | Add domain alias |+| DELETE | `/sites/{id}/domains/{domainId}` | Remove domain alias |+| GET | `/sites/{id}/maindomain` | Get main domain info |+| POST | `/sites/{id}/maindomain` | Set main domain |+| PUT | `/sites/{id}/maindomain` | Replace main domain |+| PATCH | `/sites/{id}/maindomain` | Update domain validation/SSL |+| GET | `/sites/{id}/maindomain/status` | Check domain status |+| GET | `/sites/{id}/maindomain/recheck` | Force validation recheck |+| GET | `/sites/{id}/domains/{domainId}/edge_settings` | Get edge settings |+| PATCH | `/sites/{id}/domains/{domainId}/edge_settings` | Update edge settings |++### CDN Cache++| Method | Endpoint | Description |+|--------|----------|-------------|+| POST | `/sites/{id}/cache/purge` | Purge specific files |+| POST | `/sites/{id}/cache/purge_everything` | Purge all cache |++### Plugins++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/sites/{id}/plugins` | List installed plugins |+| POST | `/sites/{id}/plugins` | Install plugins |+| PATCH | `/sites/{id}/plugins` | Activate/deactivate plugins |+| PUT | `/sites/{id}/plugins` | Update plugins |+| DELETE | `/sites/{id}/plugins` | Delete plugins |+| GET | `/sites/{id}/plugins/search` | Search available plugins |+| GET | `/sites/{id}/featured_plugins` | List featured plugins |++### Themes++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/sites/{id}/themes` | List installed themes |+| POST | `/sites/{id}/themes` | Install themes |+| PATCH | `/sites/{id}/themes` | Activate theme |+| PUT | `/sites/{id}/themes` | Update themes |+| DELETE | `/sites/{id}/themes` | Delete themes |+| GET | `/sites/{id}/themes/search` | Search available themes |++### Backups++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/sites/{id}/backup` | List backups |+| POST | `/sites/{id}/backup` | Create backup |+| GET | `/sites/{id}/backup/{backupId}` | Download backup |+| DELETE | `/sites/{id}/backup/{backupId}` | Delete backup |+| POST | `/sites/{id}/backup/{backupId}/restore` | Restore backup |+| GET | `/sites/{id}/backup/automated` | List automated backups |+| POST | `/sites/{id}/backup/automated/{restoreId}/restore` | Restore automated backup |++### Cloud Backups++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/sites/{id}/cloud_backups` | List cloud backups |+| POST | `/sites/{id}/cloud_backups` | Create cloud backup |+| GET | `/sites/{id}/cloud_backups/{backupId}` | Get cloud backup |+| DELETE | `/sites/{id}/cloud_backups/{backupId}` | Delete cloud backup |+| GET | `/sites/{id}/cloud_backups/{backupId}/download` | Get download link |+| POST | `/sites/{id}/cloud_backups/{backupId}/restore` | Restore cloud backup |++### Files++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/sites/{id}/file_manager/files` | List files |+| POST | `/sites/{id}/files` | Upload file |+| PUT | `/sites/{id}/files` | Save file contents |+| DELETE | `/sites/{id}/files` | Delete file |+| GET | `/sites/{id}/files/view` | View file contents |+| GET | `/sites/{id}/files/download` | Download file |+| POST | `/sites/{id}/files/folder` | Create folder |+| POST | `/sites/{id}/files/extract` | Extract archive |+| POST | `/sites/{id}/files/compress` | Compress files |+| PATCH | `/sites/{id}/files/chmod` | Change permissions |++### FTP Accounts++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/sites/{id}/ftp_accounts` | List FTP accounts |+| POST | `/sites/{id}/ftp_accounts` | Create FTP account |+| PATCH | `/sites/{id}/ftp_accounts` | Update FTP account |+| DELETE | `/sites/{id}/ftp_accounts` | Delete FTP account |++### SSH Keys++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/sites/{id}/ssh_keys` | List SSH keys |+| POST | `/sites/{id}/ssh_keys` | Import SSH key |+| DELETE | `/sites/{id}/ssh_keys` | Delete SSH key |+| POST | `/sites/{id}/ssh_keys/authorize` | Activate SSH key |+| POST | `/sites/{id}/ssh_keys/deauthorize` | Deactivate SSH key |+| GET | `/sites/{id}/ssh_keys/{name}` | View SSH key info |++### WordPress++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/sites/{id}/wp_login` | Get WordPress SSO link |+| GET | `/sites/{id}/wp_status` | Get WordPress status |+| POST | `/sites/{id}/wpcli` | Execute WP-CLI command |++### Reporting++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/reporting/sites/{id}/cdn_requests` | CDN requests report |+| GET | `/reporting/sites/{id}/cdn_cache_status` | Cache status report |+| GET | `/reporting/sites/{id}/cdn_cache_content` | Cache content report |+| GET | `/reporting/sites/{id}/visitors` | Visitors report |+| GET | `/reporting/sites/{id}/waf_eventlist` | WAF events list |+| GET | `/reporting/sites/{id}/waf_events_source` | WAF events by source |+| GET | `/reporting/sites/{id}/waf_firewall_events` | Firewall events |+| GET | `/reporting/sites/{id}/bandwidth_usage` | Bandwidth usage |+| GET | `/reporting/sites/{id}/bandwidth_top_usage` | Top bandwidth usage |+| GET | `/sites/{id}/access_logs` | Access logs |++### Account Management++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/account/me` | Get user information |+| PATCH | `/account/me` | Update account settings |+| GET | `/account/usage` | Get account usage stats |+| POST | `/account/password` | Change password |+| GET | `/account/tasks` | List account tasks |+| GET | `/account/hosting_plan` | Get current plan |+| PUT | `/account/hosting_plan` | Change hosting plan |+| POST | `/account/billing_sso` | Get billing SSO cookie |++### Account Users++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/users` | List account users |+| POST | `/users` | Create account user |+| GET | `/users/{userId}` | Get user details |+| PATCH | `/users/{userId}` | Update user |+| DELETE | `/users/{userId}` | Remove user |+| POST | `/users/{userId}/reinvite` | Resend invite |++### Site Users++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/sites/{id}/users` | List site users |+| POST | `/sites/{id}/users` | Invite site user |+| DELETE | `/sites/{id}/users/{userId}` | Remove site user |+| POST | `/sites/{id}/users/{userId}/reinvite` | Resend invite |++### Billing++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/billing/addresses` | List billing addresses |+| POST | `/billing/addresses` | Create billing address |+| GET | `/billing/addresses/{addressId}` | Get billing address |+| PATCH | `/billing/addresses/{addressId}` | Update billing address |+| DELETE | `/billing/addresses/{addressId}` | Delete billing address |+| GET | `/billing/invoices` | List invoices |+| GET | `/billing/invoices/{invoiceId}` | Get invoice |+| GET | `/billing/invoices/{invoiceId}/pdf` | Download invoice PDF |+| POST | `/billing/invoices/{invoiceId}/credit_card_payment` | Pay with card |+| GET | `/billing/payment_methods` | List payment methods |+| POST | `/billing/payment_methods` | Add payment method |+| DELETE | `/billing/payment_methods/{methodId}` | Delete payment method |+| GET | `/billing/products` | List available products |++### Additional Features++| Method | Endpoint | Description |+|--------|----------|-------------|+| GET | `/sites/{id}/password_protection` | Get password protection status |+| POST | `/sites/{id}/password_protection` | Enable password protection |+| DELETE | `/sites/{id}/password_protection` | Disable password protection |+| GET | `/sites/{id}/shopshield` | List ShopShield URIs |+| POST | `/sites/{id}/shopshield` | Enable ShopShield |+| DELETE | `/sites/{id}/shopshield/{id}` | Disable ShopShield |+| GET | `/account/visitors` | Account visitor stats |+| GET | `/account/bandwidth` | Account bandwidth stats |++## Common Patterns++### List All Sites++```typescript+const sites = await rocketApiRequest('/sites');+console.log(sites);+// Returns array of site objects with id, domain, status, etc.+```++### Create a New Site++```typescript+const newSite = await rocketApiRequest('/sites', {+ method: 'POST',+ body: JSON.stringify({+ name: 'my-new-site',+ location: 'us-east-1',+ // Additional options as needed+ })+});+```++### Purge CDN Cache++```typescript+// Purge specific URLs+await rocketApiRequest(`/sites/${siteId}/cache/purge`, {+ method: 'POST',+ body: JSON.stringify({+ files: [+ 'https://example.com/style.css',+ 'https://example.com/script.js'+ ]+ })+});++// Purge everything+await rocketApiRequest(`/sites/${siteId}/cache/purge_everything`, {+ method: 'POST'+});+```++### Create and Restore Backup++```typescript+// Create backup+const backup = await rocketApiRequest(`/sites/${siteId}/backup`, {+ method: 'POST'+});++// List backups+const backups = await rocketApiRequest(`/sites/${siteId}/backup`);++// Restore backup (background task)+await rocketApiRequest(`/sites/${siteId}/backup/${backupId}/restore`, {+ method: 'POST'+});+```++### Manage Plugins++```typescript+// List installed plugins+const plugins = await rocketApiRequest(`/sites/${siteId}/plugins`);++// Install plugin+await rocketApiRequest(`/sites/${siteId}/plugins`, {+ method: 'POST',+ body: JSON.stringify({+ plugins: ['wordfence', 'yoast-seo']+ })+});++// Update all plugins+await rocketApiRequest(`/sites/${siteId}/plugins`, {+ method: 'PUT',+ body: JSON.stringify({+ plugins: ['all']+ })+});++// Activate/deactivate plugin+await rocketApiRequest(`/sites/${siteId}/plugins`, {+ method: 'PATCH',+ body: JSON.stringify({+ plugins: ['wordfence'],+ action: 'activate' // or 'deactivate'+ })+});+```++### Execute WP-CLI Commands++```typescript+const result = await rocketApiRequest(`/sites/${siteId}/wpcli`, {+ method: 'POST',+ body: JSON.stringify({+ command: 'user list --format=json'+ })+});+```++### WordPress SSO Login++```typescript+// Get SSO link for WordPress admin+const { url } = await rocketApiRequest(`/sites/${siteId}/wp_login`);+// Redirect user to url for auto-login+```++## TypeScript Types++```typescript+interface RocketSite {+ id: number;+ name: string;+ domain: string;+ status: 'active' | 'suspended' | 'pending';+ location: string;+ created_at: string;+ updated_at: string;+}++interface RocketBackup {+ id: number;+ site_id: number;+ type: 'manual' | 'automated' | 'cloud';+ status: 'pending' | 'completed' | 'failed';+ size: number;+ created_at: string;+}++interface RocketPlugin {+ name: string;+ slug: string;+ version: string;+ status: 'active' | 'inactive';+ update_available: boolean;+}++interface RocketDomain {+ id: number;+ domain: string;+ is_main: boolean;+ ssl_status: 'pending' | 'active' | 'failed';+ validation_method: 'dns' | 'http';+}++interface RocketAuthResponse {+ token: string;+ expires_at: string;+}+```++## Error Handling++```typescript+interface RocketApiError {+ error: string;+ message: string;+ status: number;+}++async function handleRocketRequest(endpoint: string, options?: RequestInit) {+ try {+ const response = await rocketApiRequest(endpoint, options);+ return { data: response, error: null };+ } catch (error) {+ if (error.status === 401) {+ // Re-authenticate and retry+ await refreshToken();+ return handleRocketRequest(endpoint, options);+ }+ if (error.status === 404) {+ return { data: null, error: 'Resource not found' };+ }+ if (error.status === 429) {+ // Rate limited - wait and retry+ await sleep(1000);+ return handleRocketRequest(endpoint, options);+ }+ return { data: null, error: error.message };+ }+}+```++## Background Tasks++Many operations (clone, backup restore, staging publish) run as background tasks. Monitor task status:++```typescript+// Start a background task+const { task_id } = await rocketApiRequest(`/sites/${siteId}/clone`, {+ method: 'POST',+ body: JSON.stringify({ name: 'cloned-site' })+});++// Check task status+const tasks = await rocketApiRequest(`/sites/${siteId}/tasks`);+const task = tasks.find(t => t.id === task_id);+console.log(task.status); // 'pending', 'running', 'completed', 'failed'++// Cancel task if needed+await rocketApiRequest(`/sites/${siteId}/tasks/${task_id}/cancel`, {+ method: 'POST'+});+```++## Rate Limits++The API has rate limits. Implement exponential backoff:++```typescript+async function withRetry<T>(+ fn: () => Promise<T>,+ maxRetries = 3,+ delay = 1000+): Promise<T> {+ for (let i = 0; i < maxRetries; i++) {+ try {+ return await fn();+ } catch (error) {+ if (error.status === 429 && i < maxRetries - 1) {+ await new Promise(resolve => setTimeout(resolve, delay * Math.pow(2, i)));+ continue;+ }+ throw error;+ }+ }+ throw new Error('Max retries exceeded');+}+```++## References++- [Rocket.net API Documentation](https://rocketdotnet.readme.io/reference/introduction)+- [Rocket.net Control Panel](https://control.rocket.net)+- [Rocket.net WordPress Hosting](https://rocket.net)diff --git a/skills/rocket-net-api/references/endpoints.md b/skills/rocket-net-api/references/endpoints.mdnew file mode 100644index 00000000..df12087d--- /dev/null+++ b/skills/rocket-net-api/references/endpoints.md@@ -0,0 +1,312 @@+# Rocket.net API Endpoints Reference++Complete list of all 200+ API endpoints organized by category.++**Base URL**: `https://api.rocket.net/v1`+**Documentation**: https://rocketdotnet.readme.io/reference/introduction++## Authentication++| Method | Path | Description |+|--------|------|-------------|+| POST | `/login` | Authenticate user and generate JWT token |++## Billing++| Method | Path | Description |+|--------|------|-------------|+| GET | `/billing/addresses` | List Billing Addresses |+| POST | `/billing/addresses` | Create Billing Address |+| GET | `/billing/addresses/{address_id}` | Get Billing Address |+| PATCH | `/billing/addresses/{address_id}` | Update Billing Address |+| DELETE | `/billing/addresses/{address_id}` | Delete Billing Address |+| GET | `/billing/invoices` | List Invoices |+| GET | `/billing/emails` | List Billing Emails |+| GET | `/billing/invoices/{invoice_id}` | Get Invoice |+| GET | `/billing/emails/{email_id}` | Get Billing Email |+| POST | `/billing/invoices/{invoice_id}/credit_card_payment` | Record a Credit Card Payment |+| PATCH | `/billing/invoices/{invoice_id}/paypal_subscription` | Update a PayPal Subscription |+| POST | `/billing/invoices/{invoice_id}/paypal_subscription` | Create a PayPal Subscription |+| GET | `/billing/invoices/{invoice_id}/pdf` | Download Invoice PDF |+| GET | `/billing/payment_methods` | List Payment Methods |+| POST | `/billing/payment_methods` | Add Credit Card |+| GET | `/billing/payment_methods/{method_id}` | Get Payment Method |+| DELETE | `/billing/payment_methods/{method_id}` | Delete Payment Method |+| PATCH | `/billing/payment_methods/{method_id}` | Update Payment Method |+| POST | `/billing/payment_methods/credit_card_setup_intent` | Create Credit Card Setup Intent |+| GET | `/billing/products` | List Available Products |++## Sites++| Method | Path | Description |+|--------|------|-------------|+| GET | `/sites` | List sites |+| POST | `/sites` | Create new site |+| GET | `/sites/{id}` | Get information about site from system |+| DELETE | `/sites/{id}` | Delete site from system |+| PATCH | `/sites/{id}` | Update site properties |+| POST | `/sites/{id}/access_token` | Generate token valid for accessing site operations |+| GET | `/sites/all_locations` | List Site locations (including restricted) |+| POST | `/sites/{id}/clone` | Clone a site (via background task) |+| GET | `/sites/{id}/credentials` | Get password and username for site |+| GET | `/sites/locations` | List Site locations |+| POST | `/sites/{id}/lock` | Lock a site so that no modifications can be made |+| DELETE | `/sites/{id}/lock` | Unlock a site so that modifications can be made again |+| GET | `/sites/{id}/pma_login` | Get SSO link for phpMyAdmin account |+| GET | `/sites/{id}/settings` | Get site settings |+| PATCH | `/sites/{id}/settings` | Update site settings |+| POST | `/sites/{id}/staging` | Create new staging site for given site (via background task) |+| GET | `/sites/{id}/settings/schema` | Get schema of all possible settings for the site |+| DELETE | `/sites/{id}/staging` | Delete staging site for given site |+| POST | `/sites/{id}/staging/publish` | Publish staging site as an active site (via background task) |+| GET | `/sites/{id}/tasks` | List Site Tasks |+| POST | `/sites/{id}/tasks/{task_id}/cancel` | Mark Site Task as Cancelled |+| GET | `/sites/{id}/usage` | Get site usage |++## Site Templates++| Method | Path | Description |+|--------|------|-------------|+| POST | `/site_templates/task` | Create new site template |+| GET | `/sites/templates` | List Site Templates |+| POST | `/sites/templates` | [Deprecated]: Create new site template |+| GET | `/sites/templates/{id}` | Get Site Templates |+| DELETE | `/sites/templates/{id}` | Delete Site Templates |+| POST | `/sites/templates/{id}/sites` | Create new site from a site template |++## Domains++| Method | Path | Description |+|--------|------|-------------|+| GET | `/sites/{id}/domains` | List additional domains (aliases) for the site |+| POST | `/sites/{id}/domains` | Create additional domain |+| DELETE | `/sites/{id}/domains/{domain_id}` | Delete additional domain |+| GET | `/sites/{id}/domains/{domain_id}/edge_settings` | Get additional domain Edge Settings |+| PATCH | `/sites/{id}/domains/{domain_id}/edge_settings` | Update additional domain Edge Settings |+| GET | `/sites/{id}/maindomain` | Get site main domain info |+| POST | `/sites/{id}/maindomain` | Set a domain for a Site |+| PATCH | `/sites/{id}/maindomain` | Update maindomain validation method or SSL CA |+| PUT | `/sites/{id}/maindomain` | Replace current maindomain with different one |+| GET | `/sites/{id}/maindomain/edge_settings` | Get Maindomain Edge Settings |+| PATCH | `/sites/{id}/maindomain/edge_settings` | Update Maindomain Edge Settings |+| PATCH | `/sites/{id}/maindomain/prefix` | Change existing prefix for domain |+| GET | `/sites/{id}/maindomain/recheck` | Force validation status recheck |+| GET | `/sites/{id}/maindomain/status` | Checks the status of the maindomain, any alternate maindomains, and additional domains |++## CDN Cache++| Method | Path | Description |+|--------|------|-------------|+| POST | `/sites/{id}/cache/purge` | Purge files from cache on cloudflare |+| POST | `/sites/{id}/cache/purge_everything` | Purge all files from single domain from cache on cloudflare |++## FTP Accounts++| Method | Path | Description |+|--------|------|-------------|+| GET | `/sites/{id}/ftp_accounts` | List Ftp Accounts |+| POST | `/sites/{id}/ftp_accounts` | Create new ftp account |+| PATCH | `/sites/{id}/ftp_accounts` | Update ftp account |+| DELETE | `/sites/{id}/ftp_accounts` | Delete ftp account |++## Plugins++| Method | Path | Description |+|--------|------|-------------|+| GET | `/sites/{id}/featured_plugins` | List available featured plugins |+| GET | `/sites/{id}/plugins` | List installed WordPress plugins on account |+| POST | `/sites/{id}/plugins` | Install new WordPress plugins to site |+| PATCH | `/sites/{id}/plugins` | Activate or deactivate WordPress plugins on given site |+| PUT | `/sites/{id}/plugins` | Update WordPress plugins on given site |+| DELETE | `/sites/{id}/plugins` | Delete WordPress plugins from given site |+| POST | `/sites/{id}/plugins/rocket_cdn_cache_management` | Install / re-install the Rocket CDN Cache Management plugin |+| GET | `/sites/{id}/plugins/search` | Search for WordPress plugins that can be installed |++## Themes++| Method | Path | Description |+|--------|------|-------------|+| GET | `/sites/{id}/themes` | List installed Wordpress themes on account |+| POST | `/sites/{id}/themes` | Install new WordPress themes to site |+| PATCH | `/sites/{id}/themes` | Activate or deactivate WordPress themes on given site |+| PUT | `/sites/{id}/themes` | Update WordPress themes on given site |+| DELETE | `/sites/{id}/themes` | Delete WordPress theme from site |+| GET | `/sites/{id}/themes/search` | Search for WordPress themes that can be installed |++## Reporting++| Method | Path | Description |+|--------|------|-------------|+| GET | `/reporting/sites/{id}/cdn_requests` | Retrieve CDN requests report |+| GET | `/reporting/sites/{id}/cdn_cache_status` | Retrieve CDN cache-status report |+| GET | `/reporting/sites/{id}/cdn_cache_content` | Retrieve CDN cache-content report |+| GET | `/reporting/sites/{id}/cdn_cache_top` | [Deprecated] Retrieve cdn cache-top report |+| GET | `/reporting/sites/{id}/visitors` | Retrieve cdn visitors report |+| GET | `/reporting/sites/{id}/waf_eventlist` | List WAF Events |+| GET | `/reporting/sites/{id}/waf_events_source` | Retrieve WAF events source report |+| GET | `/reporting/sites/{id}/waf_firewall_events` | Retrieve WAF firewall events report |+| GET | `/reporting/sites/{id}/waf_events_services` | Retrieve WAF events services report |+| GET | `/reporting/sites/{id}/waf_events_time` | Retrieve WAF events time report |+| GET | `/reporting/sites/{id}/waf_events` | [Deprecated]: List WAF Events |+| GET | `/reporting/sites/{id}/bandwidth_top_usage` | Get top usage bandwidth report |+| GET | `/reporting/sites/{id}/bandwidth_usage` | Get usage bandwidth report |+| GET | `/sites/{id}/access_logs` | List Access Logs |+| GET | `/sites/{id}/reporting/cdn_request_volume_by_source` | CDN Request Volume by Source |+| GET | `/sites/{id}/reporting/total_requests` | Total requests from all sources |++## SSH Keys++| Method | Path | Description |+|--------|------|-------------|+| GET | `/sites/{id}/ssh_keys` | List SSH keys for given site |+| POST | `/sites/{id}/ssh_keys` | Import an ssh key for a site |+| DELETE | `/sites/{id}/ssh_keys` | Delete SSH key for given site |+| POST | `/sites/{id}/ssh_keys/authorize` | Activate SSH key for given site |+| POST | `/sites/{id}/ssh_keys/deauthorize` | Deactivate SSH key for given site |+| GET | `/sites/{id}/ssh_keys/{name}` | View SSH key info for given site |++## Visitors++| Method | Path | Description |+|--------|------|-------------|+| GET | `/account/visitors` | Get unique visitors statistics for user account |+| GET | `/sites/{id}/visitors` | Get unique visitors statistics for given site |++## Bandwidth++| Method | Path | Description |+|--------|------|-------------|+| GET | `/account/bandwidth` | Get bandwidth usage statistics for user account |+| GET | `/sites/{id}/reporting/bandwidth` | Get bandwidth usage statistics for given site |++## Backups++| Method | Path | Description |+|--------|------|-------------|+| POST | `/sites/{id}/backup` | Create a new backup for given site |+| GET | `/sites/{id}/backup` | Get a list of backups for site |+| GET | `/sites/{id}/backup/{backup_id}` | Download given backup for site |+| DELETE | `/sites/{id}/backup/{backup_id}` | Delete given backup for site from the system |+| POST | `/sites/{id}/backup/{backup_id}/restore` | Restore a backup for given site (via background task) |+| GET | `/sites/{id}/backup/automated` | List automated backups |+| POST | `/sites/{id}/backup/automated/{restore_id}/restore` | Restore existing automated restore point (via background task) |+| POST | `/sites/{id}/backup/automated/{restore_id}/restore_database` | Restore existing automated restore point database |+| POST | `/sites/{id}/backup/automated/{restore_id}/restore_files` | Restore existing automated restore point files |++## Cloud Backups++| Method | Path | Description |+|--------|------|-------------|+| GET | `/sites/{id}/cloud_backups` | List cloud backups |+| POST | `/sites/{id}/cloud_backups` | Create a new cloud backup |+| GET | `/sites/{id}/cloud_backups/{backup_id}` | Get a cloud backup |+| DELETE | `/sites/{id}/cloud_backups/{backup_id}` | Delete a cloud backup |+| GET | `/sites/{id}/cloud_backups/{backup_id}/download` | Get Cloud Backup Download Link |+| POST | `/sites/{id}/cloud_backups/{backup_id}/restore` | Restore cloud backup / Create new site from backup |++## Files++| Method | Path | Description |+|--------|------|-------------|+| GET | `/sites/{id}/file_manager/files` | List Site Files |+| GET | `/sites/{id}/files` | [Deprecated] List files in a site installation |+| POST | `/sites/{id}/files` | Upload a file to the site installation |+| PUT | `/sites/{id}/files` | Save contents of a file to the site installation |+| DELETE | `/sites/{id}/files` | Delete file from a site installation |+| POST | `/sites/{id}/files/extract` | Extract a file |+| POST | `/sites/{id}/files/compress` | Compress files or folders |+| PATCH | `/sites/{id}/files/chmod` | Change file permissions |+| GET | `/sites/{id}/files/download` | Download contents of a given file |+| POST | `/sites/{id}/files/folder` | Create folder in a site installation |+| GET | `/sites/{id}/files/view` | View contents of a given file |++## Account++| Method | Path | Description |+|--------|------|-------------|+| POST | `/account/request_cancel` | Request that your Rocket.net account be cancelled |+| GET | `/account/hosting_plan` | Get Current Hosting Plan |+| PUT | `/account/hosting_plan` | Change Account's Hosting Plan |+| POST | `/account/hosting_plan` | Set Hosting Plan |+| GET | `/account/me` | Get user information |+| PATCH | `/account/me` | Update user account settings |+| GET | `/account/usage` | Get unique usage statistics for user account |+| POST | `/account/billing_sso` | Get a cookie to allow for access to billing data |+| POST | `/account/password` | Set a new password for your account |+| GET | `/account/tasks` | Get a list of account level tasks |++## Activity++| Method | Path | Description |+|--------|------|-------------|+| POST | `/sites/{id}/activity/disable` | Stops events logging |+| POST | `/sites/{id}/activity/enable` | Starts events logging |+| POST | `/sites/{id}/activity/events` | Insert new event into system |+| GET | `/sites/{id}/activity/events` | List Activity Events |+| GET | `/sites/{id}/activity/events/{event_id}` | Get event for a site installation with event id |+| DELETE | `/sites/{id}/activity/events/{event_id}` | Delete event from a site installation |++## Site Users++| Method | Path | Description |+|--------|------|-------------|+| GET | `/sites/{id}/users` | List all the site users for a Site |+| POST | `/sites/{id}/users` | Send invite to site user |+| GET | `/sites/{id}/users/accept` | Accept invite to site |+| POST | `/sites/{id}/users/accept` | Accept invite to site |+| DELETE | `/sites/{id}/users/{user_id}` | Remove site access for site user |+| POST | `/sites/{id}/users/{user_id}/reinvite` | Send re-invite to site user |+| POST | `/sites/users` | Create new site user |+| GET | `/sites/users` | List all the site for user |+| POST | `/sites/users/login` | Login as a site user |+| POST | `/sites/users/reset_password` | Reset password for the site user |+| PATCH | `/sites/users/{user_id}` | Update site user |+| POST | `/sites/users/{user_id}/password` | Create or update password for the site user |++## Password Protection++| Method | Path | Description |+|--------|------|-------------|+| GET | `/sites/{id}/password_protection` | Get site password protection status |+| POST | `/sites/{id}/password_protection` | Enable site password protection |+| DELETE | `/sites/{id}/password_protection` | Disable site password protection |+| GET | `/sites/{id}/password_protection/users` | List site password protection users |+| POST | `/sites/{id}/password_protection/users` | Add site password protection user |+| DELETE | `/sites/{id}/password_protection/users/{user_id}` | Remove site password protection user |++## Password Strength++| Method | Path | Description |+|--------|------|-------------|+| POST | `/password_strength` | Check strength of the given password |++## Account Users++| Method | Path | Description |+|--------|------|-------------|+| POST | `/users` | Create new user who can access your Rocket.net account |+| GET | `/users` | List all users in your account |+| DELETE | `/users/{user_id}` | Remove a User from your account |+| GET | `/users/{user_id}` | Get information about a specific user in your account |+| PATCH | `/users/{user_id}` | Update user |+| POST | `/users/{user_id}/password` | Create first time password for the Account User |+| POST | `/users/{user_id}/reinvite` | Re-send invite email to User |+| GET | `/users/accept` | Accept an invitation to help manage a Rocket.net account |++## ShopShield++| Method | Path | Description |+|--------|------|-------------|+| GET | `/sites/{id}/shopshield` | List ShopShield URIs for a site |+| POST | `/sites/{id}/shopshield` | Enable ShopShield for a URI |+| DELETE | `/sites/{id}/shopshield/{id}` | Disable ShopShield for a URI |+| GET | `/sites/{id}/shopshield/{id}` | Get ShopShield URI Details |++## WordPress++| Method | Path | Description |+|--------|------|-------------|+| POST | `/sites/{id}/cli` | Execute cli command on wp installation ([Deprecated]) |+| GET | `/sites/{id}/wp_login` | Get SSO link for wordpress account |+| GET | `/sites/{id}/wp_status` | Get Status of WordPress for the site |+| POST | `/sites/{id}/wpcli` | Execute wp cli command on site |