Workflow Template
Add Workflow Template
Create a new workflow template with FIFO or concurrent execution mode
POST
Create a new workflow template with FIFO (First-In-First-Out) or concurrent execution mode. This endpoint creates the initial workflow structure; webhooks can be added to the workflow later using other APIs.
FIFO Sequential Mode (
FIFO (First-In-First-Out) mode ensures steps execute in strict sequential order:
Concurrent Mode (
Concurrent mode allows multiple steps to execute simultaneously:
Base URL
All API requests should be made to:Example request
Request body
| Field | Type | Required | Description |
|---|---|---|---|
workflow_name | string | Yes | Name of the workflow template |
workflow_description | string | Yes | Description of the workflow template |
runtype | string | Yes | Execution mode: "fifo_sequential" for strict sequential order, or "concurrently" for parallel execution |
Execution Modes
FIFO Sequential Mode (fifo_sequential)
FIFO (First-In-First-Out) mode ensures steps execute in strict sequential order:
- Guaranteed Order: Steps execute one after another, in the exact order defined
- Dependency Support: Later steps can safely access variables from earlier steps using
{{ step.response.variable }}and{{ initial.variable }} - Data Consistency: Ensures data flows correctly through the workflow
- Full Variable Support: All template variables are available:
{{ #key }}- System secrets{{ variable }}- Workflow variables{{ step.response.variable }}- Previous step responses{{ initial.variable }}- Initial workflow input
- Payment processing workflows
- Data transformation pipelines
- Sequential API calls with dependencies
- Multi-step user onboarding
Concurrent Mode (concurrently)
Concurrent mode allows multiple steps to execute simultaneously:
- Parallel Execution: Multiple steps run in parallel, reducing total execution time
- Independent Operations: Ideal when steps don’t depend on each other
- Limited Variable Support: In concurrent mode, only system variables are evaluated:
- ✅
{{ #key }}- System secrets (available) - ❌
{{ variable }}- Workflow variables (not available) - ❌
{{ step.response.variable }}- Previous step responses (not available) - ❌
{{ initial.variable }}- Initial workflow input (not available)
- ✅
- Sending notifications to multiple services simultaneously
- Parallel data processing
- Independent API calls
- Bulk operations
Example response
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean | Indicates if the request was successful |
details | string | Success message (only present on success) |
workflow_uuid | string | Unique identifier for the created workflow template (only present on success) |
error | string | Error message (only present on error) |
workflow_uuid | string | UUID of the existing workflow with the same name (only present on error) |
Next Steps
After creating a workflow template, you can:- Add Webhooks: Use workflow-specific APIs to add webhook steps to your workflow
- Configure Failure Handling: Set up failure handling and retry strategies
- Add Execution Conditions: Configure step conditions for conditional execution
- Schedule Workflows: Set up scheduling to run workflows automatically
Related Documentation
- Workflow Template Overview - Learn about workflow templates, execution modes, and features
- Webhook Template Overview - Understand webhook templates that can be used in workflows
- System Secret Vault Overview - Manage secrets for use in workflows
Authorizations
API key for authentication. Get this from your dashboard by selecting a brand and going to API Keys section.
Brand UUID for authentication. Get this from your dashboard after adding a brand - it will be displayed in the UI.
Body
application/json
Workflow template configuration
Name of the workflow template
Description of the workflow template
Execution mode: 'fifo_sequential' for strict sequential order, 'concurrently' for parallel execution (note: in concurrent mode, only system variables are evaluated; initial.variable, response, and header variables are not available)
Available options:
fifo_sequential, concurrently 
