This guide gives you an overview of how you can pass values in a REST API Query using raw JSON and key-value pairs, enabling real-time data fetching, updates, and user-driven workflows.
In the following JSON code, the **`${}`** syntax is used for JavaScript string interpolation within template literals (also called template strings). This allows dynamic values from JavaScript variables or expressions to be injected directly into the string.
<imgstyle={{marginBottom:'15px'}}className="screenshot-full img-full"src="/img/how-to/pass-values-in-rest-api/raw-2.png"alt="Passing Values Using Raw JSON"/>
In this example, simple key-value pairs are entered in the provided input fields. Here, the values can simply be passed using double curly braces as is typically done in ToolJet. Take note of the status key. A string is combined with another value that is referred using double curly braces.
<imgstyle={{marginBottom:'15px'}}className="screenshot-full img-full"src="/img/how-to/pass-values-in-rest-api/key-value-2.png"alt="Passing Values Using The Key Value Inputs"/>