ApiFlux Documentation

Welcome to the ApiFlux documentation. ApiFlux is a powerful visual API workflow builder that enables developers to create, test, and debug API flows using an intuitive node-based interface. This comprehensive documentation will guide you through all the features and capabilities of the ApiFlux platform.

ApiFlux Dashboard

ApiFlux Dashboard - Visual API Workflow Builder

Note

ApiFlux is currently in public beta. We welcome your feedback and suggestions for improvements.

What is ApiFlux?

ApiFlux simplifies the process of working with APIs by providing a visual interface for:

API Integration

Connect to any REST API without writing complex code

Data Transformation

Transform API responses with simple JavaScript functions

Workflow Automation

Build complex multi-step processes with automated execution

Visual Debugging

See exactly how data flows through your API workflows

Key Benefits

  • Accelerated Development - Build API integrations in minutes, not hours
  • Reduced Complexity - Visualize data flow between services
  • Improved Debugging - Identify issues quickly with visual debugging tools
  • Enhanced Collaboration - Share workflows with team members
  • Flexible Deployment - Run workflows on-demand or on a schedule

Getting Started

To get started with ApiFlux, follow these steps:

  1. Create an account - Sign up for a free account at apiflux.in
  2. Create a new workflow - From the dashboard, click "New Workflow"
  3. Add nodes - Add HTTP and Functional nodes from the sidebar
  4. Connect nodes - Create connections between nodes by dragging from source to target handles
  5. Execute your workflow - Click the "Play" button to run your workflow
  6. Import and Export your workflow - Use the "Import" and "Export" buttons in the dashboard to download/share or upload your workflow configurations.

System Requirements

ApiFlux works in all modern browsers. For the best experience, we recommend:

  • Chrome 90+
  • Firefox 88+
  • Safari 14+
  • Edge 90+

Core Concepts

Workflows

A workflow is a collection of nodes and edges that define a complete process. Workflows in ApiFlux have the following characteristics:

  • Workflows can be saved and shared
  • Workflows maintain a global store of variables
  • Workflows can be executed to see real-time results
  • Workflows track the status of each node during execution

Nodes

Nodes are the building blocks of ApiFlux workflows. There are two primary types of nodes:

  • HTTP Node - For making HTTP requests to APIs
  • Functional Node - For transforming data between API calls

Edges

Edges represent connections between nodes. They define the flow of data and execution order in your workflow. There are two types of edges:

  • Control Flow Edge - Defines the execution order
  • Data Flow Edge - Defines how data flows between nodes

Variables

Variables in ApiFlux allow you to store and reuse data across nodes. Variables can be of two types:

  • Static Variables - Fixed values defined directly in nodes
  • Dynamic Variables - Values that can be connected via data flow edges from other nodes

Variables are a fundamental part of nodes and define their state. Each variable has a connection handle that enables it to be connected to other nodes in the workflow through data flow edges.

Variable Types

Static and dynamic variables in a node

Variable Flow

Dynamic variables can receive data from other nodes, allowing for complex data transformations and workflows. The connection handles visible on nodes represent the variables that can be connected.

HTTP Node

HTTP Nodes allow you to make API requests as part of your workflow. They support:

  • All standard HTTP methods (GET, POST, PUT, DELETE, etc.)
  • Custom headers
  • Request body (JSON, form data, text)
  • URL parameters
  • Authentication settings
HTTP Node Configuration

HTTP Node Configuration Interface

How to Use

HTTP Nodes provide a flexible way to interact with external APIs:

  • Define HTTP body, parameters, query strings, and headers as variables
  • Variables can be static or dynamic (connected to other nodes)
  • The response data becomes the output of the HTTP node
  • This output can be used by subsequent nodes in the workflow

Data Flow

When an HTTP node executes successfully, its response data is stored in the node's output. This allows other nodes to access and transform the data further in the workflow.

Functional Node

