Skip to main content
POST
Create website site

Authorizations

Authorization
string
header
required

Access token issued by gs.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.

Team-SID
string
header
required

Team scope for tokens that do not carry one. Ignored when the token already names a team.

Body

application/json

Request body of create_website_site.

domain
string
required

A host or a URL (acme.com, https://www.acme.com/pricing): reduced to the bare host. app.acme.com registers that host alone.

Maximum string length: 2048
confirm_identification
enum<boolean>
required

Required, true only after the person confirmed that, for the level chosen, collecting consent from visitors in the EU, the EEA and the UK and saying so in their privacy policy is their own duty. Stored as identification_confirmation.

Available options:
true
identification
enum<string>

What a visit may name: companies (default) or people. The person picks it once both are explained.

Available options:
companies,
people
include_subdomains
boolean

Hosts under the domain belong to the site. Default true.

Code the links to this site (once it is verified and confirmed for its level, and while the team switch is on). Default true.

carrier_linkedin
enum<string>

Where the code rides in a LinkedIn link: fragment (default) or query.

Available options:
fragment,
query
carrier_email
enum<string>

Where the code rides in an email link: query (default) or fragment.

Available options:
fragment,
query

not_required (default) stores the visitor id on the first hit; required waits for the site's banner to call gs('consent', true).

Available options:
not_required,
required
fingerprint_mode
enum<string>

on (default), consent (only after consent) or off.

Available options:
on,
consent,
off
anonymize_ip
boolean

Keep a resolved session's address as its network part only. Default false.

ignored_ips
string[]

IPv4 or IPv6 addresses or CIDR ranges of internal traffic (the office, the VPN). Replaced whole; at most 50; an entry that is neither is 422 invalid_ip.

Maximum array length: 50
live_alerts
enum<string>

off | key_pages (default) | all_known: when a known person on the site alerts the team now.

Available options:
off,
key_pages,
all_known
live_alert_tasks
boolean

A live alert also opens a task, due now, on the person's open threads. Default true; false sends the notice alone.

live_alert_task_minutes
integer | null

The life of that task in minutes, 5 to 43200 (30 days): still open by then, the sweep cancels it. null = it never expires. Default 30.

Required range: 5 <= x <= 43200
inbound_playtable_sid
string | null

The table an identified visitor nobody has would be handed to; stored only today. null clears it.

Required string length: 18
Pattern: ^pt_tb_
key_pages
object[] | null

The pages whose visits matter, created with the site in one transaction. Absent or null = the default four (pricing, demo, signup, contact, none a conversion); [] = none. At most 20.

Maximum array length: 20

Response

create success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
create
item
object
required
already_exists
boolean
required
meta
object
required