Skip to main content
Sites

Create a site

POST
/sites
Authorizationstringheaderrequired

A reseller API token, issued by Consent Studio support.

Body

application/json
access_to_pricesstring[] | null
aliasesstring[]
banner_positionenum<string> | null
Available options: center_center, bottom_center, bottom_left, bottom_right, top_center, top_left, top_right, left_center, right_center
dark_modeboolean | null
detect_appearanceboolean | null
domainstringrequired
Maximum string length: 255
Pattern: ^(?!www\.)(([a-z0-9\-])*\.)*([a-z0-9\-])*\.[a-z]{2,13}$
enable_analytics_repromptingboolean | null
enable_brand_iconboolean | null
enable_close_iconboolean | null
enable_http_cookies_via_cnameboolean | null
enable_http_cookies_via_workerboolean | null
enable_marketing_repromptingboolean | null
enable_reject_all_buttonboolean | null
enable_toggle_on_desktopboolean | null
enable_toggle_on_mobileboolean | null
hide_inactive_categoriesboolean | null
highlight_accept_all_buttonboolean | null
languagesstring[]
Maximum string length: 255
Maximum string length: 255
overlay_modeboolean | null
plan_uuidstring | null
Maximum string length: 255
primary_colorstring | null
Required string length: 3 - 7
toggle_positionenum<string> | null
Available options: left, right

Response

application/json

Created.

access_to_pricesobjectrequired
aliasesany[]required
banner_positionstring | enum<string> | nullrequired
dark_modebooleanrequired
domainstringrequired
enable_analytics_repromptingbooleanrequired
enable_brand_iconbooleanrequired
enable_close_iconbooleanrequired
enable_http_cookies_via_cnamebooleanrequired
enable_http_cookies_via_workerbooleanrequired
enable_marketing_repromptingbooleanrequired
enable_reject_all_buttonbooleanrequired
enable_toggle_on_desktopbooleanrequired
enable_toggle_on_mobilebooleanrequired
has_analytics_cookiesbooleanrequired
has_functional_cookiesbooleanrequired
has_marketing_cookiesbooleanrequired
hide_inactive_categoriesbooleanrequired
highlight_accept_all_buttonbooleanrequired
is_activebooleanrequired
is_subdomainbooleanrequired
is_subscribedbooleanrequired
is_top_level_domainbooleanrequired
is_trialingbooleanrequired
languagesany[] | nullrequired
last_health_check_atstring | nullrequired
metaobjectrequired
overlay_modebooleanrequired
parent_sitestring | nullrequired
primary_colorstring | nullrequired
subscribed_planstring | nullrequired
subscribed_pricestring | nullrequired
toggle_positionstring | enum<string>required
uuidstringrequired