---
title: "Create new site"
method: POST
path: "/sites"
tags: ["Site"]
---

# Create new site

`POST /sites`

Create new site with given parameters

## Request body

- Site
  - `abtestConsent` 'OFF' | 'REQUIRED' | 'IABTCF'
  - `applicationFileUrl` string — URL for self-hosted kameleoon.js file. If not specified kameleoon.js will be loaded by default url - SITE_CODE.kameleoon.eu/kameleoon.js
  - `audienceConfig` AudienceConfig — Audience configuration.
    - `cartAmountGoal` integer — Goal to which the value of a customer's basket is linked
    - `cartAmountValue` integer — Conversion value linked to the primary goal
    - `dateCreated` string, date-time — Audience configuration creation date
    - `excludedConfigurationUrlList` AudienceConfigUrl[] — URLS to be excluded from your recommendations
      - `matchType` 'EXACT' | 'CONTAINS' | 'REGULAR_EXPRESSION' | 'TARGETED_URL'
      - `url` string
    - `excludedCustomData` integer[] — Personalized data to be excluded from your recommendations
    - `excludedExperimentList` integer[] — A/B tests to be excluded from your recommendations
    - `excludedGoalList` integer[] — Goals to be excluded from your recommendations
    - `excludedPersonalizationList` integer[] — Personalizations to be excluded from your recommendations
    - `excludedTargetingSegmentList` integer[] — Segments to be excluded from your recommendations
    - `excludedTargetingTypeList` string[] — Targeting criteria to be excluded from your recommendations
    - `id` integer — Unique Id of the audience configuration
    - `ignoreURLSettings` boolean — Ignore the settings in the URL of your pages
    - `includedConfigurationUrlList` AudienceConfigUrl[] — Primary URLs you want to optimize
      - `matchType` 'EXACT' | 'CONTAINS' | 'REGULAR_EXPRESSION' | 'TARGETED_URL'
      - `url` string
    - `includedCustomData` integer[] — Personalized data to be prioritized in your recommendations
    - `includedExperimentList` integer[] — A/B tests to be prioritized in your recommendations
    - `includedPersonalizationList` integer[] — Personalizations to be prioritized in your recommendations
    - `includedTargetingSegmentList` integer[] — Additional segments to track. Predictive segments are tracked by default
    - `includedTargetingTypeList` string[] — The 3 targeting criteria to be prioritized in your recommendations
    - `mainGoal` integer, required — Primary goal. It must correspond to the main conversion action of the site
    - `siteType` 'ECOMMERCE' | 'MEDIA' | 'OTHER' — Typology of the website
  - `behaviorWhenTimeout` 'RUN' | 'DISABLE_FOR_PAGE' | 'DISABLE_FOR_VISIT' — Behavior if timeout occurs. You can redefine the behavior of Kameleoon Application when the script exceeds the usual loading time. By default, the application will eventually launch, but with a flicker effect.
  - `captureEventMethod` 'CLICK' | 'MOUSEDOWN' | 'MOUSEUP'
  - `code` string — System generated code to uniquely identify a website.
  - `currency` 'USD' | 'EUR' | 'JPY' | 'GBP' | 'CNY' | 'AUD' | 'CAD' | 'CHF' | 'HKD' | 'SGD' | 'SEK' | 'KRW' | 'NOK' | 'NZD' | 'INR' | 'MXN' | 'TWD' | 'ZAR' | 'BRL' | 'DKK' | 'PLN' | 'THB' | 'ILS' | 'IDR' | 'CZK' | 'AED' | 'TRY' | 'HUF' | 'CLP' | 'SAR' | 'PHP' | 'MYR' | 'COP' | 'RUB' | 'RON' | 'PEN' | 'BHD' | 'BGN' | 'ARS' | 'KWD'
  - `customAttributes` string
  - `customSelectors` string[]
  - `dataStorage` 'STANDARD_COOKIE' | 'LOCAL_STORAGE' | 'CUSTOM_COOKIE' — This option allows you to choose the source where you can store the data of your A/B tests on the the visitor's device.
  - `dateCreated` string, date-time — Date when the site was created.
  - `description` string — Website description.
  - `domainNames` string[]
  - `experimentConfig` ExperimentConfig — Configuration of an experiment.
    - `abtestConsent` 'OFF' | 'REQUIRED' | 'IABTCF'
    - `abtestConsentOptout` 'RUN' | 'BLOCK'
    - `beforeAbtestConsent` 'NONE' | 'PARTIALLY' | 'ALL'
    - `customVariationSelectionScript` string — Variation Selection Script: By default, the assignment of a variation for an experiment to a visitor is handled through a random mechanism.You can customize this behavior by writing JavaScript code here. This code must return the ID of the assigned variation (please consult the developer documentation for more details).
    - `isEditorLaunchedByShortcut` boolean — Enables graphic editor launching through `shift + F2` keyboard shortcut.
    - `isKameleoonReportingEnabled` boolean — Result reporting. Activate Kameleoon’s reporting to view test results
    - `minWiningReliability` integer — Level of reliability needed to determine the winning variation of an experiment. Reliabilityof the variations is inferior to the rate determined in set-up. The variations should not be consideredas winning in your test results, regardless of the number of conversions for these variations. Be cautiouswhen changing this parameter, as it impacts the results Kameleoon provides.
  - `id` integer — Unique Id of the website.
  - `imagesUrl` string — URL for self-hosted images. If not specified images will be loaded by default url - SITE_CODE.kameleoon.eu/images/
  - `indicators` string[] — List of indicators such as: Retention rate, number of pages seen and dwell time.
  - `isAudienceUsed` boolean — Indicates if audience feature is enabled and used for the website.
  - `isKameleoonEnabled` boolean — Indicates if Kameleoon application is enbabled for the website.
  - `isScriptActive` boolean — Indicates if the script has been installed successfully and is active on the website.
  - `kameleoonDomain` string
  - `lastScriptRebuildDate` string, date-time — Date last rebuild Script.
  - `lastScriptRebuildStatus` 'SUCCESS' | 'FAILURE' — Status last rebuild Script.
  - `name` string — Name of the website.
  - `personalizationConfig` PersonalizationConfig — Configuration of a personalization.
    - `beforePersonalizationConsent` 'NONE' | 'PARTIALLY' | 'ALL'
    - `isSameJqueryInjectionAllowed` boolean — Allow the injection of jQuery. By default, Kameleoon allows you to display multiplepersonalization of the same type on a single page (for example, two pop-ups or two images in the same location).If you would like to disable this feature, please turn on the toggle option.
    - `isSameTypePersonalizationEnabled` boolean — Advanced options. By default, Kameleoon allows you to display multiplepersonalization of the same type on a single page (for example, two pop-ups or two images in the same location).If you would like to disable this feature, please turn on the toggle option.
    - `personalizationConsent` 'OFF' | 'REQUIRED' | 'IABTCF'
    - `personalizationConsentOptout` 'RUN' | 'BLOCK'
    - `personalizationsDeviation` number, double — Include visitors. Percentage of your visitors included in personalizations.You can define a visitor rate who will be hidden to your personalizations.Additionally, we advise you to keep a hidden sample population to determine theefficiency of your personalizations.
  - `realTimeConfigUpdate` boolean — Can SDK receive the configuration in real-time.
  - `recommendationSecretKey` string — Product recommendation secret key.
  - `recommendationStoreKey` string — Product recommendation store key.
  - `responsiveMobile` boolean
  - `shadowDom` boolean — ShadowDOM option.
  - `trackingScript` string — Global custom script is any JavaScript code that you add which will be executed at each page load. This custom script will be executed right after the loading of Kameleoon application. For instance, you can add complex tracking code or integration to some third party solutions in this section.
  - `type` 'SITE' | 'SITE_JS' | 'SITE_SDK' | 'APPLICATION' — Project type.
  - `url` string, required — URL of the website.
  - `wideDomain` string — Deprecated, use kameleoonDomain instead
  - `widgetFonts` WidgetFont[] — Widget fonts for site.
    - `fontFamily` string
    - `fontSrc` string
    - `fontWeights` string[]
    - `id` string
    - `importSrc` string

## Response `201`

Created

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `423` — Locked
- `500` — Internal Server Error

---

[API](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api.md) · [All operations](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kameleoon/openapi-definition-for-automation-api/versions/09f2abcea0b5/schema)
