Integration Guide
Softyflow provides comprehensive integration capabilities that allow you to connect with external systems and services. This guide covers the main integration methods available in Softyflow: External Data Sources, axios scripts, incoming APIs, and, since version 8.6, AI assistants connected through MCP.
Before diving in, we recommend you have a solid understanding of your project setup, are familiar with database concepts in Softyflow, and have some experience with the web interface designer and process modeler. This foundational knowledge will help you get the most out of this guide.
1. EDS API Integration (Outgoing Integrations)Direct link to 1. EDS API Integration (Outgoing Integrations)
The External Data Source (EDS) feature is Softyflow's declarative approach to API integration. It allows you to connect to external REST APIs and treat them as if they were local data sources. This is the perfect starting point for most integration tasks, as it is powerful, configurable, and does not require writing complex code.
1.1. API EDS ConfigurationDirect link to 1.1. API EDS Configuration
Configure API EDS to connect with external REST APIs:
Open External databases from the dock, click Create EDS, then give the source a name and choose API REST among the EDS Type tiles. The view below shows a configured API source: on the left, the name and type; on the right, the settings of each environment (TEST, UAT, PROD), the pre-run script, the global headers and the endpoints.

Initial configuration of an API-type External Data Source.
Here’s a breakdown of the initial setup:
- Name: Always use a clear and descriptive name, so that the source is easy to find in tables, lists and actions.
- EDS Type: This is a crucial setting. By selecting API REST, you unlock the configuration options specific to web services: base URL, timeout, pre-run script, global headers and endpoints.
- Environments: each environment has its own configuration. Copy from copies the configuration of another environment.
1.2. Securing Your Data SourceDirect link to 1.2. Securing Your Data Source
Security is a critical aspect of integration. Softyflow allows you to define granular access rights for each data source, ensuring that only authorized users and roles can perform specific operations.
The Access rights tab lists the roles that may use the source. Click Add a role, choose the role and tick Create, Read, Update and Delete as needed. With no role, nobody can use the source. In this example, every user may only read data through the source.

Configuring role-based access for the EDS.
1.3. Defining API Operations: Endpoints and ScriptsDirect link to 1.3. Defining API Operations: Endpoints and Scripts
Once the basic configuration is in place, define the operations your application will perform. Below the Base URL and the Timeout, the configuration of each environment has two tiles that apply to every call, Pre-run script and Global headers, then the Endpoints card.
The Endpoints card has one fixed row per operation. These standard operations cover the usual CRUD (Create, Read, Update, Delete) needs, and Softyflow calls the right one depending on what the widget or the action does:
- retrieve (Get one item): fetches a single record, usually by its ID.
- list (List items): retrieves a list of records, with support for pagination.
- count (Count items): returns the number of records that match the criteria.
- insert (Create an item): creates a new record.
- insertMany (Create several items): creates several records in a single call.
- update (Update an item): modifies an existing record.
- delete (Delete an item): removes a record.
- execute (Free call): a flexible operation for the custom calls that don't fit into the CRUD model.

For each operation, you configure:
- Method: the HTTP method (
GET,POST,PUT,PATCH,DELETEorPURGE). - Path: the path called, relative to the Base URL. Variables go between double curly braces, for example
/{{SF_table}}/{{SF_source._id}}. A new API source starts with a default path for each operation, such as/{{SF_table}}?limit={{SF_limit}}for list. - Headers, Request body and Response mapping: the three buttons at the end of the row (see 1.3.2). A dot on a button shows that it is configured.
The Test the API button opens the tester of the source (see 1.3.3). For the settings of every type of source, see EDS: API.
1.3.1. Pre-run Script and Global HeadersDirect link to 1.3.1. Pre-run Script and Global Headers
Pre-run script: this JavaScript code runs before every call of the source. Use it to prepare what the requests need: get an OAuth 2.0 token, compute a signature, read a value from another service… It must return an object: its keys become variables of the endpoints and of the headers. In the example below, the script returns { token }, and the global headers send "Authorization": "Bearer " + token.
The tile opens the script in a drawer that has its own tester: add Test variables if the script uses some (for example SF_table), then click Test the script (Ctrl + Enter) to see the Result. Test the script saves your changes first, then runs the saved configuration of the environment.

