Create Workflow
Create a new automated workflow that triggers based on API traffic patterns and conditions.Path Parameters
string
required
Account identifier (format:
acc_ followed by 27 alphanumeric characters)string
required
Environment identifier (6 character alphanumeric)
string
required
Bucket identifier
Headers
string
required
Bearer token for authentication
Request Body
string
required
Name of the workflow
string
Description of what this workflow does
object
required
array
required
boolean
Whether this workflow should be active (default: true)
Response
string
Unique workflow identifier
string
Account identifier this workflow belongs to
string
Environment identifier
string
Bucket identifier this workflow is associated with
string
Name of the workflow
string
Description of the workflow
object
Trigger configuration
array
Array of workflow actions
boolean
Whether the workflow is currently active
string
ISO 8601 timestamp of workflow creation
Workflow Trigger Types
Request Trigger
Triggers when specific requests are made to your API.Error Trigger
Triggers when errors occur in your API.Threshold Trigger
Triggers when metrics cross specified thresholds.Schedule Trigger
Triggers on a scheduled basis using cron expressions.Workflow Action Types
Webhook Action
Send HTTP requests to external services.Email Action
Send email notifications.Slack Action
Send messages to Slack channels.ActivePieces Action
Trigger ActivePieces workflows for complex automation.Template Variables
Workflows support template variables that are dynamically replaced with actual values:Request Variables
{{request.method}}- HTTP method{{request.path}}- Request path{{request.headers}}- Request headers{{request.body}}- Request body{{request.query}}- Query parameters
Response Variables
{{response.statusCode}}- HTTP status code{{response.headers}}- Response headers{{response.body}}- Response body{{response.size}}- Response size in bytes
Timing Variables
{{timings.duration}}- Total request duration{{timings.responseTime}}- Response time
Context Variables
{{bucket.name}}- Bucket name{{bucket.sid}}- Bucket ID{{account.name}}- Account name{{environment.name}}- Environment name
Metric Variables (for threshold triggers)
{{metric.value}}- Current metric value{{metric.threshold}}- Configured threshold{{metric.timeWindow}}- Time window for the metric