{"id":29561,"date":"2021-08-11T18:48:50","date_gmt":"2021-08-11T17:48:50","guid":{"rendered":"https:\/\/multisite.korebots.com\/v9-0\/?p=29561"},"modified":"2021-08-11T18:51:52","modified_gmt":"2021-08-11T17:51:52","slug":"connect-to-api","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/v9-0\/docs\/process-apps\/flow\/integrations\/connect-to-api\/","title":{"rendered":"Connect to API"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row via_grid cols_1 laptops-cols_inherit tablets-cols_inherit mobiles-cols_1 valign_top type_default stacking_default\"><div class=\"wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><p><i><span style=\"font-weight: 400\">Connect to API<\/span><\/i><span style=\"font-weight: 400\"> integration is a service request made to a third-party application to help both applications communicate with each other to share the necessary information. With the <\/span><i><span style=\"font-weight: 400\">Connect to API<\/span><\/i><span style=\"font-weight: 400\"> integration, you can access and send data from\/to third-party applications<\/span><span style=\"font-weight: 400\">. <\/span><span style=\"font-weight: 400\">It allows you to perform the following actions:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Get<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Post<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Put<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Patch<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Delete<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">To configure Connect to API and perform actions, follow the below steps:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the left pane, you can find the <\/span><b>Integrations <\/b><span style=\"font-weight: 400\">section. Drag and drop the <\/span><b>Connect to API <\/b><span style=\"font-weight: 400\">stencil from this section to the builder.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click the <\/span><b>Connect to API <\/b><span style=\"font-weight: 400\">stencil to open the Connect to API<\/span> <span style=\"font-weight: 400\">window.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the Connect to API<\/span> <span style=\"font-weight: 400\">window, configure the following details:<\/span>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Name &#8211; Enter a name for this task<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Type &#8211; Select the API type (REST\/SOAP) from the drop-down list.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Integration Mode &#8211; Select the integration mode: Synchronous or Asynchronous.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">URL &#8211; Click <\/span><b>Define Request<\/b><span style=\"font-weight: 400\"> to define a service request. The <\/span><i><span style=\"font-weight: 400\">Define Request for the task<\/span><\/i><span style=\"font-weight: 400\"> page is displayed. From the first drop-down list, select the HTTP method used for the request. You can select:<\/span>\n<ol>\n<li style=\"font-weight: 400\"><b>POST <\/b><span style=\"font-weight: 400\">&#8211; Used to send data to the server. For example, customer information, file upload, and so forth using HTML forms.<\/span><\/li>\n<li style=\"font-weight: 400\"><b>PUT <\/b><span style=\"font-weight: 400\">&#8211; Replaces the content of the target resource with the content sent.<\/span><\/li>\n<li style=\"font-weight: 400\"><b>PATCH <\/b><span style=\"font-weight: 400\">&#8211; Appends the content of an existing target resource with the content sent.<\/span><\/li>\n<li style=\"font-weight: 400\"><b>DELETE <\/b><span style=\"font-weight: 400\">&#8211; Deletes the content of an existing target resource.<\/span><\/li>\n<li style=\"font-weight: 400\"><b>GET <\/b><span style=\"font-weight: 400\">&#8211; Returns the content of an existing target resource.<\/span><\/li>\n<\/ol>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In the <\/span><b>URL <\/b><span style=\"font-weight: 400\">field, specify a URL.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In the <\/span><b>Headers <\/b><span style=\"font-weight: 400\">tab, specify the headers as key\/value pairs if required to access the specified request URL.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click the <\/span><b>Test Request<\/b><span style=\"font-weight: 400\"> tab.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><b>Test <\/b><span style=\"font-weight: 400\">to send your API request URL using the specified HTTP headers and body parameters, if defined. The response is displayed in the text area.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><b>Save<\/b><span style=\"font-weight: 400\"> to save the test response as the sample response. Also, the Define Request page automatically exits after you save the response.<\/span><\/li>\n<\/ol>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Under the <\/span><b>Access using a Connector<\/b><span style=\"font-weight: 400\"> section, you can select\/clear the <\/span><b>Yes, URLs are behind a firewall and a connector has been setup<\/b><span style=\"font-weight: 400\"> checkbox.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Close the Connect to API window.<\/span><\/li>\n<\/ol>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"Connect to API integration is a service request made to a third-party application to help both applications communicate with each other to share the necessary information. With the Connect to API integration, you can access and send data from\/to third-party applications. It allows you to perform the following actions: Get Post Put Patch Delete To...","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[154],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/29561"}],"collection":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/comments?post=29561"}],"version-history":[{"count":1,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/29561\/revisions"}],"predecessor-version":[{"id":29562,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/29561\/revisions\/29562"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/media?parent=29561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/categories?post=29561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/tags?post=29561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}