API Node
Overview
The API Call Node in UPTIQ Workbench enables workflows to interact with external APIs by performing HTTP requests. This node allows developers to fetch, send, update, or delete data from external services in a structured and automated manner.
By leveraging the API Call Node, developers can integrate their workflows with third-party APIs, internal services, or cloud endpoints, ensuring seamless data exchange between systems.
Configurations
Endpoint (Required)
The URL of the external API to which the request is sent.
Supports static URLs or dynamic variables fetched from workflow data.
Method (Required)
Defines the type of HTTP request to be made.
Supported methods: ✅
GET
– Retrieve data from the API. ✅POST
– Send new data to the API. ✅PUT
– Update an existing resource. ✅PATCH
– Modify part of an existing resource. ✅DELETE
– Remove a resource.
Headers (Optional)
A set of key-value pairs representing HTTP headers to include in the request.
Example:
{ "Authorization": "Bearer <token>", "Content-Type": "application/json" }
.
Parameters (Optional)
Query parameters to be appended to the URL.
Example:
{ "userId": "12345" }
results inhttps://api.example.com/resource?userId=12345
.
Request Body (For POST, PUT, PATCH requests only)
The payload sent with the request.
Can be in raw JSON format or key-value format.
Example:
{ "name": "John Doe", "email": "john@example.com" }
.
Output Format
If the request is successful, the node outputs:
If the request fails, the node outputs:
Example Use-Cases
Example 1: Fetching Data from an External API (GET Request)
A workflow needs to retrieve user details from a third-party service.
Configuration:
Endpoint:
https://jsonplaceholder.typicode.com/todos/1
Method:
GET
Response Output:
Example 2: Sending Data to an API (POST Request)
A workflow needs to create a new user record in an external system.
Configuration:
Endpoint:
https://api.example.com/users
Method:
POST
Headers:
{ "Content-Type": "application/json" }
Request Body:
Response Output (Success):
Response Output (Error):
Key Takeaways for Developers
✅ Seamless API Integration – Easily connect UPTIQ workflows with external APIs for data exchange. ✅ Supports All Major HTTP Methods – Perform GET, POST, PUT, PATCH, and DELETE requests. ✅ Flexible Configuration – Customize headers, query parameters, and request body as per API requirements. ✅ Handles API Responses Efficiently – Captures both successful data responses and error messages for better debugging. ✅ Use with Dynamic Variables – Fetch endpoint URLs and request data dynamically from previous nodes for dynamic API calls.
By leveraging the API Call Node, developers can extend UPTIQ Workbench workflows beyond internal processes, integrating them with external platforms, databases, and third-party applications for automated and intelligent data handling. 🚀
Last updated