Overview
The Flows API allows you to create, update, retrieve, and delete automation flows. Flows are the core building blocks of Activepieces automations, containing triggers and actions that define your workflow logic.Base Endpoint
Create Flow
Create a new flow in your project.Request Body
Name of the flow that will be displayed in the UI
ID of the project where the flow will be created
ID of the folder to place the flow in. If provided,
folderName is ignoredName of the folder to create or use. Only used if
folderId is not providedID of a template to use as a starting point for the flow
Custom metadata to attach to the flow. Useful for storing additional information
Response
Unique identifier for the flow
ID of the project containing the flow
External identifier for the flow (used for git sync)
ID of the user who created the flow
ID of the folder containing the flow
Current status of the flow:
ENABLED or DISABLEDID of the currently published version of the flow
The flow version object containing triggers and actions
ISO 8601 timestamp of when the flow was created
ISO 8601 timestamp of when the flow was last updated
Response Example
List Flows
Retrieve a paginated list of flows in a project.Query Parameters
Filter flows by project ID
Filter flows by folder ID
Filter by flow status:
ENABLED, DISABLEDSearch flows by name (partial match)
Filter by version state:
DRAFT, LOCKEDFilter flows by external IDs (for git sync)
Filter flows that use specific connections
Filter flows that use specific agents
Number of flows to return (1-100)
Pagination cursor from previous response
Response
Get Flow
Retrieve a specific flow by ID.Path Parameters
The flow ID
Query Parameters
Optional version ID to retrieve a specific version instead of the latest
Response
Returns the full flow object with the populated version.Update Flow (Operations)
Apply operations to modify a flow. This endpoint handles various operations like changing status, importing flow definitions, and more.Flow Operations
- Change Status
- Import Flow
- Lock and Publish
Count Flows
Get the count of flows in a folder or project.Query Parameters
Project ID
Optional folder ID to count flows in a specific folder
Response
Export Flow as Template
Export a flow as a reusable template.Response
Returns aSharedTemplate object that can be imported into other flows or shared.
Delete Flow
Permanently delete a flow.Path Parameters
The flow ID to delete
Response
Returns204 No Content on successful deletion.
Flow Status Management
Enabling Flows
When enabling a flow:- The flow must have a valid trigger configured
- Platform active flow limits are checked
- Webhooks are registered if using webhook triggers
- Scheduled triggers are set up if using schedule triggers
Disabling Flows
When disabling a flow:- Active runs continue to completion
- New runs are prevented
- Webhooks are unregistered
- Scheduled triggers are paused
Active Flows Limit
Your platform has a limit on the number of active (enabled) flows based on your plan. Attempting to enable a flow when at the limit will return an error.
Error Responses
Flow In Use (409)
Flow Not Found (404)
Best Practices
Folder Organization
Folder Organization
- Use folders to organize flows by team, department, or use case
- Create folders with descriptive names
- Leverage
folderNameparameter for automatic folder creation
Metadata Usage
Metadata Usage
- Store custom tags, categories, or identifiers in metadata
- Use metadata for integration with external systems
- Keep metadata size reasonable (< 1KB recommended)
Version Control
Version Control
- Use
externalIdfor git synchronization - Export flows as templates for backup
- Test flows in disabled state before enabling
Performance
Performance
- Use pagination cursors for large flow lists
- Filter by folder or status to reduce response size
- Cache flow definitions when possible
Code Examples
Related Endpoints
Flow Runs
Execute and monitor flow runs
Connections
Manage connections used in flows