Skip to content
MyAppBuilder
StableGuide

Test request

The Test request panel at the bottom of every API source sends a real request from the builder and shows the answer: status, duration, the mapped response and the fields it contains. Use it to get the request right before wiring it into pages and workflows.

Test request

The Test request panel at the bottom of every API source sends a real request from the builder and shows the answer: status, duration, the mapped response and the fields it contains. Use it to get the request right before wiring it into pages and workflows.

When to use

  • Right after creating or changing an API.
  • To save the response fields so they appear by name in the data picker.
  • To check that secrets are set correctly for an environment.

How to send a test request

  1. Open the API in APIs and scroll to Test request.
  2. Choose the environment whose variables and secrets to use: Development, Staging or Production.
  3. Fill in the Parameters. One row is listed for each {{params.…}} placeholder found in the request; add more rows if the request uses parameters indirectly.
  4. Click Send test request. The button is disabled while the URL is empty or just https://.
  5. Read the result: - Success or Request failed, the HTTP status badge and the duration; - an error message when the request could not be sent (blocked address, missing secret, timeout); - Detected fields found in the response (up to 150 paths, three levels deep); - the Response preview, already reduced by the Response path, with a Copy button. Long responses are cut at 20,000 characters.
  6. Click Save fields for the data picker to store the detected field names with the API. The button reads Saved for the data picker when the stored list already matches.
Example
Test request                      Development
Parameters:  city = Paris
Success · HTTP 200 · 312 ms
Detected fields (6): city · temperature · humidity · wind.speed · wind.direction · updated
Response (at "data"):
{ "city": "Paris", "temperature": 18.4, … }

What the test does and does not do

  • It really calls the service with the chosen environment's secrets and plain variables; a POST test really creates or changes data on the other side.
  • It uses the same safety rules as the published app (public addresses only, 2 MB cap, timeout).
  • It does not change anything in your app except the saved fields (when you click the button), which is recorded as a change in version history.
  • The secret's value is never shown in the preview.

Common mistakes

  • Testing with the wrong environment. A green test in Development says nothing about Production if the secret is missing there; the Authentication section shows per-environment badges.
  • Forgetting to re-save fields after the service changed its response shape.
  • Reading an unmapped response. The preview shows the result after the response path; if it is empty, the path is probably wrong.
  • Rate limits. The builder allows 30 test requests per minute.

Advanced

POST /api/projects/:id/integrations with { action: "test_api", apiSourceId, environment, params } runs executeApiSource with the draft project and returns { ok, status, durationMs, fields, preview } (or { ok: false, status: 0, message }). Saving fields dispatches update_api_source with responseFields.

Related

Was this helpful?