site_create
Create a website on FastPanel with domain, IPs, and PHP version. Optionally create owner, database, and FTP accounts. Run dry_run first, then confirm to apply.
Instructions
Create a new website in FastPanel using the /api/master wizard endpoint. Can create owner/database/FTP inline atomically. Does NOT issue SSL — call certificate_create_letsencrypt after site is active. WRITE operation — set dry_run:true first, then confirm:true to execute. Flow: (1) POST /api/master/domain probes for existing email/DNS zones, (2) PUT /api/master creates the site with everything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ips | Yes | Server IPs to bind to, e.g. ['100.42.181.157']. Get from sites_list → ips field. | |
| domain | Yes | Primary domain, e.g. 'example.com' or 'sub.example.com' | |
| aliases | No | Additional domain aliases, e.g. ['www.example.com'] | |
| confirm | No | ||
| dry_run | No | ||
| handler | No | PHP handler: php_fpm is faster, fcgi simpler. Use site_get on existing sites to see what this project prefers. | fcgi |
| database | No | Optionally create a new database linked to this site. Omit to skip DB creation. | |
| owner_id | No | Existing FastPanel user id (from users_list). Use this OR new_owner, not both. | |
| new_owner | No | Create a new user inline. Use this OR owner_id, not both. EXPERIMENTAL — not yet tested against live API. | |
| ftp_account | No | Optionally create an FTP account. Omit to skip. | |
| php_version | Yes | PHP version without dot: 74=7.4, 80=8.0, 82=8.2, 83=8.3, 84=8.4 |