Low Code External Api Calls

Production-grade guide to low code external api calls covering architecture patterns, implementation strategies, testing approaches, and operational best practices for enterprise engineering teams.

Low code platforms enable rapid integration of external systems through declarative API calls, allowing developers and non-developers alike to connect workflows to services like Stripe, Salesforce, or custom microservices. This capability matters most when a process in the low code environment must retrieve, update, or trigger actions in systems that lack native connectors, or when data must flow between platforms with differing schemas, protocols, or authentication mechanisms.

Making an External API Call

To initiate a call to an external API, the user defines a request with the following core components: HTTP method, endpoint URL, request body, headers, and authentication credentials. The platform evaluates these at runtime, often within a flow, action, or function.

The request is described using a structured configuration object. For example, in a typical low code environment, the configuration block for a GET request to a user service might look like:

{
  "method": "GET",
  "url": "https://api.example.com/users/{userId}",
  "headers": {
    "Authorization": "Bearer {accessToken}",
    "Accept": "application/json",
    "X-Request-ID": "flow-{flowId}"
  },
  "body": null,
  "timeout": 10000,
  "retry": {
    "count": 3,
    "delay": 1000,
    "backoff": "exponential"
  }
}

The platform resolves all placeholders ({variable}) at runtime using the current data context. Variables can be flow inputs, previous step outputs, or system-defined values like now(), uuid().

When the call fails, the platform returns a standardized error object:

{
  "error": {
    "code": "API_TIMEOUT",
    "message": "The request to https://api.example.com/users/123 timed out after 10s",
    "details": {
      "httpStatus": 504,
      "responseBody": "{\"error\":\"timeout\",\"timestamp\":\"2024-03-15T12:34:56Z\"}",
      "requestId": "req-abc123",
      "retryable": true
    }
  }
}

The retryable flag indicates that the platform can re-attempt the call automatically if configured.

Handling Response Data

After the external API returns a response, the low code engine parses it and makes it available in the subsequent steps. The response structure is assumed to be valid JSON unless otherwise specified.

The default output format includes the raw response body, status code, headers, and metadata:

{
  "statusCode": 200,
  "headers": {
    "Content-Type": "application/json",
    "X-RateLimit-Limit": "100",
    "X-RateLimit-Remaining": "97"
  },
  "body": {
    "id": 456,
    "name": "Alice Johnson",
    "email": "[email protected]",
    "createdAt": "2024-01-01T08:00:00Z"
  },
  "requestId": "req-abc123",
  "durationMs": 342
}

The platform allows extracting specific fields into variables or structured records. For example, a user can map body.name to a flow variable userName, or flatten body.address into a record with street, city, and postalCode fields.

When the response is an array of objects, the platform can iterate over it using a foreach loop with access to each item’s properties:

[
  {
    "id": 1,
    "name": "Product A",
    "price": 29.99
  },
  {
    "id": 2,
    "name": "Product B",
    "price": 49.95
  }
]

Each iteration becomes a new context for nested actions, such as creating a sales order for each product.

Authentication and Token Management

API calls frequently require authentication. The most common patterns are Bearer tokens, API keys, and OAuth2 flows.

Bearer tokens are specified in the Authorization header as Bearer <token>. The platform supports dynamic token resolution via expressions:

"headers": {
  "Authorization": "Bearer {{ getAccessTokenFor('salesforce') }}",
  "X-User-ID": "{{ currentUser.id }}"
}

Tokens can be cached and automatically refreshed. When a token expires, the platform can invoke a refresh endpoint and retry the original call.

For OAuth2, the platform expects a configuration object that defines the authorization server, client credentials, and scopes:

{
  "type": "oauth2",
  "authorizationUrl": "https://auth.example.com/authorize",
  "tokenUrl": "https://auth.example.com/token",
  "clientId": "app-123",
  "clientSecret": "s3cr3t-k3y",
  "scopes": ["user:read", "orders:write"],
  "refreshInterval": "1h"
}

On first use, the platform redirects the user to the authorization URL, collects the token, and stores it in a secure credential store.

Token refresh is triggered automatically when a call fails with a 401 Unauthorized response, and the platform attempts to fetch a new token before retrying the original request.

Error Handling and Retry Strategies

API calls are prone to transient failures: network timeouts, rate limiting, server overloads, and intermittent service unavailability. A well-configured low code platform handles these with a consistent error model.

Each API call can define a retry policy using a retry object:

"retry": {
  "count": 3,
  "delay": 1000,
  "backoff": "exponential",
  "conditions": [
    "httpStatus >= 500",
    "error.code == 'API_TIMEOUT'",
    "response.body.error.type == 'throttled'"
  ]
}

The platform applies the conditions in sequence. If any condition evaluates to true, the call is retried. The backoff strategy can be linear, exponential, or capped.

Exponential backoff doubles the delay between retries:

The platform logs each retry attempt, including the request and response at each stage.

When the maximum number of retries is exhausted, the platform raises a CallFailed event, which can trigger a follow-up action, such as sending a notification or writing the error to a database.

Mapping and Transforming Data

External APIs often return data in formats that differ from the low code platform’s internal schema. The platform supports declarative data mapping using a visual editor or a JSON-based transformation specification.

For example, a call to a shipping service returns:

{
  "trackingId": "TRK123456",
  "status": "shipped",
  "shipmentDate": "2024-03-14T10:00:00Z",
  "items": [
    {
      "sku": "SHP-001",
      "quantity": 3,
      "dimensions": {
        "length": 12,
        "width": 8,
        "height": 5,
        "unit": "cm"
      }
    }
  ],
  "recipient": {
    "name": "John Doe",
    "address": {
      "line1": "123 Main St",
      "city": "Springfield",
      "state": "IL",
      "postalCode": "62701"
    }
  }
}