Global headers: a JavaScript object of headers sent with every request of the source, for example the Authorization header built with the token returned by the pre-run script.
Do not leave real credentials in a screenshot, a test variable or an example you share: they give access to the external system.
1.3.2. Headers, Request Body and Response MappingDirect link to 1.3.2. Headers, Request Body and Response Mapping
Each button of an endpoint row opens an editor that lists the variables available in this context:
- Headers: a JavaScript object, written without double curly braces, with the headers of this operation only, for example
{ "Accept": "application/json" }. - Request body: a JavaScript expression whose result is sent as the body of
POST,PUT,PATCHandDELETErequests; it is ignored for aGETrequest. The data sent by the component or the action is inSF_postData, which is the default body of insert, insertMany and update. - Response mapping: a JavaScript function that returns the data from
SF_result, the response of the API (by defaultreturn SF_result). For example,return SF_result.items;when the API wraps its list in anitemsproperty.
The variables available in these editors and in the paths are:
SF_source: An object containing the data source and query parameters.SF_table: The name of the table or resource being accessed.SF_postData: The data payload forPOST,PUTandPATCHoperations.SF_limit: The maximum number of records to retrieve (forlistendpoints).SF_sortby: The field to sort by.SF_page: The current page number for paginated requests.SF_direction: The sort direction (1for ascending,-1for descending).- The keys returned by the pre-run script.


1.3.3. Testing Your EndpointsDirect link to 1.3.3. Testing Your Endpoints
Before you even integrate the EDS into a web page or process, you can test each endpoint. Open the Tests tab, choose the Environment, pick an Operation (for example Get one item · retrieve), fill in SF_table, SF_source and, under Advanced inputs, the custom variables used by the endpoint, then click Run test. Tests use the saved configuration (your changes are saved first).
The Response panel shows the status, the duration and the returned data; Sent request shows the request actually sent. Keep useful inputs with Save: saved tests can be reopened from New or saved test. See EDS: Tests for details.

The Tests tab showing a successful API response.
1.4. Bringing it all Together: Using Your EDSDirect link to 1.4. Bringing it all Together: Using Your EDS
Once your EDS is configured and tested, you can start using it throughout your Softyflow application. The beauty of the EDS feature is that it abstracts away the complexity of the API, allowing you to interact with it as if it were a simple database.
1.4.1. In ActionsDirect link to 1.4.1. In Actions
The EDS actions of the Collection category, such as findOne (EDS), findMany (EDS), countTables (EDS), insertTable (EDS), updateTables (EDS) and delete (EDS), work the same way with an API source as with an SQL database: each one calls the matching operation of the source. The Table of the action becomes SF_table, and its Find criteria are sent in SF_source. The same EDS actions exist in the actions of interfaces and APIs, and in processes.
The example below loads the open orders of a customer when a button is clicked: findMany (EDS) calls the list operation of the Orders API source for the orders table, with the criteria of its Find editor, and stores the result in the openOrders variable.

1.4.2. In Web Interface WidgetsDirect link to 1.4.2. In Web Interface Widgets
The true power of EDS becomes apparent when you start building user interfaces. You can bind widgets directly to your EDS, creating dynamic and data-driven user experiences with minimal effort.
- Table: in the Data source card, choose the EDS tile, pick the source in EDS connection and write the EDS query. For an API source, the query is a string that becomes
SF_table, here"orders". The table calls the list and count operations of the source, with its Default sort (SF_sortby,SF_direction) and its Rows per page (SF_limit,SF_page).

- Dropdown: set the Data Source to
EDS, choose the Database, then map the fields of the response: Label is the text the user sees (here thenamefield) and Value is the value stored when the user picks an option (here theidfield). EDS Source › Edit opens the query, here"customers".

