Before configuring the API Call column, ensure you have a dataset loaded. If no dataset is available, follow the steps to Add Dataset on the Future AGI platform.
To create a dynamic column using an API call, navigate to your dataset and click the + Add Columns button in the top-right menu. Scroll down to the Dynamic Columns section and select API Call to open the configuration panel.
Name: Provide a name for the new column that will store the retrieved API response.
Output Type: Select the format of the expected API response. Options include:
String (default)
Object
Array
Number
API Endpoint: Enter the URL of the external API to fetch data.
Request Type: Choose the appropriate request method:
GET
POST
PUT, DELETE, PATCH
Adding API Parameters and Headers
Params: Define key-value pairs to send in the request query parameters.
Headers: Add authentication tokens, content types, or any required headers for API access.
Defining the Request Body
If using POST, PUT, or PATCH requests, enter the request payload in JSON format.
You can use syntax to reference dataset column
Concurrency: Define how many rows should be processed simultaneously.
Click Test to verify API connectivity and data retrieval. If the test is successful, click Create New Column to finalise the setup. The system will populate the new column dynamically with values fetched from the API.