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 configure Connect to API and perform actions, follow the below steps:
- On the left pane, you can find the Integrations section. Drag and drop the Connect to API stencil from this section to the builder.
- Click the Connect to API stencil to open the Connect to API window.
- On the Connect to API window, configure the following details:
- Name – Enter a name for this task
- Type – Select the API type (REST/SOAP) from the drop-down list.
- Integration Mode – Select the integration mode: Synchronous or Asynchronous.
- URL – Click Define Request to define a service request. The Define Request for the task page is displayed. From the first drop-down list, select the HTTP method used for the request. You can select:
- POST – Used to send data to the server. For example, customer information, file upload, and so forth using HTML forms.
- PUT – Replaces the content of the target resource with the content sent.
- PATCH – Appends the content of an existing target resource with the content sent.
- DELETE – Deletes the content of an existing target resource.
- GET – Returns the content of an existing target resource.
- In the URL field, specify a URL.
- In the Headers tab, specify the headers as key/value pairs if required to access the specified request URL.Â
- Click the Test Request tab.
- Click Test to send your API request URL using the specified HTTP headers and body parameters, if defined. The response is displayed in the text area.Â
- Click Save to save the test response as the sample response. Also, the Define Request page automatically exits after you save the response.
- Under the Access using a Connector section, you can select/clear the Yes, URLs are behind a firewall and a connector has been setup checkbox.
- Close the Connect to API window.