The query popup of each widget, with its integrated test, is described in Database: Usage in Widgets.
2. Scripts via Axios: The Developer's Toolkit for Advanced IntegrationsDirect link to 2. Scripts via Axios: The Developer's Toolkit for Advanced Integrations
When you need more control and flexibility than the EDS feature provides, Softyflow empowers you to write custom integration scripts using the popular axios library. This feature is available in the Process Modeler SDK and is ideal for complex scenarios, such as integrations that require custom logic, error handling, or multi-step API interactions.
2.1. Making Your First API CallDirect link to 2.1. Making Your First API Call
The axios library is available as SF.utils.axios in your process scripts, so you can start making HTTP requests right away. The value returned by the script is stored in the result variable of the script. Let's look at a few examples; copy them into a script and adapt the URLs and the data.
2.2. Basic HTTP MethodsDirect link to 2.2. Basic HTTP Methods
Here are some examples of how to perform basic CRUD operations using axios.
2.2.1. GET: Fetching DataDirect link to 2.2.1. GET: Fetching Data
This script demonstrates a simple GET request to fetch a single todo item. The await keyword is used to wait for the promise to resolve, and the data of the response is returned; an error is logged.
// GET request
let resp = await SF.utils.axios.get('https://api.example.com/todos/1')
.then(function (response) {
// handle success
return response.data;
})
.catch(function (error) {
// handle error
console.log(error);
});
return resp;
2.2.2. POST: Creating DataDirect link to 2.2.2. POST: Creating Data
To create a new resource, you can use a POST request. This example sends a JSON payload to create a new user. The API response, which typically contains the newly created object with its server-assigned ID, is then returned.
// POST request with data
let body = {
email: "jean.dupont@example.com",
name: "Jean Dupont"
};
let res = await SF.utils.axios.post('https://api.example.com/users', body, {
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + token
}
});
return res.data;
2.2.3. PUT: Updating DataDirect link to 2.2.3. PUT: Updating Data
A PUT request is used to update an existing resource. This script sends a new payload to update the user with the ID 123.
// PUT request for updates
let updateData = {
status: "active",
lastLogin: new Date()
};
let res = await SF.utils.axios.put('https://api.example.com/users/123', updateData);
return res.data;
2.2.4. DELETE: Removing DataDirect link to 2.2.4. DELETE: Removing Data
Finally, a DELETE request is used to remove a resource. This script sends a request to delete the user with the ID 123 and returns the HTTP status.
// DELETE request
let res = await SF.utils.axios.delete('https://api.example.com/users/123');
return res.status;
2.3. Handling AuthenticationDirect link to 2.3. Handling Authentication
Most real-world APIs require authentication. Here are a couple of common authentication patterns implemented with axios.
2.3.1. Bearer TokenDirect link to 2.3.1. Bearer Token
Bearer token authentication is a widely used standard. The token is sent in the Authorization header of the request. It's a good practice to store sensitive data like tokens in secure variables rather than hardcoding them in your scripts.
let config = {
headers: {
Authorization: "Bearer " + authToken,
"Content-Type": "application/json"
}
};
let res = await SF.utils.axios.get("https://api.example.com/protected", config);
return res.data;
2.3.2. API KeyDirect link to 2.3.2. API Key
Another common method is to use an API key, which can be sent as a query parameter, a header, or in the request body, depending on the API's requirements. The example below sends the API key as a query parameter (params); use headers instead when the API expects it in a header, for example { "X-API-Key": apiKey }.
let res = await SF.utils.axios.get("https://api.example.com/data", {
params: { api_key: apiKey }
});
return res.data;
2.4. Advanced Example: Multi-Step IntegrationDirect link to 2.4. Advanced Example: Multi-Step Integration
The true power of scripting with axios shines in complex, multi-step integrations. In this example, the script first authenticates with an API by making a POST request to get a JWT token. It then uses that token to make a subsequent GET request to a protected endpoint, transforms the data and saves it in a collection. This pattern is very common when working with modern APIs.
// Multi-step API integration
try {
// Step 1: Authenticate
let authResponse = await SF.utils.axios.post("https://api.example.com/auth", {
username: apiUser,
password: apiPassword
});
let token = authResponse.data.token;
// Step 2: Fetch data with authentication
let dataResponse = await SF.utils.axios.get("https://api.example.com/data", {
headers: { Authorization: "Bearer " + token }
});
// Step 3: Process the data
let processedData = dataResponse.data.map((item) => ({
id: item.id,
name: item.name,
processed_at: new Date()
}));
// Step 4: Save it in a Softyflow collection
await SF.collection.insertMany("external_data", processedData);
return { success: true, count: processedData.length };
} catch (error) {
console.error("Integration failed:", error);
return { success: false, error: error.message };
}
3. Incoming APIs: Exposing Your Application to the WorldDirect link to 3. Incoming APIs: Exposing Your Application to the World
Integrations are a two-way street. So far, we've focused on how Softyflow can consume external APIs. But what if you need external systems to communicate with your Softyflow application? This is where Incoming APIs come in.
This powerful feature allows you to create your own secure API endpoints that can trigger Softyflow processes, interact with your data, and execute custom logic. It's the perfect way to implement webhooks, build a public API for your application, or enable integrations with systems that need to initiate contact with Softyflow.
3.1. Building Your First Incoming APIDirect link to 3.1. Building Your First Incoming API
Create the API from the APIs panel of the project dock (New API). The API editor opens: write the logic with visual Actions or in JavaScript Code, and describe the expected body with a Call schema.
3.1.1. Accessing Request DataDirect link to 3.1.1. Accessing Request Data
Softyflow provides a set of global variables that you can use to access the incoming request's data:
SF_body: The parsed JSON body of the request.SF_headers: An object containing the HTTP headers.SF_query: An object containing the URL query parameters.SF_mode: The execution mode of the API (test,uat, orprod).SF_initiator: The user object of the user who initiated the API call.SF_channel:"http"for an HTTP call,"mcp"for a call made by an AI assistant through the MCP server.SF_client: for MCP calls, the AI client (id,name,host).
The image below shows the API editor, with the available variables above the code editor.

