HTTP Request and external effects
Call an external service, handle its response, and keep test behavior explicit.
Configure the request #
- Set the method and public HTTPS destination.
- Choose authentication and the appropriate workspace secret, if needed.
- Configure the request body and timeout.
- Connect execution in and handle both success and failure.
| Port | Meaning |
|---|---|
| url | Destination URL. |
| body | Request body object. |
| response | Response data. |
| status | HTTP status code. |
| error | Error information. |
| success / failure | Execution branches for handling the outcome. |
HTTP statuses 200–299 follow success; other HTTP statuses follow failure. A connected URL or body supplies the value instead of the editable fallback.
Test with mock responses #
Mock mode uses the configured test response without sending a real HTTP request or reading a workspace secret. Missing or invalid fixtures fail instead of silently falling back to network access.
{
"status": 200,
"body": {
"approved": true
}
}Configure the mock status and JSON body in the request editor.
Use real HTTP deliberately #
Studio lets you choose mock or real per test. Test API credentials can explicitly send top-level testHttpMode: real on synchronous requests. Test callbacks remain disabled. Automated suites and comparisons default to mocks.
Keep credentials in workspace secrets #
Use Workspace secrets for connector credentials. An administrator configures the secret and its approved HTTPS origins. Do not paste credentials into reusable examples or mock response data.