Method create.site
Description Website creation for KT3
Available to Agent, Client

Request parameters

Name Type Required Valid values Description
access_token string yes Authentication session key
user_id number no Unique user identifier of the agent client on behalf of which the request is made
Required for the agent
To obtain a list of client users, you must use the "get.customer_users" method
domain_name string yes Site address on the Internet. Without specifying the protocol - "http://" or "https://".
name string no Site name.
industry_id number yes The industry to which the site belongs.
1 Cars and transport. means
2 Business and services
3 Food and drinks
4 Animals
5 Law and government
6 Internet and communications
7 Computers and electronics
8 Beauty and fitness
9 Medicine
10 Real Estate
11 Accommodation and hotels
12 Industry
13 Travel and tourism
14 Sports
15 Construction, renovation
16 Study and education
17 Finance
18 Hobbies and entertainment
19 E-commerce and shopping
target_call_min_duration number no Default is "30". The minimum call time after which it is considered target. The value is specified in seconds.
site_key string no The key length must be 32 characters. You can only use Latin letters (A-Z, a-z), numbers (0-9) and the underscore (_) Embed code key for the site. If not specified, it will be created automatically. This parameter must be inserted into the template instead of the {site_key} parameter

      <script type="text/javascript">
        var __cs = __cs || [];
        __cs.push(["setCsAccount", "{site_key}"]);
      </script>
      <script type="text/javascript" async src="//app.callgear.com/static/cs.min.js"></script>

      
second_communication_period number no 1-365Default "1". Re-application period. Specified in days.
is_support_web_directory boolean no Site directory tracking
child_customer_id integer No Identifier of the client for whom the site was created. Method for getting a list of clients: "get.customers"
is_block_robot_traffic boolean no Managing robot blocking on the site. If enabled, visits and robot activity are not tracked.

Response parameters

Name Type Description
id integer Unique site identifier
site_key string Embed code key for the site This parameter must be inserted into the template instead of the `{site_key}` parameter

            <script type="text/javascript">
                var __cs = __cs || [];
                __cs.push(["setCsAccount", "{site_key}"]);
            </script>
            <script type="text/javascript" async src="//app.callgear.com/static/cs.min.js"></script>

            

JSON request structure```json

{ "jsonrpc": "2.0", "id": "number", "method": "create.site", "params": { "access_token": "string", "user_id": "number", "industry_id": "number", "target_call_min_duration": "number", "domain_name": "string", "site_key": "string", "second_communication_period": "number", "is_support_web_directory": "boolean", "child_customer_id": "number", "is_block_robot_traffic" : "boolean" } }

### JSON response structure```json
{
  "jsonrpc": "2.0",
  "id": "number",
  "result": {
      "data": {
          "id": "number",
          "site_key": "string"
      },
      "metadata": "object"
  }
}

List of returned errors

See the section "List of errors for methods with the create verb"