The API connector enables data retrieval from REST APIs with flexible configuration options, supporting authentication, pre-requisite calls, and advanced data extraction.
Overview
Retrieve data from RESTful APIs for validation and comparison. The API connector supports:
β Multiple HTTP methods (GET, POST, PUT, DELETE)
β Custom headers and authentication
β Complex request payloads
β Pre-requisite API dependencies
β JSONPath and XPath data extraction
β JSON, XML, and other response formats
Perfect for validating real-time data, testing API responses, and comparing data from service endpoints.
API Connection Configuration
βοΈ Configuration Parameters
Parameter
Description
Required
Source Name
Unique identifier for the API connection
β Yes
Request Type
HTTP method (GET, POST, PUT, DELETE)
β Yes
URL
API endpoint address
β Yes
Parameters
Query parameters as key-value pairs
β οΈ Optional
Headers
Request metadata (auth, content-type)
β οΈ Optional
Body
Request payload for POST/PUT (JSON)
β οΈ Optional
Pre-requisite
Dependent API calls (up to 2 levels)
β οΈ Optional
π Step-by-Step Configuration
Step 1: Select API as Source Connection
Start by selecting API as your data source connector type.
Navigate to Start Job
Select API under Source Connection Type
Enter a unique Source Name (e.g., API1, CustomerAPI)
Click β to confirm
API Source Selection
Step 2: Configure API Request
Supply all necessary request configuration details:
Configuration Fields:
Enter the API Endpoint URL
Select the appropriate Request Type
Add Parameters (key-value pairs) if required
Provide Headers for authentication or content type
Include JSON Body for POST/PUT requests
Configure Pre-requisite APIs if needed
API Configuration
Step 3: Pre-requisite APIs (Optional)
Pre-requisite APIs are essential when the main API requires tokens or credentials with limited validity.
Use Cases:
Scenario
Solution
Token Expiration
Pre-requisite refreshes access token
Dynamic Auth
Generate new credentials on-demand
Session Setup
Establish session before main call
Data Lookup
Fetch ID before using in main request
Configuration Steps:
Extract Value Path β Specify JSONPath to extract values
Variable Mapping β Assign a variable name to extracted value
Usage in Main API β Reference with #variable_name# syntax
Support Levels: Configure up to 2 levels of prerequisite APIs. All extracted values are available in the main API call.
// Path: $.users[0].email
// Extracts: first user's email address
// Path: $.data[*].id
// Extracts: all IDs from data array
<!-- Path: //user/email -->
<!-- Extracts: all email elements under user -->
<!-- Path: /root/users/user[1]/name -->
<!-- Extracts: first user's name -->