The API editor: available variables and code editor.
3.2. Example API ImplementationDirect link to 3.2. Example API Implementation
A simple implementation of an incoming API in Softyflow is shown here, written in the Code tile of the API editor. The script reads the request body with the SF_body variable, checks it, saves a document in a collection and returns a result: the returned value becomes the response sent back to the caller. This demonstrates the basic structure of a Softyflow API.
// Process the incoming data
const requestData = SF_body;
// Validate it (a call schema with "Refuse calls that do not match" can do it for you)
if (!requestData.email) {
return { success: false, error: "Email is required" };
}
// Save it in a collection
const result = await SF.collection.insertOne("customers", {
email: requestData.email,
name: requestData.name,
created_at: new Date(),
created_by: SF_initiator._id
});
// The returned value becomes the response
return { success: true, customer_id: result.insertedId };
3.3. Consuming Your Incoming APIDirect link to 3.3. Consuming Your Incoming API
Once your API is created, you can call it from various places, both within and outside of Softyflow.
3.3.1. From within Softyflow: The InvokeApi ActionDirect link to 3.3.1. From within Softyflow: The InvokeApi Action
The easiest way to call an incoming API from a web interface is the invokeApi action of the Api category. This action provides a simple, no-code way to call your APIs, pass data to them, and handle their responses. In a process, call the URL of the API with SF.utils.axios (see section 2).
The image below shows the configuration of an invokeApi action. You simply select the API you want to call, provide the body of the request in its params editor (which can include dynamic variables such as {{customer_id}}), and specify a variable to store the response.

3.3.2. From External Systems: Getting the API URLDirect link to 3.3.2. From External Systems: Getting the API URL
To allow external systems to call your API, you need to provide them with the API's URL. Open the Endpoint tile of the API editor: it gives the URL of each environment, the authentication to use (session cookie or x-access-token header, none for a public API), ready-made cURL, fetch and axios snippets, and the response format.

Environment-specific URLs for your API.
3.4. Security and ManagementDirect link to 3.4. Security and Management
Softyflow provides a robust set of tools for securing and managing your incoming APIs.
3.4.1. API Access ControlDirect link to 3.4.1. API Access Control
- Role-Based Access: You can restrict access to your APIs by assigning them to specific user groups.
- Public Access: For webhooks or other public-facing services, you can mark an API as "public" to allow access without authentication.
- Call Schema Validation: With a call schema and Refuse calls that do not match, calls with missing or malformed fields are refused with a
400error before your logic runs. - Usage Monitoring: All API calls are logged in the Logs tile, allowing you to monitor usage, track who is calling your APIs, and when (calls from AI assistants carry an MCP badge).
3.4.2. Built-in API TestingDirect link to 3.4.2. Built-in API Testing
Testing is a first-class citizen in Softyflow's API module. The Test the API panel of the API editor allows you to:
- Define Test Payloads: Type the test body (
SF_body) in a JSON editor, or fill it from the example call of the call schema (Use as test variables). - Execute Tests: Click Run (Ctrl + Enter) to execute the last saved version of your API in TEST mode (Save and run when you have unsaved changes).
- View Results: The status and the response of your API are displayed in the panel; when the call schema refuses the call, the refused fields are listed.
- Monitor Logs: The Logs tile lists every call with its user, date and result.

