v1

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-19273210655.1 KB
Sites

Create site

Add a new site to the server.

Processing mode: <small><code>async</code></small>

post/orgs/{organization}/servers/{server}/sites

Path parameters

organizationstring required

The organization slug

serverinteger required

The server ID

Request body

type'laravel' | 'symfony' | 'statamic' | 'wordpress' | 'phpmyadmin' | 'php' | 'nextjs' | 'nuxtjs' | 'static-html' | 'other' | 'custom' required
www_redirect_type'from-www' | 'to-www' | 'none'
allow_wildcard_subdomainsboolean

Whether to allow wildcard subdomains for the domain.

root_directorystring nullable
web_directorystring nullable
is_isolatedboolean
isolated_userstring
php_version'php5' | 'php56-old' | 'php56' | 'php70' | 'php71' | 'php72' | 'php73' | 'php74' | 'php80' | 'php81' | 'php82' | 'php83' | 'php84' | 'php85'
zero_downtime_deploymentsboolean
nginx_template_idinteger
source_control_provider'github' | 'gitlab' | 'bitbucket' | 'gitlab-custom' | 'custom'

All supported source control providers.

source_control_provider_idinteger nullable
repositorystring nullable
branchstring nullable
database_idinteger

The ID of the database to use with the site.

database_user_idinteger

The ID of the database user to use with the site.

statamic_setupstring

The type of setup for Statmic apps.

statamic_starter_kitstring

The starter kit for the Statamic app.

statamic_super_user_emailstring email
statamic_super_user_passwordstring nullable
install_composer_dependenciesboolean
generate_deploy_keyboolean
public_deploy_keystring
private_deploy_keystring
frontend_package_managerstring

The package manager for frontend applications.

frontend_build_commandstring

The build command for frontend assets.

nuxt_next_modestring

The render mode for Next/Nuxt applications.

nuxt_next_portinteger

The port used for Next/Nuxt applications.

push_to_deployboolean

Automatically trigger a new deployment when changes are pushed to the environment's Git branch.

tagsstring[] nullable

Response

SiteResource