[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"/en/kb/api/basic-principles-of-operation-with-apiKbData":3},{"page":4,"pages":75,"recommendedPages":342,"category":35,"categoryTree":35,"total":343,"currentOrder":344,"activeManualCategoryId":35,"tag":-1},{"route":5,"uuid":8,"title":9,"excerpt":10,"content":11,"view_count":12,"published_at":13,"modified_at":13,"like":14,"category":17,"hero_image":28,"seo_metadata":29,"schema_org_metadata":33,"open_graph_metadata":36,"sections":37,"tags":70,"breadcrumbs":71,"images":74},{"language":6,"path":7},"en","/kb/api/basic-principles-of-operation-with-api","80b10b2f-f1b1-9319-fcf0-a9e2084712a0","Basic principles of operation with API","Method of interaction Interaction with API is performed via HTTPS protocol. URL for method call looks as follows: https://api.beget.com/api/section/method?parameters Example: https://api.beget.com/api/user/getAccountInfo?login=user&passwd=mypassword Parameter passing, mandatory parameters As we see from the previous example, two parameters have been passed to the method.","\u003Ch2 id=\"method-of-interaction\">Method of interaction\u003C/h2>\n\u003Cp>Interaction with API is performed via HTTPS protocol.\u003C/p>\n\u003Cp>URL for method call looks as follows:\u003C/p>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;&quot;}\">\u003Ccode>https://api.beget.com/api/section/method?parameters\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Ch3 id=\"example\">Example:\u003C/h3>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;null&quot;}\">\u003Ccode>https://api.beget.com/api/user/getAccountInfo?login=user&amp;passwd=mypassword\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Ch2 id=\"parameter-passing-mandatory-parameters\">Parameter passing, mandatory parameters\u003C/h2>\n\u003Cp>As we see from the previous example, two parameters have been passed to the method.\u003C/p>\n\u003Cp>When calling any method, at least two mandatory parameters must be passed:\u003C/p>\n\u003Cul>\n\u003Cli>\u003Cstrong>login\u003C/strong>&nbsp;- user login;\u003C/li>\n\u003Cli>\u003Cstrong>passwd\u003C/strong>&nbsp;- user password.\u003C/li>\n\u003C/ul>\n\u003Ch2 id=\"additional-call-parameters\">Additional call parameters\u003C/h2>\n\u003Cp>Additional parameters are passed via standard HTTP means. They can be passed both via GET method and POST method. These two methods can also be combined.\u003C/p>\n\u003Cp>We recommend you to use the POST method since it has no limitations of length for passed parameters.\u003C/p>\n\u003Cp>When calling any method, you can pass the following additional parameters:\u003C/p>\n\u003Cul>\n\u003Cli>\u003Cstrong>input_format\u003C/strong>&nbsp;- input data format.\u003Cbr>This parameter shows in which format parameters for methods will be given.\u003Cbr>Default value:&nbsp;\u003Cem>plain\u003C/em>.\u003Cbr>The following formats are currently supported:\n\u003Cul>\n\u003Cli>\u003Cstrong>plain\u003C/strong>&nbsp;- all arguments are passed together with the main call parameters, the plainest format, however we recommend using others;\u003C/li>\n\u003Cli>\u003Cstrong>json\u003C/strong>&nbsp;- all method arguments must be in json format. The JSON string needs to be put into the main parameter input_data;\u003C/li>\n\u003C/ul>\n\u003C/li>\n\u003Cli>\u003Cstrong>input_data\u003C/strong>&nbsp;- parameter, receiving string with method arguments (if input data format other than plain)\u003C/li>\n\u003Cli>\u003Cstrong>output_format\u003C/strong>&nbsp;- parameter, defining output format from API. Currently only json format is supported. Default value:&nbsp;\u003Cem>json\u003C/em>.\u003C/li>\n\u003C/ul>\n\u003Ch3 id=\"method-call-example\">Method call example\u003C/h3>\n\u003Cp>The example shows a call of the method, which adds the domain test-domain to the zone with ID=1 (de). Please note, in the parameter input_data the JSON string has been coded with the urlencode method (this is necessary for passing special characters via https protocol).\u003Cbr>The uncoded input_data string looks as follows: {\"hostname\":\"test-domain\",\"zone_id\":1}.\u003C/p>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;&quot;}\">\u003Ccode>https://api.beget.com/api/domain/addVirtual?login=user&amp;passwd=password&amp;\ninput_format=json&amp;output_format=json&amp;input_data=\n%7B%22hostname%22%3A%22test-domain%22%2C%22zone_id%22%3A1%7D\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Ch2 id=\"response-handling\">Response handling\u003C/h2>\n\u003Ch3 id=\"general-result-of-query-execution\">General result of query execution\u003C/h3>\n\u003Cp>Each response from API has the field&nbsp;\u003Cstrong>status\u003C/strong>, containing the query status.\u003Cbr>If the query has been executed successfully, the field will have the value&nbsp;\u003Cstrong>success\u003C/strong>.\u003C/p>\n\u003Cp>In this case you will find the method execution result in the adjacent field&nbsp;\u003Cstrong>answer\u003C/strong>:\u003C/p>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;javascript&quot;}\">\u003Ccode>{\n    \"status\": \"success\",\n    \"answer\": method execution result\n}\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Cp>If the query has been performed with an error, the field status will have the value&nbsp;\u003Cstrong>error\u003C/strong>.\u003C/p>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;javascript&quot;}\">\u003Ccode>{\n \t\"status\": \"error\",\n \t\"error_text\": \"No such method\",\n \t\"error_code\": \"NO_SUCH_METHOD\"\n}\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Ch3 id=\"possible-error-codes\">Possible error codes:\u003C/h3>\n\u003Cul>\n\u003Cli>\u003Cstrong>AUTH_ERROR\u003C/strong>&nbsp;- authorization error;\u003C/li>\n\u003Cli>\u003Cstrong>INCORRECT_REQUEST\u003C/strong>&nbsp;- error, indicating an incorrect request to API;\u003C/li>\n\u003Cli>\u003Cstrong>NO_SUCH_METHOD\u003C/strong>&nbsp;- such method does not exist.\u003C/li>\n\u003C/ul>\n\u003Ch3 id=\"method-execution-result\">Method execution result\u003C/h3>\n\u003Cp>If the query has been executed successfully, the field&nbsp;\u003Cstrong>result\u003C/strong>&nbsp;will contain a response from the method.\u003Cbr>The method result also has its own status field, which in turn can have the value&nbsp;\u003Cem>success\u003C/em>&nbsp;or&nbsp;\u003Cem>error\u003C/em>.\u003Cbr>If the method execution result is positive, the adjacent field result will contain the query result (the example shows the full response):\u003C/p>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;javascript&quot;}\">\u003Ccode>{\n   \"status\":\"success\",\n   \"answer\":{\n      \"status\":\"success\",\n      \"result\":[\n         {\n            \"id\":\"125\",\n            \"path\":\"site.de\\/public_html\",\n            \"domains\":[\n               {\n                  \"id\":\"12345\",\n                  \"fqdn\":\"site.de\"\n               }\n            ]\n         },\n         {\n            \"id\":\"124\",\n            \"path\":\"vk.com\\/public_html\",\n            \"domains\":[\n \n            ]\n         },\n         {\n            \"id\":\"123\",\n            \"path\":\"mysite\\/public_html\",\n            \"domains\":[\n \n            ]\n         }\n      ]\n   }\n}\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Cp>If the method execution result is negative, you will see the field&nbsp;\u003Cstrong>errors\u003C/strong>&nbsp;instead of result, which will contain errors, which occurred during the method execution (the example shows the full answer):\u003C/p>\n\u003Cdiv class=\"wp-block-beget-code code-block\">\n\u003Cpre data-options=\"{&quot;mode&quot;:&quot;javascript&quot;}\">\u003Ccode>{\n   \"status\":\"success\",\n   \"answer\":{\n      \"status\":\"error\",\n      \"errors\":[\n         {\n            \"error_code\":\"INVALID_DATA\",\n            \"error_text\":\"Login length cannot be greater than 12 characters\"\n         }\n      ]\n   }\n}\u003C/code>\u003C/pre>\n\u003C/div>\n\u003Cp>The fields in each error have the same sense as in the query error. Please note that there can be various errors. The error code allows to find out the error type.\u003C/p>\n\u003Ch3 id=\"used-error-codes\">\u003Cem>Used error codes:\u003C/em>\u003C/h3>\n\u003Cul>\n\u003Cli>\u003Cstrong>INVALID_DATA\u003C/strong>&nbsp;- validation error of passed data;\u003C/li>\n\u003Cli>\u003Cstrong>LIMIT_ERROR\u003C/strong>&nbsp;- execution failure due to reaching some kind of limit (e.g. limit of websites or limit of queries to API (max. 60 queries per minute for user) has been exceeded);\u003C/li>\n\u003Cli>\u003Cstrong>METHOD_FAILED\u003C/strong>&nbsp;- internal error when executing method.\u003C/li>\n\u003C/ul>\n",140,"2026-11-11T14:50:31.000Z",{"count":15,"liked":16},10,false,{"route":18,"title":20,"tags":21,"breadcrumbs":22,"uuid":23,"parent_uuid":24,"default_page_path":25,"seo_metadata":26},{"language":6,"path":19},"/kb/api","Beget.API",[],[],"fa9a1354-631a-4206-df34-291f0db8f42a","80213437-0399-4b4f-2333-426bb5050534","/kb/api/beget-api",{"title":27,"description":27,"header":27,"keywords":27},"",{"src":27,"text":27},{"title":30,"description":31,"keywords":32},"Beget.API. Basic principles of operation with API. LTD Beget.","We tell you about the basic principles of working with API, what is it? What is it for?","server api, api what it is",{"faq":34,"how_to":35,"product":35},[],null,{},[38,42,46,49,52,55,58,61,64,67],{"level":39,"name":40,"anchor":41},1,"Method of interaction","method-of-interaction",{"level":43,"name":44,"anchor":45},2,"Example:","example",{"level":39,"name":47,"anchor":48},"Parameter passing, mandatory parameters","parameter-passing-mandatory-parameters",{"level":39,"name":50,"anchor":51},"Additional call parameters","additional-call-parameters",{"level":43,"name":53,"anchor":54},"Method call example","method-call-example",{"level":39,"name":56,"anchor":57},"Response handling","response-handling",{"level":43,"name":59,"anchor":60},"General result of query execution","general-result-of-query-execution",{"level":43,"name":62,"anchor":63},"Possible error codes:","possible-error-codes",{"level":43,"name":65,"anchor":66},"Method execution result","method-execution-result",{"level":43,"name":68,"anchor":69},"Used error codes:","used-error-codes",[],[72],{"route":73,"title":20},{"language":6,"path":25},[],[76,101,124,141,162,185,208,230,253,275,297,319],{"route":77,"uuid":79,"title":80,"excerpt":81,"content":27,"view_count":82,"published_at":13,"modified_at":13,"like":83,"category":85,"hero_image":90,"seo_metadata":35,"schema_org_metadata":35,"open_graph_metadata":35,"sections":91,"tags":92,"breadcrumbs":93,"images":100},{"language":6,"path":78},"/kb/api/account-administration-functions","293b56b4-d2e7-97c8-4dfe-44d39f904db0","Account administration functions","getAccountInfo Description: Method returns information on the user's tariff plan, on some parameters of the server, where the user is currently located and on the applied limits thereof.",116,{"count":84,"liked":16},14,{"route":86,"title":20,"tags":87,"breadcrumbs":88,"uuid":23,"parent_uuid":24,"default_page_path":25,"seo_metadata":89},{"language":6,"path":19},[],[],{"title":27,"description":27,"header":27,"keywords":27},{"src":27,"text":27},[],[],[94,98],{"route":95,"title":97},{"language":6,"path":96},"/kb","Knowledge Base",{"route":99,"title":20},{"language":6,"path":19},[],{"route":102,"uuid":104,"title":105,"excerpt":106,"content":27,"view_count":107,"published_at":13,"modified_at":13,"like":108,"category":110,"hero_image":115,"seo_metadata":35,"schema_org_metadata":35,"open_graph_metadata":35,"sections":116,"tags":117,"breadcrumbs":118,"images":123},{"language":6,"path":103},"/kb/api/backup-administration-functions","7a522120-43fa-b9e7-f82c-f8f258170e18","Backup administration functions","getFileBackupList Description: Method returns available list of file backups.",74,{"count":109,"liked":16},20,{"route":111,"title":20,"tags":112,"breadcrumbs":113,"uuid":23,"parent_uuid":24,"default_page_path":25,"seo_metadata":114},{"language":6,"path":19},[],[],{"title":27,"description":27,"header":27,"keywords":27},{"src":27,"text":27},[],[],[119,121],{"route":120,"title":97},{"language":6,"path":96},{"route":122,"title":20},{"language":6,"path":19},[],{"route":125,"uuid":8,"title":9,"excerpt":10,"content":27,"view_count":12,"published_at":13,"modified_at":13,"like":126,"category":127,"hero_image":132,"seo_metadata":35,"schema_org_metadata":35,"open_graph_metadata":35,"sections":133,"tags":134,"breadcrumbs":135,"images":140},{"language":6,"path":7},{"count":15,"liked":16},{"route":128,"title":20,"tags":129,"breadcrumbs":130,"uuid":23,"parent_uuid":24,"default_page_path":25,"seo_metadata":131},{"language":6,"path":19},[],[],{"title":27,"description":27,"header":27,"keywords":27},{"src":27,"text":27},[],[],[136,138],{"route":137,"title":97},{"language":6,"path":96},{"route":139,"title":20},{"language":6,"path":19},[],{"route":142,"uuid":143,"title":20,"excerpt":144,"content":27,"view_count":145,"published_at":13,"modified_at":13,"like":146,"category":148,"hero_image":153,"seo_metadata":35,"schema_org_metadata":35,"open_graph_metadata":35,"sections":154,"tags":155,"breadcrumbs":156,"images":161},{"language":6,"path":25},"2379bce3-3b24-a7a6-b068-b850aa7a0a95","API (Application Programming Interface) is a software interface or a number of functions for the administration of websites, domains, mail etc. Mainly API is designed for programmers and developers, however it can be used by anybody.",897,{"count":147,"liked":16},28,{"route":149,"title":20,"tags":150,"breadcrumbs":151,"uuid":23,"parent_uuid":24,"default_page_path":25,"seo_metadata":152},{"language":6,"path":19},[],[],{"title":27,"description":27,"header":27,"keywords":27},{"src":27,"text":27},[],[],[157,159],{"route":158,"title":97},{"language":6,"path":96},{"route":160,"title":20},{"language":6,"path":19},[],{"route":163,"uuid":165,"title":166,"excerpt":167,"content":27,"view_count":168,"published_at":13,"modified_at":13,"like":169,"category":171,"hero_image":176,"seo_metadata":35,"schema_org_metadata":35,"open_graph_metadata":35,"sections":177,"tags":178,"breadcrumbs":179,"images":184},{"language":6,"path":164},"/kb/api/cron-administration-functions","7dda0202-e4da-010c-cbab-58ec5dee9a3b","Cron administration functions","getList Description: Method returns list of all CronTab tasks.",64,{"count":170,"liked":16},7,{"route":172,"title":20,"tags":173,"breadcrumbs":174,"uuid":23,"parent_uuid":24,"default_page_path":25,"seo_metadata":175},{"language":6,"path":19},[],[],{"title":27,"description":27,"header":27,"keywords":27},{"src":27,"text":27},[],[],[180,182],{"route":181,"title":97},{"language":6,"path":96},{"route":183,"title":20},{"language":6,"path":19},[],{"route":186,"uuid":188,"title":189,"excerpt":190,"content":27,"view_count":191,"published_at":13,"modified_at":13,"like":192,"category":194,"hero_image":199,"seo_metadata":35,"schema_org_metadata":35,"open_graph_metadata":35,"sections":200,"tags":201,"breadcrumbs":202,"images":207},{"language":6,"path":187},"/kb/api/dns-administration-functions","ef8ea855-3842-060e-66ab-2da12736babf","DNS administration functions","getData Description: Method returns information about domain from DNS server. Additional parameters fqdn - full domain name.",257,{"count":193,"liked":16},22,{"route":195,"title":20,"tags":196,"breadcrumbs":197,"uuid":23,"parent_uuid":24,"default_page_path":25,"seo_metadata":198},{"language":6,"path":19},[],[],{"title":27,"description":27,"header":27,"keywords":27},{"src":27,"text":27},[],[],[203,205],{"route":204,"title":97},{"language":6,"path":96},{"route":206,"title":20},{"language":6,"path":19},[],{"route":209,"uuid":211,"title":212,"excerpt":213,"content":27,"view_count":214,"published_at":13,"modified_at":13,"like":215,"category":216,"hero_image":221,"seo_metadata":35,"schema_org_metadata":35,"open_graph_metadata":35,"sections":222,"tags":223,"breadcrumbs":224,"images":229},{"language":6,"path":210},"/kb/api/ftp-administration-functions","b7ed85f6-8b78-b030-7822-d970c0d29932","FTP administration functions","getList Description: Method returns list of additional FTP accounts with their home directories. Call example: https://api.beget.com/api/ftp/getList?login=userlogin& passwd=password&output_format=json Response example: [ { \"login\":\"user_acc1\", \"homedir\":\"\\/public_html\" }, { \"login\":\"user_siteru\", \"homedir\":\"\\/site.de\\/public_html\" } ] add Description: Method adds new FTP account.",54,{"count":84,"liked":16},{"route":217,"title":20,"tags":218,"breadcrumbs":219,"uuid":23,"parent_uuid":24,"default_page_path":25,"seo_metadata":220},{"language":6,"path":19},[],[],{"title":27,"description":27,"header":27,"keywords":27},{"src":27,"text":27},[],[],[225,227],{"route":226,"title":97},{"language":6,"path":96},{"route":228,"title":20},{"language":6,"path":19},[],{"route":231,"uuid":233,"title":234,"excerpt":235,"content":27,"view_count":236,"published_at":13,"modified_at":13,"like":237,"category":239,"hero_image":244,"seo_metadata":35,"schema_org_metadata":35,"open_graph_metadata":35,"sections":245,"tags":246,"breadcrumbs":247,"images":252},{"language":6,"path":232},"/kb/api/functions-for-statistic-census","937682bf-6be8-8859-5139-98401c77c906","Functions for statistic census","getSiteListLoad Description: Method returns information about the average load on user websites within the last month. Call example: // correct call example https://api.beget.com/api/stat/getSitesListLoad?",44,{"count":238,"liked":16},3,{"route":240,"title":20,"tags":241,"breadcrumbs":242,"uuid":23,"parent_uuid":24,"default_page_path":25,"seo_metadata":243},{"language":6,"path":19},[],[],{"title":27,"description":27,"header":27,"keywords":27},{"src":27,"text":27},[],[],[248,250],{"route":249,"title":97},{"language":6,"path":96},{"route":251,"title":20},{"language":6,"path":19},[],{"route":254,"uuid":256,"title":257,"excerpt":258,"content":27,"view_count":259,"published_at":13,"modified_at":13,"like":260,"category":261,"hero_image":266,"seo_metadata":35,"schema_org_metadata":35,"open_graph_metadata":35,"sections":267,"tags":268,"breadcrumbs":269,"images":274},{"language":6,"path":255},"/kb/api/functions-for-work-with-domains","78f4a6ff-dc73-7dfe-3f65-7023db352757","Functions for work with domains","getList Description: Method returns list of domains on user account.",102,{"count":15,"liked":16},{"route":262,"title":20,"tags":263,"breadcrumbs":264,"uuid":23,"parent_uuid":24,"default_page_path":25,"seo_metadata":265},{"language":6,"path":19},[],[],{"title":27,"description":27,"header":27,"keywords":27},{"src":27,"text":27},[],[],[270,272],{"route":271,"title":97},{"language":6,"path":96},{"route":273,"title":20},{"language":6,"path":19},[],{"route":276,"uuid":278,"title":279,"excerpt":280,"content":27,"view_count":281,"published_at":13,"modified_at":13,"like":282,"category":283,"hero_image":288,"seo_metadata":35,"schema_org_metadata":35,"open_graph_metadata":35,"sections":289,"tags":290,"breadcrumbs":291,"images":296},{"language":6,"path":277},"/kb/api/functions-for-work-with-mail","ad3a53c3-8087-568e-8e40-e9293d3de70c","Functions for work with mail","getMailboxList Description: Method returns all mailboxes on given domain. Additional parameters domain - domain, whose mailboxes will be displayed (e.g.",91,{"count":193,"liked":16},{"route":284,"title":20,"tags":285,"breadcrumbs":286,"uuid":23,"parent_uuid":24,"default_page_path":25,"seo_metadata":287},{"language":6,"path":19},[],[],{"title":27,"description":27,"header":27,"keywords":27},{"src":27,"text":27},[],[],[292,294],{"route":293,"title":97},{"language":6,"path":96},{"route":295,"title":20},{"language":6,"path":19},[],{"route":298,"uuid":300,"title":301,"excerpt":302,"content":27,"view_count":303,"published_at":13,"modified_at":13,"like":304,"category":305,"hero_image":310,"seo_metadata":35,"schema_org_metadata":35,"open_graph_metadata":35,"sections":311,"tags":312,"breadcrumbs":313,"images":318},{"language":6,"path":299},"/kb/api/mysql-administration-functions","ec5ea407-7b32-7ffb-ab15-161c74a6bb4b","MySQL administration functions","getList Description: The method returns a list of MySQL databases with their accesses.",36,{"count":15,"liked":16},{"route":306,"title":20,"tags":307,"breadcrumbs":308,"uuid":23,"parent_uuid":24,"default_page_path":25,"seo_metadata":309},{"language":6,"path":19},[],[],{"title":27,"description":27,"header":27,"keywords":27},{"src":27,"text":27},[],[],[314,316],{"route":315,"title":97},{"language":6,"path":96},{"route":317,"title":20},{"language":6,"path":19},[],{"route":320,"uuid":322,"title":323,"excerpt":324,"content":27,"view_count":325,"published_at":13,"modified_at":13,"like":326,"category":328,"hero_image":333,"seo_metadata":35,"schema_org_metadata":35,"open_graph_metadata":35,"sections":334,"tags":335,"breadcrumbs":336,"images":341},{"language":6,"path":321},"/kb/api/website-administration-functions","b2b389c2-32ff-e854-b8cf-899c09ed085e","Website administration functions","getList Description: Method returns website list. If domains are linked to website, they will also be returned.",59,{"count":327,"liked":16},6,{"route":329,"title":20,"tags":330,"breadcrumbs":331,"uuid":23,"parent_uuid":24,"default_page_path":25,"seo_metadata":332},{"language":6,"path":19},[],[],{"title":27,"description":27,"header":27,"keywords":27},{"src":27,"text":27},[],[],[337,339],{"route":338,"title":97},{"language":6,"path":96},{"route":340,"title":20},{"language":6,"path":19},[],[],0,"popularity-desc"]