Test API Calls
Verifying an API response before integrating it into your app helps prevent runtime issues and ensures your data is structured correctly. This guide walks you through testing an API directly within FlutterFlow.
- A project is open in FlutterFlow.
- An API key or endpoint is available if required by the API.
Steps to Test API Calls:
-
Open the
API Calls
PanelFrom the left sidebar, go to the
API Calls
section. -
Select or Create an API Call
Choose an existing
API Call
or click+ Add API Call
to create a new one. -
Enter the API Endpoint
Add the endpoint and necessary parameters, headers, or authentication.
-
Click the
Response & Test
TabNavigate to the
Response & Test
tab to preview the response structure. -
Run the API Test
Click the
Test API Call
button to trigger the request. If successful, the API response displays in JSON format.A valid API response displays a structured output like the example below::
Use JSONPath to validate and extract values from the returned JSON structure during testing.