REST bindings (tutorial)
Use bindings to pass runtime values into REST queries.
Bindings are useful for values that change by user, row, form input, URL parameter, or action context.
{{ bindingName }}Create a binding in a query
- Open a query in API Editor
- Add a value in the URL, params, headers, or body using binding syntax
- Define binding name and default value
- Click Send to test the default
- Save the query
Where bindings can be used
- URL/path segments
- Query params
- Headers
- Request body
- Transformer scripts
Example
Return records by status.
- Create a
GETquery for the list endpoint - Add query param
status - Set value to
{{ status }} - Set default binding value to
all - Send query and confirm response
- Save query
- In an app action, execute query and pass
statusdynamically
Passing bindings from forms
- Add form fields
- Configure button action Execute query
- Map form values to query bindings
- Run action
- Confirm API receives mapped values
Binding design guidelines
- Use descriptive names such as
userId,status, andstartDate - Set safe defaults for optional values
- Avoid reusing one binding name for different concepts
- Match the string, number, or date format expected by the API
Troubleshooting
- Binding appears literal in request: syntax is not parsed correctly
- Value missing at runtime: no input is mapped in the action
- Wrong filter result: the default value is taking precedence
Related guides
Updated 4 months ago
Did this page help you?