We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
New design
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

1.11. Working with the API

  1. Open the section " API »:
  2. On the tab “ Access data "Check the box next to" I agree to the user agreement and terms of service " and press " Activate token »:

Attention!

It is highly recommended to configure access restriction to API by IP.

Access restrictions are configured on the " Access limitation »:

The logic of work is as follows:

  • The address list is empty - access is open for all .
  • There is one or more addresses in the list - access is open only for addresses from the list , closed for the rest.

Addresses and subnets in the CIDR format are added to the list of allowed by pressing the " Add IP to the list of allowed ". All added addresses are displayed in the list below. You can add a note to each of them or remove it from the list.

You can get acquainted with the list of methods, their descriptions, test their work and get code examples on the tab “ Documentation ". The tab consists of several blocks.

In the block " Methods »The list of available methods is displayed:

Attention!

The documentation is being finalized, so not all methods have detailed descriptions.

The block with the name of the selected method contains its detailed description:

  • The method for sending the request is GET or POST.
  • URL- the address to which the request should be sent.
  • Parameters - a list of available parameters, data types for each of them and options for available values.
  • Detailed description of the method and its return values (not for all methods).

On the left side of the block " Executing a request "There is a form for quickly sending a request on behalf of the current account, in the right one displays the response code and the result of the sent request:

In the block " Sample code »Shows a sample code for using the current method using cURL or a library HostingAPI:

  • Current active the token is automatically substituted into the string with the parameter $auth_token . If the token is not active, it will need to be activated and manually substituted into the code.
  • Parameters from shape after the query is executed, they are automatically substituted into the string with the parameter $post . If the request was not executed, the parameters will need to be specified independently.
Content