From 8e5ba486fae0cb03485bf6ade9de95f15b0a9b36 Mon Sep 17 00:00:00 2001 From: StoneRanger Date: Fri, 28 Mar 2025 09:44:04 +0100 Subject: [PATCH] Update api-request.mdx Providing a sample for the json in output of an Api request --- fern/workflows/nodes/api-request.mdx | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/fern/workflows/nodes/api-request.mdx b/fern/workflows/nodes/api-request.mdx index fb69f1e2c..81f8c41ca 100644 --- a/fern/workflows/nodes/api-request.mdx +++ b/fern/workflows/nodes/api-request.mdx @@ -22,4 +22,25 @@ The **API Request** enables your workflow to interact with external APIs. It sup ## Usage -Use the API Request to fetch information from an external API to use in your workflow, or to update information in your CRM or database. \ No newline at end of file +Use the API Request to fetch information from an external API to use in your workflow, or to update information in your CRM or database. + +Sample Json and possible Key* +{ + "result": "Order 123456", + "lines": 3, + "item": [ + { + "product": "A" + }, + { + "product": "B" + }, + { + "product": "C" + } + ] +} + +Key* result -> {{ orderref }} as string -> "Order 123456" +Key* lines -> {{ numberOfLines }} as number -> 3 +Key* item[1] -> {{ item2 }} as string -> "A" ( but this is not working actually so please correct syntax )