Configuring fetch node
In a Fetch node, you have to define the endpoint, query params and headers. You can add both static and dynamic values in all request fields except response key. All Static values are added within"static value" and dynamic data is referred as data.key.

Adding variables in Fetch node
Fetch node supports JSONNET rendering language. You can add workflow trigger payload variables asdata.<key> and internal suprsend data as data["$brand"].<key>. Here’s a list of variables supported in workflow engine:
Request execution
When executing the request for a fetch function, SuprSend expects the following from your service:- The response to the request is one of: 200 OK, 201 Created, or 204 No Content.
- If the request response contains data, it’s encoded as JSON and can be decoded into a map/dictionary/hash.
- The response to the request takes no longer than 5 seconds for SuprSend to receive.
Merging response to workflow input
If you have added a response key in your setting. The response of theGET request is first appended to the response key and then merged to the input workflow data. The response is merged at parent level if response key is empty.
The merged data result from a fetch function step then becomes the global trigger data for all subsequent steps in the workflow run.
Here’s how Fetch function data output would look like with response key and without response key