Skip to main content
Version: v4.5

JS Fetch connector

The JS Fetch connector provides a simple wrapper for the JavaScript Fetch API. Pass an object with the parameters you require from the following table:

Code example

{  "_orchcomp": "fetch_connector",   "_name": "Performs GET request for data",   "_sequenceno": 1,   "url": "<your-endpoint-url>",  "_actualparams": {     "args": {       "method": "GET",      }  }  }, 

JS fetch connector schema

ParameterTypeDescriptionRequired
_orchcompStringEnter “fetch_connector”.Required
_nameStringEnter a descriptive name for what the component does in the orchestrator.Optional
_sequencenoNumberEnter a number that defines the task’s order in the sequence of tasks to execute.Required
_actualparamsObjectPass an object that contains formal parameters or alternative parameters you want to add as key-value pairs, such as “userType”: “<your-user-type>”.Optional
_actualparams.urlStringTakes the API endpoint URL as a string.Required
_actualparams.argsObjectTakes the options object that can contain parameters, such as “method”, “headers”, “body” and “credentials”.Optional
_actualparams.toStringEMPTYOptional