Flowlib
Reference

API Endpoints

Complete REST API reference.

All endpoints are relative to the mount path (e.g., /flowlib).

Dashboard

MethodPathDescription
GET/dashboard/statsDashboard statistics (flow counts, run counts, activity).

Flows

MethodPathDescription
GET/flows/listList all flows.
POST/flows/listList flows with filtering and pagination.
POST/flowsCreate a new flow.
GET/flows/:idGet flow by ID.
PUT/flows/:idUpdate flow.
DELETE/flows/:idDelete flow.
POST/validate-flowValidate a flow definition.
GET/flows/:flowId/react-flowGet flow in React Flow format. Query: version, flowRunId.

Flow Versions

MethodPathDescription
POST/flows/:id/versions/listList versions with filtering.
POST/flows/:id/versionsCreate a new version.
GET/flows/:id/versions/:versionGet specific version (supports latest).

Flow Execution

MethodPathDescription
POST/flows/:flowId/runStart flow execution.
POST/flows/:flowId/run-to-node/:nodeIdExecute flow up to a specific node.
POST/flow-runs/listList all flow runs with filtering.
GET/flow-runs/:flowRunIdGet a specific flow run.
GET/flows/:flowId/flow-runsGet runs for a flow.
POST/flow-runs/:flowRunId/resumeResume a paused execution.
POST/flow-runs/:flowRunId/cancelCancel a running execution.
POST/flow-runs/:flowRunId/pausePause a running execution.

Node Execution

MethodPathDescription
GET/flow-runs/:flowRunId/node-executionsGet node executions for a run.
GET/flow-runs/:flowRunId/streamSSE stream of execution events.
POST/node-executions/listList node executions with filtering.

Node Testing & Data

MethodPathDescription
POST/node-data/sql-queryTest a SQL query.
POST/node-data/test-expressionTest a JavaScript expression.
POST/node-data/test-mapperTest a mapper expression.
POST/node-data/model-queryTest an AI model prompt.
GET/node-data/modelsGet available AI models. Query: credentialId or provider.
GET/node-data/databasesGet available databases.

Node Registry

MethodPathDescription
GET/nodesGet all available node definitions.
GET/node-definition/:nodeTypeGet a specific node definition.
GET/actions/:actionId/fields/:fieldName/optionsLoad dynamic field options.
POST/nodes/testTest a single node in isolation.
POST/node-config/updateUpdate node configuration.

Credentials

MethodPathDescription
POST/credentialsCreate a credential.
GET/credentialsList credentials. Query: type, authType, isActive.
GET/credentials/:idGet credential by ID.
PUT/credentials/:idUpdate a credential.
DELETE/credentials/:idDelete a credential.
POST/credentials/:id/testTest credential validity.
POST/credentials/:id/track-usageUpdate last-used timestamp.
GET/credentials/expiringGet expiring credentials. Query: daysUntilExpiry.
POST/credentials/test-requestProxy HTTP request for credential testing (SSRF-protected).

OAuth2

MethodPathDescription
GET/credentials/oauth2/providersList available OAuth2 providers.
GET/credentials/oauth2/providers/:providerIdGet specific OAuth2 provider.
POST/credentials/oauth2/startStart OAuth2 authorization flow.
POST/credentials/oauth2/callbackHandle OAuth2 callback (exchange code for tokens).
GET/credentials/oauth2/callbackHandle OAuth2 redirect callback.
POST/credentials/:id/refreshForce-refresh an OAuth2 access token.

Triggers

MethodPathDescription
GET/flows/:flowId/triggersList triggers for a flow.
POST/flows/:flowId/triggersCreate a trigger.
POST/flows/:flowId/triggers/syncSync triggers from flow definition.
GET/triggers/:triggerIdGet a specific trigger.
PUT/triggers/:triggerIdUpdate a trigger.
DELETE/triggers/:triggerIdDelete a trigger.

Agent Tools

MethodPathDescription
GET/agent/toolsList all available agent tools.

Chat Assistant

MethodPathDescription
GET/chat/statusCheck if chat is enabled.
POST/chatChat streaming endpoint (SSE).
GET/chat/models/:credentialIdList models for a credential. Query: q.
GET/chat/messages/:flowIdGet persisted chat messages.
PUT/chat/messages/:flowIdSave chat messages for a flow.
DELETE/chat/messages/:flowIdDelete chat messages for a flow.

Plugins

MethodPathDescription
ALL/plugins/*Dynamic plugin endpoints. Routing handled by plugin manager.

On this page