Functional Nodes allow you to transform data using JavaScript functions. They're useful for:

  • Data transformation between API calls
  • Conditional logic and routing
  • Data validation and preparation
  • Aggregating data from multiple API responses
Functional Node Editor

Functional Node Code Editor

How to Use

To effectively use Functional Nodes in your workflow:

  • Define function parameters as variables
  • Write your transformation function using these variables
  • In the transformation function, process the input and return a result
  • The returned data becomes the output of the functional node
  • This output can be used by other nodes in the workflow

JavaScript Environment

Functional nodes support modern JavaScript syntax and provide access to common utility functions. The code executes in a sandboxed environment for security.

Workflow Execution

When you execute a workflow in ApiFlux, the system:

  1. Determines the execution order based on node connections
  2. Executes each node in sequence, waiting for completion before moving to dependencies
  3. Passes data between nodes according to data flow connections
  4. Updates the status of each node (inactive → running → complete/error)
  5. Maintains the global variable store with results

Important

Workflows must be acyclic (no circular dependencies) to execute properly.

Best Practices

Optimize Your Workflows

Following these best practices will help you create more efficient, maintainable, and scalable workflows in ApiFlux.

Workflow Organization

  • Name nodes clearly - Use descriptive names for all nodes (e.g., "Fetch User Profile" instead of "HTTP Request")
  • Group related workflows - Use tags and folders to organize workflows by function or project
  • Document your workflows - Add descriptions and comments to complex nodes
  • Use a consistent layout - Arrange nodes from left to right or top to bottom for better readability

Performance Optimization

  • Parallel execution - Design workflows to execute independent operations in parallel
  • Cache responses - Use functional nodes to cache API responses when appropriate
  • Filter data early - Process only the data you need as early as possible in the workflow
  • Set appropriate timeouts - Configure timeouts for HTTP nodes based on expected response times

Error Handling

  • Validate inputs - Use functional nodes to validate data before sending to APIs
  • Add error handling - Create branches for handling various error scenarios
  • Use try-catch blocks - Wrap code in functional nodes with try-catch for better error management
  • Add retry logic - Implement retry mechanisms for transient failures

Security Best Practices

  • Use environment variables - Store API keys and secrets as environment variables
  • Sanitize inputs - Validate and sanitize all user inputs before processing
  • Implement rate limiting - Add rate limiting for APIs without built-in limits
  • Minimize data exposure - Only extract and process the data fields you need

Troubleshooting

Debug Tools

ApiFlux provides several tools to help you identify and fix issues in your workflows.

Common Issues and Solutions

HTTP Request Failures

Symptoms: HTTP node shows error status, workflow execution stops at HTTP node.

Possible Causes:

  • Incorrect URL or API endpoint
  • Missing or invalid authentication
  • Invalid request parameters or body
  • API rate limits exceeded
  • Network connectivity issues

Solutions:

  • Double-check the URL and API documentation
  • Verify authentication tokens and API keys
  • Use the built-in request tester to validate the request
  • Check the API response for specific error messages
  • Implement retry logic for transient failures

JavaScript Errors in Functional Nodes

Symptoms: Functional node execution fails, JavaScript errors in the console.

Solutions:

  • Check the browser console for detailed error messages
  • Use the code editor's syntax checking
  • Add console.log statements to debug variables
  • Wrap code in try-catch blocks
  • Use the input inspector to verify data structure

Workflow Logic Issues

Symptoms: Workflow runs but produces incorrect results or unexpected behavior.

Solutions:

  • Use the workflow inspector to view node execution order
  • Check data flow connections between nodes
  • Examine the global store after each node execution
  • Add a debug node to log intermediate results
  • Step through the workflow execution using the debugger

Performance Issues

Symptoms: Workflow execution is slow or times out.

Solutions:

  • Optimize API requests to fetch only needed data
  • Use caching for frequently accessed data
  • Review functional node code for inefficient operations
  • Break complex workflows into smaller, more manageable pieces
  • Monitor execution times to identify bottlenecks