Call Rest API
The Call REST API action allows you to trigger a pre-configured API call directly from your app. It is typically used to send or retrieve data from a remote server based on user actions or events.
Use Cases
Submitting a form to a backend service.
Fetching dynamic data to update UI.
Sending user input to an external system.
Properties
dataSource
(Required) The API configuration to be triggered. You must have defined the API under your Data Sources.
successCondition
A boolean condition to determine whether the API response should be considered successful.
onSuccess
An optional action flow that runs if the call succeeds or the success condition evaluates to true
.
onError
An optional action flow that runs if the call fails or the success condition is false
.
Default Behavior
By default:
The API call is made using the selected
dataSource
.If
onSuccess
oronError
flows are configured, they are triggered conditionally based on the response and the success condition.No built-in loading or error feedback is shown; use additional actions like Show Toast for visual feedback.
How to Use
Add the action to a widget (e.g., on form submission or button click).
Select Call REST API from the action list.
Choose a
dataSource
.Optionally define
onSuccess
andonError
flows based on the API outcome.
Last updated