{"id":833,"date":"2023-03-09T16:55:26","date_gmt":"2023-03-09T13:55:26","guid":{"rendered":"https:\/\/docs.unibell.ru\/?page_id=833"},"modified":"2026-06-11T13:00:11","modified_gmt":"2026-06-11T10:00:11","slug":"http-%d0%b7%d0%b0%d0%bf%d1%80%d0%be%d1%81","status":"publish","type":"page","link":"https:\/\/docs.cpaas.mittoapi.net\/?page_id=833","title":{"rendered":"HTTP request"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/httpreqest-1.png\"><img decoding=\"async\" width=\"104\" height=\"82\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/httpreqest-1.png\" alt=\"\" class=\"wp-image-2603\"\/><\/a><\/figure>\n\n\n\n<p>The &#171;HTTP request&#187; block is used to transfer or receive data (or operations with it) between the scenario and the external system (over the HTTP protocol).<\/p>\n\n\n\n<p>Each new HTTP request block placed in the scenario is configured individually depending on what function it should perform in each specific case.<\/p>\n\n\n\n<p>Configuring the HTTP request block begins by specifying the method that the request will be executed and specifying a link to the resource containing the transmission parameters. Variables can be passed as the parameter value.<\/p>\n\n\n\n<p>For example, https:\/\/ya.ru?par=1&amp;par=2&amp;par3 ={test}.<\/p>\n\n\n\n<div class=\"is-nowrap is-layout-flex wp-container-1 wp-block-group\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http-reqest.png\"><img decoding=\"async\" width=\"265\" height=\"784\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http-reqest.png\" alt=\"\" class=\"wp-image-4304\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http-reqest.png 265w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http-reqest-101x300.png 101w\" sizes=\"(max-width: 265px) 100vw, 265px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http-reqest1.png\"><img decoding=\"async\" width=\"273\" height=\"782\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http-reqest1.png\" alt=\"\" class=\"wp-image-4305\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http-reqest1.png 273w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http-reqest1-105x300.png 105w\" sizes=\"(max-width: 273px) 100vw, 273px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<p>Specify the type of authorization supported by the external system and its characteristic set of parameters.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http-reqest2.png\"><img decoding=\"async\" width=\"269\" height=\"785\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http-reqest2.png\" alt=\"\" class=\"wp-image-4307\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http-reqest2.png 269w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http-reqest2-103x300.png 103w\" sizes=\"(max-width: 269px) 100vw, 269px\" \/><\/a><\/figure>\n\n\n\n<p>For the <strong>Basic Auth<\/strong> authorization type, you must specify a <em>Username<\/em> and <em>Password<\/em>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/basic_auth.png\"><img decoding=\"async\" width=\"262\" height=\"782\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/basic_auth.png\" alt=\"\" class=\"wp-image-4308\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/basic_auth.png 262w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/basic_auth-101x300.png 101w\" sizes=\"(max-width: 262px) 100vw, 262px\" \/><\/a><\/figure>\n\n\n\n<p>For the <strong>Bearer Token<\/strong> authorization type, you must enter the appropriate <em>Token<\/em>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/bearer_token.png\"><img decoding=\"async\" width=\"274\" height=\"780\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/bearer_token.png\" alt=\"\" class=\"wp-image-4309\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/bearer_token.png 274w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/bearer_token-105x300.png 105w\" sizes=\"(max-width: 274px) 100vw, 274px\" \/><\/a><\/figure>\n\n\n\n<p>For the <strong>API key<\/strong> authorization type, you need to set the <em>Key<\/em> and <em>Value<\/em>, as well as select how to remotely transfer data:<\/p>\n\n\n\n<ul>\n<li>in the Header of the request Header;<\/li>\n\n\n\n<li>as parameters in the URL.\n<ul>\n<li>This choice depends on the requirements of the third-party API. Some services expect the key to be transmitted in the header, others in the URL.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/api_key.png\"><img decoding=\"async\" width=\"280\" height=\"799\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/api_key.png\" alt=\"\" class=\"wp-image-4310\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/api_key.png 280w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/api_key-105x300.png 105w\" sizes=\"(max-width: 280px) 100vw, 280px\" \/><\/a><\/figure>\n\n\n\n<p>Please note that when specifying the \u201cCertificate\u201d authorization type, you will need to select a specific certificate from the \u201cCertificate\u201d drop-down list. In order for the certificate to appear in this list, you must first download your certificate file in the user\u2019s personal account. See the Personal area&nbsp;<a href=\"https:\/\/docs.cpaas.mittoapi.net\/?page_id=2596\" data-type=\"page\" data-id=\"2596\">Certificates<\/a>&nbsp;section for how to do this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/httpreqest-5.png\"><img decoding=\"async\" width=\"263\" height=\"488\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/httpreqest-5.png\" alt=\"\" class=\"wp-image-2606\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/httpreqest-5.png 263w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/httpreqest-5-162x300.png 162w\" sizes=\"(max-width: 263px) 100vw, 263px\" \/><\/a><\/figure>\n\n\n\n<p>The next step is to specify the parameters of Waiting for a response from a third-party HTTP server. If waiting for a response is required, then switch to the appropriate \u201cRequired\u201d value. Set the response timeout and specify which variable the response code and body will be placed in:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/httpreqest-6.png\"><img decoding=\"async\" width=\"262\" height=\"676\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/httpreqest-6.png\" alt=\"\" class=\"wp-image-2607\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/httpreqest-6.png 262w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/httpreqest-6-116x300.png 116w\" sizes=\"(max-width: 262px) 100vw, 262px\" \/><\/a><\/figure>\n\n\n\n<p>After configuring the response timeout, you can optionally specify HTTP headers (names and values) if they are required for sending the request.<\/p>\n\n\n\n<p>HTTP headers are used to transmit service information, authorization parameters, content type definitions, and other additional request parameters.<\/p>\n\n\n\n<ul>\n<li><strong>HTTP Headers (Names)<\/strong> \u2014 a field used to specify the names of the HTTP headers that must be sent to the external system when the request is executed;<\/li>\n\n\n\n<li><strong>HTTP Headers (Values)<\/strong> \u2014 a field used to specify the corresponding values of the HTTP headers.<\/li>\n<\/ul>\n\n\n\n<p>Multiple headers can be added. Each header name must have a corresponding value.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http_headers.png\"><img decoding=\"async\" width=\"284\" height=\"776\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http_headers.png\" alt=\"\" class=\"wp-image-4311\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http_headers.png 284w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2026\/06\/http_headers-110x300.png 110w\" sizes=\"(max-width: 284px) 100vw, 284px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The &#171;HTTP request&#187; block is used to transfer or receive data (or operations with it) between the scenario and the external system (over the HTTP protocol). Each new HTTP request block placed in the scenario is configured individually depending on what function it should perform in each specific case. Configuring the HTTP request block begins <a href=\"https:\/\/docs.cpaas.mittoapi.net\/?page_id=833\" class=\"more-link\">&#8230;<span class=\"screen-reader-text\">  HTTP request<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":862,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"tpl\/scenario-personal.php","meta":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages\/833"}],"collection":[{"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=833"}],"version-history":[{"count":9,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages\/833\/revisions"}],"predecessor-version":[{"id":4312,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages\/833\/revisions\/4312"}],"up":[{"embeddable":true,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages\/862"}],"wp:attachment":[{"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}