4. AI Assistants: Connecting Claude, ChatGPT and Others with MCPDirect link to 4. AI Assistants: Connecting Claude, ChatGPT and Others with MCP
Since version 8.6, the users of your applications can work with Softyflow from their AI assistant: "list my open orders", "create an order of 3 screens for customer C042"… The assistant calls your Softyflow APIs as tools, through the MCP (Model Context Protocol) server built into Softyflow. It always acts on behalf of the user who connected it, with that user's rights, and only on the applications the user chose.
This section is about the users of your applications. Developers who want Claude Code, Cursor, Codex or VS Code to read or build the projects connect to the developer MCP server (/mcp/dev), in Read only or Read and write: see Development Agents.
4.1. How It WorksDirect link to 4.1. How It Works
- The developer exposes APIs as tools. In the API editor, an API gets a call schema (the fields it expects, each with a description for the AI) and the Expose as an MCP tool switch is turned on. See Exposing an API as an MCP tool.
- The user adds Softyflow to their assistant with the address of the MCP server of an environment.
- The user signs in to Softyflow and gives consent: environment, access level and applications.
- The assistant calls the tools. Each call runs the API like an HTTP call, checks the arguments against the call schema and appears in the API logs with an MCP badge.
4.2. The MCP Server AddressesDirect link to 4.2. The MCP Server Addresses
Softyflow runs one MCP server per environment, on your instance address:
| Environment | Address | API version used |
|---|---|---|
| Production | https://<your-instance>/mcp | Deployed version |
| Acceptance | https://<your-instance>/mcp/uat | Acceptance version |
| Test | https://<your-instance>/mcp/test | Last saved version |
Users find these addresses, ready to copy, in My settings › AI apps on the Softyflow portal (the Acceptance and Test addresses are shown to users with IDE access only). Developers also find them in the AI tool (MCP) tile of the API editor.

4.3. Connecting an AssistantDirect link to 4.3. Connecting an Assistant
- Copy the address of the environment from My settings › AI apps.
- Add it to your assistant as an MCP connector:
- Claude: Settings › Connectors › Add custom connector;
- ChatGPT: Settings › Apps › Advanced settings: turn on developer mode, then Create;
- Other MCP clients (Claude Code, VS Code…): paste the address in their MCP server settings.
- The assistant opens the Softyflow sign-in page. Sign in with your usual account (single sign-on included).
- The Authorize an AI application page opens. Check the application name and the address you will be sent back to, then choose:
- Access level: Read only (the AI can only use the tools that change nothing) or Read and modify (the AI can also use the tools that create, change or delete data);
- Applications: tick the applications whose tools the AI may see (the number of tools is shown for each), and optionally Also include the applications published later.
- Click Allow. You are sent back to the assistant, which now lists the Softyflow tools.

