POST /api/v1/sites
Creates a new site with the specified domain and configuration. Requires thesites:provision:* API scope.
Authentication
Requires a valid API key with thesites:provision:* scope passed in the Authorization header.
Request Body
string
required
The domain of the site to create. The domain will be automatically normalized (lowercased, stripped of protocol/www prefix).Examples:
example.com, blog.example.com, 音乐.cnInternational domain names (IDNs) are supported. URI reserved characters (:, ?, #, [, ], @, !, $, &, ', (, ), *, +, ,, ;, =) are not allowed.string
default:"Etc/UTC"
The timezone for the site. Must be a valid IANA timezone identifier.Examples:
America/New_York, Europe/London, Asia/Tokyostring
The identifier of the team to create the site under. If not provided, the site will be created under the user’s default team.Note: If using a team-scoped API key, this parameter is ignored and the site is created under the API key’s team.
object
Optional configuration for the tracker script. If not provided, default values will be used.
Response
string
The domain of the created site.
string
The timezone of the created site.
array
List of allowed custom event properties for the site. Empty array by default.
object
The tracker script configuration for the site.