REST API Node

The Rest API node in Nected Workflow allows you to make HTTP requests to external APIs, enabling you to integrate data and functionality from various web services into your workflow. This node supports GET, POST, PUT, PATCH, and DELETE methods, allowing you to perform a wide range of operations on external APIs.

By configuring the Rest API node, you can specify the API endpoint URL, request method, headers, and parameters. You can also set the request body for POST, PUT, and PATCH methods. The node supports both JSON and XML request and response formats.

Once the API request is made, the response data is stored in the node's output, which can be accessed by subsequent nodes in the workflow. This allows you to process and manipulate the data retrieved from the external API as needed.

Here is how you can add a REST API node in your workflow editor:

  1. Inside the workflow editor, simply click on the "+Add Node" button.

  2. After clicking that button you will be redirected to the Rest API Connectors Page. There You need to provide all the details regarding the API and then just test the connection using the "Test Connection" button.

  3. Once the API connector is being tested, you can publish it on staging by clicking the button "Publish in Staging". Then repeat the same steps in Production too, and then publish the connection to production by clicking "Publish in Production".

  4. Once your connector is published in production, you can now directly use it in your workflow editor by just clicking the refresh↻ button inside the workflow editor. And your newly created API will be available in the list.

Now, once selected, you can configure the API from this popup screen:

Inside this popup screen, there are 3 tabs you can see. Here is the detail about all these three tabs:

  • Input Params Tab:

    1. Integration Dropdown: Allows you to choose from a pre-configured list of services for which the REST API will be called. In the screenshot, 'Airtable' is selected, indicating that this REST API node is configured to interact with the Airtable service.

      • You can also edit the API by clicking the pen 🖊️ icon.

    2. Select Method Dropdown: Here you specify the HTTP method to be used for the API call. The options usually include GET, POST, PUT, DELETE, etc. The method you select will determine the nature of the interaction with the API (e.g., GET for retrieving data, POST for creating data).

    3. Base URL Input Field: This is where you enter the root URL for the API service. It acts as the starting point for the API request. The provided example is https://api.airtable.com/v0/, which indicates that the API calls are directed to Airtable's base endpoint.

    4. Authentication Dropdown: Determines the type of authentication required for the API call. Options could include 'None', 'Bearer Token', 'Basic Auth', 'OAuth2', etc. 'Private' likely refers to a predefined, secure method of authentication configured within Nected for Airtable.

    5. URL Path Input Field: Appends the specific path to the Base URL to target a particular resource or data set within the API. For instance, if you were targeting a specific table within Airtable, the URL path might include the table's name or identifier.

    6. Headers Section: Sometimes optional, headers can be used to provide additional information to the API call, such as content types, API keys, or other metadata. You can add headers by clicking on 'Add Headers', and you'll likely need to enter both the header name and its value.

    7. Query Parameters Section: Also often optional, this is where you can specify query parameters that modify the request or filter the data being requested. Adding query parameters will typically involve specifying both the parameter name and the value you wish to set.

    8. Expand to see the IP addresses to add to your allow-list Section: Some APIs have IP allow-listing as a security measure. If you need to ensure that your workflow's server IPs are allowed to make requests to the API, you can add them here.

Note: Always ensure that you have the correct permissions and have followed the API provider’s data protection guidelines when configuring API nodes, particularly when dealing with authentication and header information.

  • Test Results Tab:

    • Execute the API request to test the connection and response handling. The response (or any errors) will be displayed here.

  • Settings Tab:

    • In the settings tab, you can adjust the timeout time for the Rest API.

The 'Test' and 'Save' buttons at the bottom of the tab are used to test the API call with the configured parameters and to save the node configuration if the tests are successful.

Last updated