The consent page warns you when the AI application could not be verified ("Automatically registered client — not verified") or runs on your own computer (local address): only allow it if you have just started the connection yourself.
4.4. What the AI Can See and DoDirect link to 4.4. What the AI Can See and Do
- Only the tools of the applications you ticked, and among them only the APIs your roles allow (the access rights of each API apply, as in the applications).
- With a Read only connection, the tools that change data are not shown and cannot be called.
- Every call is checked against the call schema of the API before it runs, and is logged with the name of the user and of the AI client.
- The AI never receives your password: the sign-in happens on Softyflow, and the assistant only gets tokens.
4.5. Connection Duration and TokensDirect link to 4.5. Connection Duration and Tokens
The connection uses OAuth 2.1 (authorization code with PKCE):
- the assistant receives an access token valid for 1 hour, sent only in the
Authorizationheader; - it renews it with a refresh token valid for 30 days, which can be used once (a new one is issued at each renewal);
- a connection lasts 90 days at most; after that, the assistant asks you to sign in again;
- Softyflow never stores the tokens themselves, only a fingerprint of them, so they cannot be read back from the database.
4.6. Revoking AccessDirect link to 4.6. Revoking Access
In My settings › AI apps, the Active connections table shows, for each connected assistant: the AI app, the environment and access level, the applications, when it was last used, when it was connected and when it expires.
- Revoke ends one connection at once: the assistant can no longer call any tool.
- Revoke all ends every connection of your account.
Connections are also revoked automatically when your password is changed or reset and when your account is blocked or deleted. Each connection granted or revoked is recorded in the platform logs.
5. Integration Best PracticesDirect link to 5. Integration Best Practices
Building robust and reliable integrations requires more than just connecting systems. Here are some best practices to keep in mind when working with any of the integration methods in Softyflow.
5.1. Security FirstDirect link to 5.1. Security First
- Validate Everything: Never trust data from external systems. Always validate input data on both the client and server sides to protect against common vulnerabilities like injection attacks.
- Enforce Authentication: Secure your APIs with robust authentication mechanisms. Use Softyflow's role-based access control for both incoming and outgoing integrations.
- Expose to AI Deliberately: Only expose as MCP tools the APIs an assistant really needs, with precise descriptions, and mark the ones that change data correctly so that read-only connections stay read-only.
- Use HTTPS: Always use HTTPS for all API communications to encrypt data in transit and protect it from eavesdropping.
- Sanitize Data: Before storing or processing data from external systems, make sure to sanitize it to prevent cross-site scripting (XSS) and other attacks.
5.2. Robust Error HandlingDirect link to 5.2. Robust Error Handling
- Expect the Unexpected: External systems can fail in unpredictable ways. Your integration logic should be resilient and able to handle network errors, timeouts, and unexpected API responses.
- Return Meaningful Errors: When building incoming APIs, provide clear and meaningful error messages to your consumers. Use standard HTTP status codes to indicate the nature of the error.
- Log Everything: Comprehensive logging is your best friend when it comes to debugging integration issues. Log all API requests and responses, as well as any errors that occur.
5.3. Performance MattersDirect link to 5.3. Performance Matters
- Timeouts are Crucial: Don't let your application hang waiting for a slow external API. Implement aggressive timeouts and have a fallback plan for when an API is unresponsive.
- Cache When Possible: If you are frequently requesting data that doesn't change often, consider caching the responses to improve performance and reduce the load on the external system.
- Monitor Performance: Keep an eye on the performance of your integrations. Softyflow's monitoring tools can help you identify bottlenecks and slow APIs.
5.4. Clear DocumentationDirect link to 5.4. Clear Documentation
- Document Your APIs: If you are building incoming APIs, provide clear and comprehensive documentation for your consumers. A call schema with a description on each field documents the API in the Endpoint tile and is what AI assistants read.
- Provide Examples: Include code samples and examples to make it easier for developers to get started with your API.
- Version Your APIs: If you need to make breaking changes to an incoming API, consider creating a new version to avoid disrupting existing integrations.
By following these best practices, you can build integrations that are secure, reliable, and performant.
6. Conclusion and Next StepsDirect link to 6. Conclusion and Next Steps
You now have a comprehensive understanding of the powerful integration capabilities available in Softyflow. From the low-code simplicity of External Data Sources to the developer-focused flexibility of axios scripting, to the inbound potential of Incoming APIs and the AI assistants connected through MCP, you have the tools you need to connect your application to any system or service.
As you continue your journey with Softyflow, here are some recommended next steps:
- Web Interface Design: Start building user interfaces that leverage the data from your newly configured integrations.
- Process Design: Incorporate your integrations into your business processes to automate workflows that span multiple systems.
- Database Integration: Learn how to combine data from your own database with data from external APIs.
- Reporting: Create insightful reports and dashboards that combine data from all your integrated sources.
- Testing and Deployment: Understand how to effectively test and deploy your integrated applications.
- Monitoring and Execution: Learn how to monitor the health and performance of your integrations in production.
For more hands-on experience, we highly recommend our step-by-step tutorials. And for detailed information on specific features, be sure to check out our reference guides for APIs, EDS, and the SDK documentation.