The platform allows defining a mapping to extract and restructure this into a Shipment record:

{
  "trackingId": "trackingId",
  "status": "status",
  "shipDate": "shipmentDate",
  "items": [
    {
      "sku": "items[0].sku",
      "quantity": "items[0].quantity",
      "length": "items[0].dimensions.length",
      "width": "items[0].dimensions.width"
    },
    {
      "sku": "items[1].sku",
      "quantity": "items[1].quantity",
      "length": "items[1].dimensions.length"
    }
  ],
  "recipient": {
    "name": "recipient.name",
    "address": {
      "street": "recipient.address.line1",
      "city": "recipient.address.city",
      "state": "recipient.address.state",
      "zip": "recipient.address.postalCode"
    }
  }
}

The mapping is applied at the end of the API call, producing a normalized object that can be used in subsequent steps.

Common Pitfalls and Silent Failures

The most common failure mode is a missing or malformed Authorization header. The platform assumes the Authorization header is present and correct, but if the token is missing or expired, the call returns a 401 Unauthorized with a body like:

{
  "error": "invalid_token",
  "error_description": "The access token is expired"
}

The platform does not automatically retry on 401, unless explicitly configured. A silent failure occurs when the body is null or undefined but no error is logged, leading to data loss.

Another failure pattern is incorrect variable resolution. Expressions like {userId} might resolve to null or an empty string, especially when the value comes from a database or a previous API call. The platform logs the resolved value of each expression at the start of the call.

When the API returns an unexpected status code (e.g., 429 Too Many Requests), the platform may not map it to a retryable error unless explicitly configured. A 404 Not Found is often treated as a non-retryable error, but in practice, some APIs return 404 for transient data, making this a silent assumption.

The timeout setting is often misunderstood. A timeout: 10000 means 10 seconds from the start of the HTTP request until the first byte of the response is received, not until the entire body is read. If the API takes 9 seconds to generate a large JSON response, the platform may mark the call as successful even though the response body is still being streamed.

The platform often assumes that application/json is the default content type. When an API returns text/xml or application/x-protobuf, the platform fails to parse the body unless explicitly configured.

Chaining and Composing Calls

Multiple API calls are frequently composed into a sequence. Each call can depend on the output of the previous one.

For example, a flow might:

  1. Call /api/users/{id} to get user details.
  2. Use the email from the response to call /api/invoices?user={email}.
  3. Iterate over the returned invoices and call /api/notifications for each one.

The platform supports parallel execution of multiple calls. A parallel block allows initiating several calls simultaneously:

"parallel": [
  {
    "method": "GET",
    "url": "https://api.example.com/users/{userId}",
    "name": "fetchUser"
  },
  {
    "method": "GET",
    "url": "https://api.example.com/addresses/{userId}",
    "name": "fetchAddress"
  },
  {
    "method": "POST",
    "url": "https://api.example.com/audit-log",
    "body": {
      "action": "user_profile_loaded",
      "userId": "{userId}"
    },
    "name": "logEvent"
  }
]

Each call runs concurrently. The platform waits for all to complete before proceeding, with individual success, error, and timeout handling for each.

Synchronous vs. Asynchronous Patterns

For long-running operations, such as file uploads, batch processing, or machine learning inference, the platform supports both synchronous and asynchronous call patterns.

In the synchronous pattern, the platform waits for the result of the call, using the timeout setting to define how long to wait before declaring failure.

In the asynchronous pattern, the platform sends the initial request and immediately proceeds to the next step, while polling for the result. The polling configuration includes:

"async": {
  "pollInterval": 2000,
  "maxPolls": 30,
  "pollUrl": "https://api.example.com/jobs/{jobId}",
  "statusField": "status",
  "completedValues": ["success", "done"],
  "errorField": "error"
}

The platform polls the pollUrl every pollInterval milliseconds until the statusField contains one of the completedValues, or until maxPolls are exhausted. If the job fails, the platform extracts the error message from errorField.

This pattern is essential for integrations with systems that return a job ID and require polling, such as data warehousing pipelines or video transcoding services.

Configuring Reusable API Clients

To avoid repeating configuration across multiple calls, the platform supports defining reusable API clients. Each client encapsulates common settings such as base URL, default headers, authentication, and retry policies.

A client configuration might look like:

{
  "name": "salesforce",
  "baseUrl": "https://api.salesforce.com",
  "defaultHeaders": {
    "Content-Type": "application/json",
    "Accept": "application/json"
  },
  "auth": {
    "type": "oauth2",
    "clientId": "salesforce-app",
    "tokenUrl": "https://login.salesforce.com/services/oauth2/token"
  },
  "retry": {
    "count": 3,
    "delay": 500,
    "backoff": "exponential"
  }
}

Any API call can then reference this client by name:

{
  "client": "salesforce",
  "method": "GET",
  "url": "/v50.0/sobjects/Account/{accountId}"
}

The platform merges the client configuration with the call-specific settings. If the call defines headers, they are merged with the client’s defaultHeaders, with call-level values taking precedence.

This pattern enables consistent integration across a platform, reduces configuration duplication, and simplifies maintenance.

This page was rewritten on 15 October 2026. It replaced a templated version that was not specific to its own title. How these pages are written and checked. If anything here is wrong, tell us at [email protected] and we will correct it.