v1

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

Create domain

Add a new domain to the site

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

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

Path parameters

organizationstring required

The organization slug

serverinteger required

The server ID

siteinteger required

The site ID

Request body

namestring required

The name of the domain.

allow_wildcard_subdomainsboolean required

Whether to allow wildcard subdomains for the domain.

www_redirect_type'from-www' | 'to-www' | 'none' required

Example request

{
  "name": "laravel.com"
}

Response

DomainRecordResource