Workflows Executions
- Base URL:
https://workflows-execution.sls.epilot.io - API Docs: https://docs.epilot.io/api/workflow
Overview The Workflows Executions API manages the runtime instances of workflow processes within an organization. While Workflow Definitions (managed by the Workflows Definitions API) serve as reusable templates that define the structure, phases, and tasks of a process, Workflow Executions a
Quick Startโ
# List available operations
epilot workflow
# Call an operation
epilot workflow getExecutions
Common Flagsโ
| Flag | Description |
|---|---|
-p key=value | Set a named parameter |
-d '{...}' | Request body JSON |
-H 'Key: Value' | Custom header |
-t, --token <token> | Bearer token for authentication |
--profile <name> | Use a named profile |
-s, --server <url> | Override server base URL |
-i, --include | Include response headers in output |
--json | Output raw JSON (no formatting) |
-v, --verbose | Verbose output (show request details) |
--jsonata <expr> | JSONata expression to transform response |
--definition <file> | Override OpenAPI spec file/URL |
--guided | Prompt for all parameters interactively |
--no-interactive | Disable interactive prompts |
Operationsโ
Workflow Executions
getExecutionsโ Retrieve Workflow Executions. Optionally, you can filter them by context & schema. Please be aware, these executions arecreateExecutionโ Creates a new V1 Workflow Execution from a workflow definition (template).getExecutionโ Retrieves a complete V1 workflow execution by ID, including all steps information.updateExecutionโ Patches updates like assignees, status, closingReason for a single Workflow Execution.deleteExecutionโ Delete workflow execution by id. Workflow contexts will NOT be deleted.
Workflow Steps
createStepโ Create a new step in current workflow execution.updateStepโ Updates a workflow execution step with new values for status, assignees, due date, position, and more.deleteStepโ Deletes a step from a workflow execution.
Closing Reasons
getClosingReasonExecutionโ Shows all Closing Reasons defined at the moment of starting the Workflow Execution.
Flows V2
startFlowExecutionโ Starts a new Flow Execution based on a flow template (definition).getFlowExecutionโ Retrieves a complete flow execution by ID, including all phases, tasks, edges, contexts, and analytics.patchFlowExecutionโ Patch flow execution with new assignees, status, analytics & other changes.deleteFlowExecutionโ Deletes a specific execution of a flow, identified by id. Flow contexts will NOT be deleted.searchFlowExecutionsโ Search Flow Executions for a specific Entity.patchTaskโ Updates attributes of a flow task including status, assignees, due date, and more.runTaskAutomationโ Runs configured automation for a flow taskexecuteTaskโ Executes any kind of flow task immediately.patchPhaseโ Apply updates to a phase within flow executionaddTaskโ Create a new task in current workflow execution.cancelTaskScheduleโ Cancels a scheduled task, deleting the schedule and marking the task as skipped.reconcileAutomationTaskโ Reconciles an automation task's status against its linked automation execution.runTaskScheduleNowโ Cancels the pending schedule for a task and immediately triggers its automation execution.
getExecutionsโ
Retrieve Workflow Executions. Optionally, you can filter them by context & schema. Please be aware, these executions are
GET /v1/workflows/executions
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
context | query | string | No | Id of an Entity |
schema | query | string | No | Schema of an Entity |
Sample Call
epilot workflow getExecutions
With JSONata filter:
epilot workflow getExecutions --jsonata '$'
Sample Response
[
{
"id": "8gja72h6kas6h",
"name": "Lead Qualification",
"trigger": "MANUAL",
"status": "STARTED",
"creationTime": "2021-04-27T12:01:13.000Z",
"lastUpdateTime": "2021-04-27T12:01:13.000Z",
"dueDate": "2021-04-27T12:01:13.000Z",
"flow": [
{
"id": "sectionId1",
"definitionId": "section_definition_id_1",
"name": "Initial Information Gathering",
"type": "SECTION",
"steps": [
{
"id": "sada5641f3a21",
"definitionId": "step_definition_id_1",
"name": "Call client"
},
{
"id": "sada5641f3a22",
"definitionId": "step_definition_id_2",
"name": "Check product availability"
}
]
},
{
"id": "firstLevelStepId1",
"definitionId": "step_definition_id_4",
"name": "Print and send catalog",
"type": "STEP"
}
]
}
]
createExecutionโ
Creates a new V1 Workflow Execution from a workflow definition (template).
POST /v1/workflows/executions
Request Body (required)
Sample Call
epilot workflow createExecution
With request body:
epilot workflow createExecution \
-d '{
"workflowId": "j3f23fh23uif98",
"trigger": "AUTOMATIC",
"contexts": [
{
"id": "3fa3fa86-0907-4642-a57e-0fe30a19874d",
"schema": "contact"
},
{
"id": "3a6d42fa-5070-4723-b90f-41ead4303e33",
"schema": "opportunity"
}
]
}'
Using stdin pipe:
cat body.json | epilot workflow createExecution
With JSONata filter:
epilot workflow createExecution --jsonata '$'
Sample Response
{
"id": "8gja72h6kas6h",
"name": "Lead Qualification",
"trigger": "MANUAL",
"status": "STARTED",
"creationTime": "2021-04-27T12:01:13.000Z",
"lastUpdateTime": "2021-04-27T12:01:13.000Z",
"dueDate": "2021-04-27T12:01:13.000Z",
"assignedTo": ["252", "29052"],
"flow": [
{
"id": "sectionId1",
"name": "Initial Information Gathering",
"steps": [
{
"id": "sada5641f3a21",
"name": "Call client and confirm address and product",
"definitionId": "step_definition_id_1",
"status": "ASSIGNED",
"assignedTo": ["11"]
},
{
"id": "sada5641f3a22",
"name": "Check product availability",
"status": "UNASSIGNED",
"definitionId": "step_definition_id_2"
}
]
},
{
"id": "firstLevelStepId1",
"definitionId": "step_definition_id_4",
"name": "Print and send catalog",
"status": "SKIPPED",
"dueDate": "2023-01-15T20:00:00"
}
]
}
getExecutionโ
Retrieves a complete V1 workflow execution by ID, including all steps information.
GET /v1/workflows/executions/{executionId}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
executionId | path | string | Yes | Id of the execution |
Sample Call
epilot workflow getExecution \
-p executionId=wd561
Using positional args for path parameters:
epilot workflow getExecution wd561
With JSONata filter:
epilot workflow getExecution -p executionId=wd561 --jsonata '$'
Sample Response
{
"id": "8gja72h6kas6h",
"name": "Lead Qualification",
"trigger": "MANUAL",
"status": "STARTED",
"creationTime": "2021-04-27T12:01:13.000Z",
"lastUpdateTime": "2021-04-27T12:01:13.000Z",
"dueDate": "2021-04-27T12:01:13.000Z",
"assignedTo": ["252", "29052"],
"flow": [
{
"id": "sectionId1",
"name": "Initial Information Gathering",
"steps": [
{
"id": "sada5641f3a21",
"name": "Call client and confirm address and product",
"definitionId": "step_definition_id_1",
"status": "ASSIGNED",
"assignedTo": ["11"]
},
{
"id": "sada5641f3a22",
"name": "Check product availability",
"status": "UNASSIGNED",
"definitionId": "step_definition_id_2"
}
]
},
{
"id": "firstLevelStepId1",
"definitionId": "step_definition_id_4",
"name": "Print and send catalog",
"status": "SKIPPED",
"dueDate": "2023-01-15T20:00:00"
}
]
}
updateExecutionโ
Patches updates like assignees, status, closingReason for a single Workflow Execution.
PATCH /v1/workflows/executions/{executionId}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
executionId | path | string | Yes | Id of the execution |
Request Body (required)
Sample Call
epilot workflow updateExecution \
-p executionId=wd561
With request body:
epilot workflow updateExecution \
-p executionId=wd561 \
-d '{
"status": "STARTED",
"assignedTo": ["string"],
"selectedClosingReasons": [
{
"id": "string",
"title": "string"
}
],
"closingReasonDescription": "string",
"dueDate": "string",
"dynamicDueDate": {
"numberOfUnits": 0,
"timePeriod": "minutes",
"actionTypeCondition": "WORKFLOW_STARTED",
"stepId": "string",
"phaseId": "string"
},
"closedBy": "string",
"contexts": [
{
"id": "string",
"title": "string",
"schema": "string"
}
],
"completedTime": "string"
}'
Using positional args for path parameters:
epilot workflow updateExecution wd561
Using stdin pipe:
cat body.json | epilot workflow updateExecution -p executionId=wd561
With JSONata filter:
epilot workflow updateExecution -p executionId=wd561 --jsonata '$'
deleteExecutionโ
Delete workflow execution by id. Workflow contexts will NOT be deleted.
DELETE /v1/workflows/executions/{executionId}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
executionId | path | string | Yes | Id of the execution to de deleted. |
Sample Call
epilot workflow deleteExecution \
-p executionId=CustomerRequest
Using positional args for path parameters:
epilot workflow deleteExecution CustomerRequest
With JSONata filter:
epilot workflow deleteExecution -p executionId=CustomerRequest --jsonata '$'
createStepโ
Create a new step in current workflow execution.
POST /v1/workflows/executions/{executionId}/steps
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
executionId | path | string | Yes | Id of the execution |
Request Body (required)
Sample Call
epilot workflow createStep \
-p executionId=wd56125gah
With request body:
epilot workflow createStep \
-p executionId=wd56125gah \
-d '{
"insertionIndex": 0,
"name": "string",
"description": {
"enabled": true,
"value": "string"
},
"status": "UNASSIGNED",
"sectionId": "string",
"executionType": "MANUAL",
"automationConfig": {
"flowId": "string",
"executionId": "string",
"executionStatus": "string"
}
}'
Using positional args for path parameters:
epilot workflow createStep wd56125gah
Using stdin pipe:
cat body.json | epilot workflow createStep -p executionId=wd56125gah
With JSONata filter:
epilot workflow createStep -p executionId=wd56125gah --jsonata '$'
Sample Response
{
"id": "string",
"definitionId": "string",
"entityRefId": "string",
"name": "string",
"description": {
"enabled": true,
"value": "string"
},
"type": "STEP",
"ecp": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"installer": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"partner": {
"enabled": true,
"label": "string",
"description": "string"
},
"enabled": true,
"requirements": [
{
"definitionId": "string",
"type": "STEP",
"condition": "CLOSED"
}
],
"executionType": "MANUAL",
"sectionId": "string",
"executionId": "string",
"userIds": [0],
"assignedTo": ["string"],
"assignedToInProgress": "string",
"assignedToOnHold": "string",
"status": "UNASSIGNED",
"created": "string",
"lastUpdated": "string",
"statusLastUpdated": "string",
"startedTime": "string",
"completedTime": "string",
"dueDate": "string",
"dynamicDueDate": {
"numberOfUnits": 0,
"timePeriod": "minutes",
"actionTypeCondition": "WORKFLOW_STARTED",
"stepId": "string",
"phaseId": "string"
},
"manuallyCreated": true,
"automationConfig": {
"flowId": "string",
"executionId": "string",
"executionStatus": "string"
},
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
},
"taxonomies": ["string"]
}
updateStepโ
Updates a workflow execution step with new values for status, assignees, due date, position, and more.
PATCH /v1/workflows/executions/{executionId}/steps/{stepId}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
executionId | path | string | Yes | Unique identifier of the workflow execution |
stepId | path | string | Yes | Short unique identifier (typically 6 characters) of the step within the execution |
Request Body (required)
Sample Call
epilot workflow updateStep \
-p executionId=wd56125gah \
-p stepId=7hj28a
With request body:
epilot workflow updateStep \
-p executionId=wd56125gah \
-p stepId=7hj28a \
-d '{
"stepId": "string",
"entityRefId": "string",
"userIds": [0],
"assignedTo": ["string"],
"assignedToInProgress": "string",
"assignedToOnHold": "string",
"status": "UNASSIGNED",
"dueDate": "string",
"dynamicDueDate": {
"numberOfUnits": 0,
"timePeriod": "minutes",
"actionTypeCondition": "WORKFLOW_STARTED",
"stepId": "string",
"phaseId": "string"
},
"name": "string",
"description": {
"enabled": true,
"value": "string"
},
"position": {
"index": 0,
"sectionId": "string"
},
"automationConfig": {
"flowId": "string",
"executionId": "string",
"executionStatus": "string"
},
"startedTime": "string",
"completedTime": "string"
}'
Using positional args for path parameters:
epilot workflow updateStep wd56125gah 7hj28a
Using stdin pipe:
cat body.json | epilot workflow updateStep -p executionId=wd56125gah -p stepId=7hj28a
With JSONata filter:
epilot workflow updateStep -p executionId=wd56125gah -p stepId=7hj28a --jsonata '$'
Sample Response
{
"id": "string",
"definitionId": "string",
"entityRefId": "string",
"name": "string",
"description": {
"enabled": true,
"value": "string"
},
"type": "STEP",
"ecp": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"installer": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"partner": {
"enabled": true,
"label": "string",
"description": "string"
},
"enabled": true,
"requirements": [
{
"definitionId": "string",
"type": "STEP",
"condition": "CLOSED"
}
],
"executionType": "MANUAL",
"sectionId": "string",
"executionId": "string",
"userIds": [0],
"assignedTo": ["string"],
"assignedToInProgress": "string",
"assignedToOnHold": "string",
"status": "UNASSIGNED",
"created": "string",
"lastUpdated": "string",
"statusLastUpdated": "string",
"startedTime": "string",
"completedTime": "string",
"dueDate": "string",
"dynamicDueDate": {
"numberOfUnits": 0,
"timePeriod": "minutes",
"actionTypeCondition": "WORKFLOW_STARTED",
"stepId": "string",
"phaseId": "string"
},
"manuallyCreated": true,
"automationConfig": {
"flowId": "string",
"executionId": "string",
"executionStatus": "string"
},
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
},
"taxonomies": ["string"]
}
deleteStepโ
Deletes a step from a workflow execution.
DELETE /v1/workflows/executions/{executionId}/steps/{stepId}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
executionId | path | string | Yes | Id of the execution |
stepId | path | string | Yes | Short uuid (length 6) to identify the Workflow Execution Step. |
Sample Call
epilot workflow deleteStep \
-p executionId=wd56125gah \
-p stepId=7hj28a
Using positional args for path parameters:
epilot workflow deleteStep wd56125gah 7hj28a
With JSONata filter:
epilot workflow deleteStep -p executionId=wd56125gah -p stepId=7hj28a --jsonata '$'
getClosingReasonExecutionโ
Shows all Closing Reasons defined at the moment of starting the Workflow Execution.
GET /v1/workflows/executions/{executionId}/closing-reasons
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
executionId | path | string | Yes | Id of the execution |
Sample Call
epilot workflow getClosingReasonExecution \
-p executionId=wd561
Using positional args for path parameters:
epilot workflow getClosingReasonExecution wd561
With JSONata filter:
epilot workflow getClosingReasonExecution -p executionId=wd561 --jsonata 'reasons'
Sample Response
{
"reasons": [
{
"id": "string",
"title": "string"
}
]
}
startFlowExecutionโ
Starts a new Flow Execution based on a flow template (definition).
POST /v2/flows/executions
Request Body (required)
Sample Call
epilot workflow startFlowExecution
With request body:
epilot workflow startFlowExecution \
-d '{
"flow_template_id": "tpl_abc123def456",
"trigger": {
"type": "MANUAL",
"automation_config": {
"flow_id": "string",
"execution_id": "string",
"execution_status": "string",
"error_reason": "string",
"input_context": {
"source": "trigger",
"task_id": "string"
},
"heal_attempts": 0,
"last_heal_attempted_at": "1970-01-01T00:00:00.000Z"
}
},
"contexts": [
{
"entity_id": "string",
"entity_schema": "string",
"is_primary": false
}
],
"purposes": ["string"]
}'
Using stdin pipe:
cat body.json | epilot workflow startFlowExecution
With JSONata filter:
epilot workflow startFlowExecution --jsonata 'id'
Sample Response
{
"id": "string",
"flow_template_id": "string",
"org_id": "string",
"name": "string",
"created_at": "string",
"updated_at": "string",
"due_date": "string",
"due_date_config": {
"duration": 0,
"unit": "minutes",
"type": "WORKFLOW_STARTED",
"task_id": "string",
"phase_id": "string"
},
"status": "STARTED",
"assigned_to": ["string"],
"analytics": {
"started_at": "string",
"completed_at": "string",
"closed_at": "string",
"started_by": "string",
"closed_by": "string"
},
"contexts": [
{
"entity_id": "string",
"entity_schema": "string",
"is_primary": false
}
],
"crt_tasks": [
{
"id": "string",
"crt_since": "1970-01-01T00:00:00.000Z"
}
],
"phases": [
{
"id": "string",
"template_id": "string",
"name": "string",
"status": "OPEN",
"updated_at": "string",
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {},
"assigned_to": ["string"],
"analytics": {},
"taxonomies": ["string"],
"loop_config": {}
}
],
"tasks": [
{
"id": "string",
"template_id": "string",
"name": "string",
"description": {},
"status": "UNASSIGNED",
"journey": {},
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {},
"requirements": [],
"assigned_to": ["string"],
"analytics": {},
"created_at": "1970-01-01T00:00:00.000Z",
"updated_at": "1970-01-01T00:00:00.000Z",
"manually_created": true,
"enabled": true,
"ecp": {},
"installer": {},
"partner": {},
"taxonomies": ["string"],
"phase_id": "string",
"task_type": "MANUAL",
"loop_config": {}
}
],
"edges": [
{
"id": "string",
"from_id": "string",
"to_id": "string",
"condition_id": "abc123",
"none_met": true
}
],
"_execution_chain": {
"parent_execution_id": "string",
"parent_task_id": "string",
"depth": 0
},
"closing_reason": {
"selected_reasons": [
{}
],
"configured_reasons": [
{}
],
"extra_description": "string"
},
"available_in_ecp": true,
"entity_sync": [
{
"trigger": {},
"target": {},
"value": {}
}
],
"taxonomies": ["string"],
"trigger": {
"type": "MANUAL",
"automation_config": {
"flow_id": "string",
"execution_id": "string",
"execution_status": "string",
"error_reason": "string",
"input_context": {},
"heal_attempts": 0,
"last_heal_attempted_at": "1970-01-01T00:00:00.000Z"
}
},
"singleClosingReasonSelection": true,
"linear": true
}
getFlowExecutionโ
Retrieves a complete flow execution by ID, including all phases, tasks, edges, contexts, and analytics.
GET /v2/flows/executions/{execution_id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
execution_id | path | string | Yes | Unique identifier for the flow execution. This ID is generated when the execution |
is created and remains constant throughout its lifecycle. |
Sample Call
epilot workflow getFlowExecution \
-p execution_id=exec_abc123def456
Using positional args for path parameters:
epilot workflow getFlowExecution exec_abc123def456
With JSONata filter:
epilot workflow getFlowExecution -p execution_id=exec_abc123def456 --jsonata 'id'
Sample Response
{
"id": "string",
"flow_template_id": "string",
"org_id": "string",
"name": "string",
"created_at": "string",
"updated_at": "string",
"due_date": "string",
"due_date_config": {
"duration": 0,
"unit": "minutes",
"type": "WORKFLOW_STARTED",
"task_id": "string",
"phase_id": "string"
},
"status": "STARTED",
"assigned_to": ["string"],
"analytics": {
"started_at": "string",
"completed_at": "string",
"closed_at": "string",
"started_by": "string",
"closed_by": "string"
},
"contexts": [
{
"entity_id": "string",
"entity_schema": "string",
"is_primary": false
}
],
"crt_tasks": [
{
"id": "string",
"crt_since": "1970-01-01T00:00:00.000Z"
}
],
"phases": [
{
"id": "string",
"template_id": "string",
"name": "string",
"status": "OPEN",
"updated_at": "string",
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {},
"assigned_to": ["string"],
"analytics": {},
"taxonomies": ["string"],
"loop_config": {}
}
],
"tasks": [
{
"id": "string",
"template_id": "string",
"name": "string",
"description": {},
"status": "UNASSIGNED",
"journey": {},
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {},
"requirements": [],
"assigned_to": ["string"],
"analytics": {},
"created_at": "1970-01-01T00:00:00.000Z",
"updated_at": "1970-01-01T00:00:00.000Z",
"manually_created": true,
"enabled": true,
"ecp": {},
"installer": {},
"partner": {},
"taxonomies": ["string"],
"phase_id": "string",
"task_type": "MANUAL",
"loop_config": {}
}
],
"edges": [
{
"id": "string",
"from_id": "string",
"to_id": "string",
"condition_id": "abc123",
"none_met": true
}
],
"_execution_chain": {
"parent_execution_id": "string",
"parent_task_id": "string",
"depth": 0
},
"closing_reason": {
"selected_reasons": [
{}
],
"configured_reasons": [
{}
],
"extra_description": "string"
},
"available_in_ecp": true,
"entity_sync": [
{
"trigger": {},
"target": {},
"value": {}
}
],
"taxonomies": ["string"],
"trigger": {
"type": "MANUAL",
"automation_config": {
"flow_id": "string",
"execution_id": "string",
"execution_status": "string",
"error_reason": "string",
"input_context": {},
"heal_attempts": 0,
"last_heal_attempted_at": "1970-01-01T00:00:00.000Z"
}
},
"singleClosingReasonSelection": true,
"linear": true
}
patchFlowExecutionโ
Patch flow execution with new assignees, status, analytics & other changes.
PATCH /v2/flows/executions/{execution_id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
execution_id | path | string | Yes | Unique identifier for the flow execution. This ID is generated when the execution |
is created and remains constant throughout its lifecycle. |
Request Body (required)
Sample Call
epilot workflow patchFlowExecution \
-p execution_id=exec_abc123def456
With request body:
epilot workflow patchFlowExecution \
-p execution_id=exec_abc123def456 \
-d '{
"status": "STARTED",
"assigned_to": ["string"],
"closing_reason": {
"selected_reasons": [
{
"id": "string",
"title": "string"
}
],
"configured_reasons": [
{
"id": "string",
"title": "string"
}
],
"extra_description": "string"
},
"due_date": "string",
"due_date_config": {
"duration": 0,
"unit": "minutes",
"type": "WORKFLOW_STARTED",
"task_id": "string",
"phase_id": "string"
},
"contexts": [
{
"entity_id": "string",
"entity_schema": "string",
"is_primary": false
}
]
}'
Using positional args for path parameters:
epilot workflow patchFlowExecution exec_abc123def456
Using stdin pipe:
cat body.json | epilot workflow patchFlowExecution -p execution_id=exec_abc123def456
With JSONata filter:
epilot workflow patchFlowExecution -p execution_id=exec_abc123def456 --jsonata 'id'
Sample Response
{
"id": "string",
"flow_template_id": "string",
"org_id": "string",
"name": "string",
"created_at": "string",
"updated_at": "string",
"due_date": "string",
"due_date_config": {
"duration": 0,
"unit": "minutes",
"type": "WORKFLOW_STARTED",
"task_id": "string",
"phase_id": "string"
},
"status": "STARTED",
"assigned_to": ["string"],
"analytics": {
"started_at": "string",
"completed_at": "string",
"closed_at": "string",
"started_by": "string",
"closed_by": "string"
},
"contexts": [
{
"entity_id": "string",
"entity_schema": "string",
"is_primary": false
}
],
"crt_tasks": [
{
"id": "string",
"crt_since": "1970-01-01T00:00:00.000Z"
}
],
"phases": [
{
"id": "string",
"template_id": "string",
"name": "string",
"status": "OPEN",
"updated_at": "string",
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {},
"assigned_to": ["string"],
"analytics": {},
"taxonomies": ["string"],
"loop_config": {}
}
],
"tasks": [
{
"id": "string",
"template_id": "string",
"name": "string",
"description": {},
"status": "UNASSIGNED",
"journey": {},
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {},
"requirements": [],
"assigned_to": ["string"],
"analytics": {},
"created_at": "1970-01-01T00:00:00.000Z",
"updated_at": "1970-01-01T00:00:00.000Z",
"manually_created": true,
"enabled": true,
"ecp": {},
"installer": {},
"partner": {},
"taxonomies": ["string"],
"phase_id": "string",
"task_type": "MANUAL",
"loop_config": {}
}
],
"edges": [
{
"id": "string",
"from_id": "string",
"to_id": "string",
"condition_id": "abc123",
"none_met": true
}
],
"_execution_chain": {
"parent_execution_id": "string",
"parent_task_id": "string",
"depth": 0
},
"closing_reason": {
"selected_reasons": [
{}
],
"configured_reasons": [
{}
],
"extra_description": "string"
},
"available_in_ecp": true,
"entity_sync": [
{
"trigger": {},
"target": {},
"value": {}
}
],
"taxonomies": ["string"],
"trigger": {
"type": "MANUAL",
"automation_config": {
"flow_id": "string",
"execution_id": "string",
"execution_status": "string",
"error_reason": "string",
"input_context": {},
"heal_attempts": 0,
"last_heal_attempted_at": "1970-01-01T00:00:00.000Z"
}
},
"singleClosingReasonSelection": true,
"linear": true
}
deleteFlowExecutionโ
Deletes a specific execution of a flow, identified by id. Flow contexts will NOT be deleted.
DELETE /v2/flows/executions/{execution_id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
execution_id | path | string | Yes | Unique identifier for the flow execution. This ID is generated when the execution |
is created and remains constant throughout its lifecycle.
|
| soft | query | boolean | No | When true, the execution is marked as deleted but retained in storage for archival
and audit purposes. When false (default), the execution is permanently removed.
Soft-deleted executions do not appear |
Sample Call
epilot workflow deleteFlowExecution \
-p execution_id=exec_abc123def456
Using positional args for path parameters:
epilot workflow deleteFlowExecution exec_abc123def456
With JSONata filter:
epilot workflow deleteFlowExecution -p execution_id=exec_abc123def456 --jsonata '$'
searchFlowExecutionsโ
Search Flow Executions for a specific Entity.
POST /v2/flows/executions:search
Request Body (required)
Sample Call
epilot workflow searchFlowExecutions \
-d '{"entity_id":"string","entity_schema":"string"}'
Using stdin pipe:
cat body.json | epilot workflow searchFlowExecutions
With JSONata filter:
epilot workflow searchFlowExecutions --jsonata 'results[0]'
Sample Response
{
"results": [
{
"id": "string",
"flow_template_id": "string",
"org_id": "string",
"name": "string",
"created_at": "string",
"updated_at": "string",
"due_date": "string",
"due_date_config": {},
"status": "STARTED",
"assigned_to": ["string"],
"analytics": {},
"contexts": [],
"crt_tasks": [],
"phases": [],
"tasks": [],
"edges": [],
"_execution_chain": {},
"closing_reason": {},
"available_in_ecp": true,
"entity_sync": [],
"taxonomies": ["string"],
"trigger": {},
"singleClosingReasonSelection": true,
"linear": true
}
]
}
patchTaskโ
Updates attributes of a flow task including status, assignees, due date, and more.
PATCH /v2/flows/executions/{execution_id}/tasks/{task_id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
execution_id | path | string | Yes | Unique identifier for the flow execution. This ID is generated when the execution |
is created and remains constant throughout its lifecycle.
|
| task_id | path | string | Yes | Unique identifier for a task within the execution. Each task has a unique ID
that distinguishes it from other tasks in the same execution.
|
Request Body (required)
Sample Call
epilot workflow patchTask \
-p execution_id=exec_abc123def456 \
-p task_id=task_7hj28a
With request body:
epilot workflow patchTask \
-p execution_id=exec_abc123def456 \
-p task_id=task_7hj28a \
-d '{
"name": "Review customer application",
"status": "UNASSIGNED",
"due_date": "2026-05-28T00:00:00.000",
"due_date_config": {
"duration": 0,
"unit": "minutes",
"type": "WORKFLOW_STARTED",
"task_id": "string",
"phase_id": "string"
},
"assigned_to": ["string"],
"enabled": true,
"automation_config": {
"flow_id": "string",
"execution_id": "string",
"execution_status": "string",
"error_reason": "string",
"input_context": {
"source": "trigger",
"task_id": "string"
},
"heal_attempts": 0,
"last_heal_attempted_at": "1970-01-01T00:00:00.000Z"
},
"description": {
"enabled": true,
"value": "string"
},
"ecp": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"installer": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"partner": {
"enabled": true,
"label": "string",
"description": "string"
},
"next_condition_id": "cond_branch_approved",
"revert_execution": false,
"completed_via_journey": false
}'
Using positional args for path parameters:
epilot workflow patchTask exec_abc123def456 task_7hj28a
Using stdin pipe:
cat body.json | epilot workflow patchTask -p execution_id=exec_abc123def456 -p task_id=task_7hj28a
With JSONata filter:
epilot workflow patchTask -p execution_id=exec_abc123def456 -p task_id=task_7hj28a --jsonata '$'
Sample Response
{
"id": "string",
"template_id": "string",
"name": "string",
"description": {
"enabled": true,
"value": "string"
},
"status": "UNASSIGNED",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
},
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {
"duration": 0,
"unit": "minutes",
"type": "WORKFLOW_STARTED",
"task_id": "string",
"phase_id": "string"
},
"requirements": [
{
"task_id": "string",
"phase_id": "string",
"when": "TASK_FINISHED"
}
],
"assigned_to": ["string"],
"analytics": {
"started_at": "1970-01-01T00:00:00.000Z",
"in_progress_at": "1970-01-01T00:00:00.000Z",
"completed_at": "1970-01-01T00:00:00.000Z",
"status_updated_at": "1970-01-01T00:00:00.000Z",
"in_progress_by": "string",
"completed_by": "string",
"skipped_by": "string",
"on_hold_by": "string"
},
"created_at": "1970-01-01T00:00:00.000Z",
"updated_at": "1970-01-01T00:00:00.000Z",
"manually_created": true,
"enabled": true,
"ecp": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"installer": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"partner": {
"enabled": true,
"label": "string",
"description": "string"
},
"taxonomies": ["string"],
"phase_id": "string",
"task_type": "MANUAL",
"loop_config": {
"max_iterations": 3,
"crt_iterations": 0
}
}
runTaskAutomationโ
Runs configured automation for a flow task
POST /v2/flows/executions/{execution_id}/tasks/{task_id}/automation:run
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
execution_id | path | string | Yes | Unique identifier for the flow execution. This ID is generated when the execution |
is created and remains constant throughout its lifecycle.
|
| task_id | path | string | Yes | Unique identifier for a task within the execution. Each task has a unique ID
that distinguishes it from other tasks in the same execution.
|
Sample Call
epilot workflow runTaskAutomation \
-p execution_id=exec_abc123def456 \
-p task_id=task_7hj28a
Using positional args for path parameters:
epilot workflow runTaskAutomation exec_abc123def456 task_7hj28a
With JSONata filter:
epilot workflow runTaskAutomation -p execution_id=exec_abc123def456 -p task_id=task_7hj28a --jsonata '$'
Sample Response
{
"id": "string",
"template_id": "string",
"name": "string",
"description": {
"enabled": true,
"value": "string"
},
"status": "UNASSIGNED",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
},
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {
"duration": 0,
"unit": "minutes",
"type": "WORKFLOW_STARTED",
"task_id": "string",
"phase_id": "string"
},
"requirements": [
{
"task_id": "string",
"phase_id": "string",
"when": "TASK_FINISHED"
}
],
"assigned_to": ["string"],
"analytics": {
"started_at": "1970-01-01T00:00:00.000Z",
"in_progress_at": "1970-01-01T00:00:00.000Z",
"completed_at": "1970-01-01T00:00:00.000Z",
"status_updated_at": "1970-01-01T00:00:00.000Z",
"in_progress_by": "string",
"completed_by": "string",
"skipped_by": "string",
"on_hold_by": "string"
},
"created_at": "1970-01-01T00:00:00.000Z",
"updated_at": "1970-01-01T00:00:00.000Z",
"manually_created": true,
"enabled": true,
"ecp": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"installer": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"partner": {
"enabled": true,
"label": "string",
"description": "string"
},
"taxonomies": ["string"],
"phase_id": "string",
"task_type": "MANUAL",
"automation_config": {
"flow_id": "string",
"execution_id": "string",
"execution_status": "string",
"error_reason": "string",
"input_context": {
"source": "trigger",
"task_id": "string"
},
"heal_attempts": 0,
"last_heal_attempted_at": "1970-01-01T00:00:00.000Z"
},
"automation_execution_id": "string",
"trigger_mode": "manual",
"schedule": {
"mode": "immediate"
},
"loop_config": {
"max_iterations": 3,
"crt_iterations": 0
}
}
executeTaskโ
Executes any kind of flow task immediately.
POST /v2/flows/executions/{execution_id}/tasks/{task_id}/execute
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
execution_id | path | string | Yes | Unique identifier for the flow execution. This ID is generated when the execution |
is created and remains constant throughout its lifecycle.
|
| task_id | path | string | Yes | Unique identifier for a task within the execution. Each task has a unique ID
that distinguishes it from other tasks in the same execution.
|
Sample Call
epilot workflow executeTask \
-p execution_id=exec_abc123def456 \
-p task_id=task_7hj28a
Using positional args for path parameters:
epilot workflow executeTask exec_abc123def456 task_7hj28a
With JSONata filter:
epilot workflow executeTask -p execution_id=exec_abc123def456 -p task_id=task_7hj28a --jsonata '$'
Sample Response
{
"id": "string",
"template_id": "string",
"name": "string",
"description": {
"enabled": true,
"value": "string"
},
"status": "UNASSIGNED",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
},
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {
"duration": 0,
"unit": "minutes",
"type": "WORKFLOW_STARTED",
"task_id": "string",
"phase_id": "string"
},
"requirements": [
{
"task_id": "string",
"phase_id": "string",
"when": "TASK_FINISHED"
}
],
"assigned_to": ["string"],
"analytics": {
"started_at": "1970-01-01T00:00:00.000Z",
"in_progress_at": "1970-01-01T00:00:00.000Z",
"completed_at": "1970-01-01T00:00:00.000Z",
"status_updated_at": "1970-01-01T00:00:00.000Z",
"in_progress_by": "string",
"completed_by": "string",
"skipped_by": "string",
"on_hold_by": "string"
},
"created_at": "1970-01-01T00:00:00.000Z",
"updated_at": "1970-01-01T00:00:00.000Z",
"manually_created": true,
"enabled": true,
"ecp": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"installer": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"partner": {
"enabled": true,
"label": "string",
"description": "string"
},
"taxonomies": ["string"],
"phase_id": "string",
"task_type": "MANUAL",
"loop_config": {
"max_iterations": 3,
"crt_iterations": 0
}
}
patchPhaseโ
Apply updates to a phase within flow execution
PATCH /v2/flows/executions/{execution_id}/phases/{phase_id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
execution_id | path | string | Yes | Unique identifier for the flow execution. This ID is generated when the execution |
is created and remains constant throughout its lifecycle.
|
| phase_id | path | string | Yes | Unique identifier for a phase within the execution. Phases group related tasks
together and track collective progress.
|
Request Body (required)
Sample Call
epilot workflow patchPhase \
-p execution_id=exec_abc123def456 \
-p phase_id=phase_9gjs2952j
With request body:
epilot workflow patchPhase \
-p execution_id=exec_abc123def456 \
-p phase_id=phase_9gjs2952j \
-d '{
"name": "string",
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {
"duration": 0,
"unit": "minutes",
"type": "WORKFLOW_STARTED",
"task_id": "string",
"phase_id": "string"
},
"assigned_to": ["string"]
}'
Using positional args for path parameters:
epilot workflow patchPhase exec_abc123def456 phase_9gjs2952j
Using stdin pipe:
cat body.json | epilot workflow patchPhase -p execution_id=exec_abc123def456 -p phase_id=phase_9gjs2952j
With JSONata filter:
epilot workflow patchPhase -p execution_id=exec_abc123def456 -p phase_id=phase_9gjs2952j --jsonata 'id'
Sample Response
{
"id": "string",
"template_id": "string",
"name": "string",
"status": "OPEN",
"updated_at": "string",
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {
"duration": 0,
"unit": "minutes",
"type": "WORKFLOW_STARTED",
"task_id": "string",
"phase_id": "string"
},
"assigned_to": ["string"],
"analytics": {
"started_at": "1970-01-01T00:00:00.000Z",
"in_progress_at": "1970-01-01T00:00:00.000Z",
"completed_at": "1970-01-01T00:00:00.000Z",
"status_updated_at": "1970-01-01T00:00:00.000Z",
"in_progress_by": "string",
"completed_by": "string",
"skipped_by": "string",
"on_hold_by": "string"
},
"taxonomies": ["string"],
"loop_config": {
"max_iterations": 3,
"crt_iterations": 0
}
}
addTaskโ
Create a new task in current workflow execution.
POST /v2/flows/executions/{execution_id}/tasks
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
execution_id | path | string | Yes | Unique identifier for the flow execution. This ID is generated when the execution |
is created and remains constant throughout its lifecycle. |
Request Body (required)
Sample Call
epilot workflow addTask \
-p execution_id=exec_abc123def456
With request body:
epilot workflow addTask \
-p execution_id=exec_abc123def456 \
-d '{
"previous_task_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"next_task_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"task": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"status": "UNASSIGNED",
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {
"duration": 0,
"unit": "minutes",
"type": "WORKFLOW_STARTED",
"task_id": "string",
"phase_id": "string"
},
"assigned_to": ["string"],
"enabled": true,
"automation_config": {
"flow_id": "string",
"execution_id": "string",
"execution_status": "string",
"error_reason": "string",
"input_context": {
"source": "trigger",
"task_id": "string"
},
"heal_attempts": 0,
"last_heal_attempted_at": "1970-01-01T00:00:00.000Z"
},
"phase_id": "string",
"task_type": "MANUAL"
}
}'
Using positional args for path parameters:
epilot workflow addTask exec_abc123def456
Using stdin pipe:
cat body.json | epilot workflow addTask -p execution_id=exec_abc123def456
With JSONata filter:
epilot workflow addTask -p execution_id=exec_abc123def456 --jsonata '$'
Sample Response
{
"id": "string",
"template_id": "string",
"name": "string",
"description": {
"enabled": true,
"value": "string"
},
"status": "UNASSIGNED",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
},
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {
"duration": 0,
"unit": "minutes",
"type": "WORKFLOW_STARTED",
"task_id": "string",
"phase_id": "string"
},
"requirements": [
{
"task_id": "string",
"phase_id": "string",
"when": "TASK_FINISHED"
}
],
"assigned_to": ["string"],
"analytics": {
"started_at": "1970-01-01T00:00:00.000Z",
"in_progress_at": "1970-01-01T00:00:00.000Z",
"completed_at": "1970-01-01T00:00:00.000Z",
"status_updated_at": "1970-01-01T00:00:00.000Z",
"in_progress_by": "string",
"completed_by": "string",
"skipped_by": "string",
"on_hold_by": "string"
},
"created_at": "1970-01-01T00:00:00.000Z",
"updated_at": "1970-01-01T00:00:00.000Z",
"manually_created": true,
"enabled": true,
"ecp": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"installer": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"partner": {
"enabled": true,
"label": "string",
"description": "string"
},
"taxonomies": ["string"],
"phase_id": "string",
"task_type": "MANUAL",
"loop_config": {
"max_iterations": 3,
"crt_iterations": 0
}
}
cancelTaskScheduleโ
Cancels a scheduled task, deleting the schedule and marking the task as skipped.
DELETE /v2/flows/executions/{execution_id}/tasks/{task_id}/schedule
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
execution_id | path | string | Yes | Unique identifier for the flow execution. This ID is generated when the execution |
is created and remains constant throughout its lifecycle.
|
| task_id | path | string | Yes | Unique identifier for a task within the execution. Each task has a unique ID
that distinguishes it from other tasks in the same execution.
|
Sample Call
epilot workflow cancelTaskSchedule \
-p execution_id=exec_abc123def456 \
-p task_id=task_7hj28a
Using positional args for path parameters:
epilot workflow cancelTaskSchedule exec_abc123def456 task_7hj28a
With JSONata filter:
epilot workflow cancelTaskSchedule -p execution_id=exec_abc123def456 -p task_id=task_7hj28a --jsonata '$'
reconcileAutomationTaskโ
Reconciles an automation task's status against its linked automation execution.
POST /v2/flows/executions/{execution_id}/tasks/{task_id}/reconcile-automation
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
execution_id | path | string | Yes | Unique identifier for the flow execution. This ID is generated when the execution |
is created and remains constant throughout its lifecycle.
|
| task_id | path | string | Yes | Unique identifier for a task within the execution. Each task has a unique ID
that distinguishes it from other tasks in the same execution.
|
Sample Call
epilot workflow reconcileAutomationTask \
-p execution_id=exec_abc123def456 \
-p task_id=task_7hj28a
Using positional args for path parameters:
epilot workflow reconcileAutomationTask exec_abc123def456 task_7hj28a
With JSONata filter:
epilot workflow reconcileAutomationTask -p execution_id=exec_abc123def456 -p task_id=task_7hj28a --jsonata 'id'
Sample Response
{
"id": "string",
"flow_template_id": "string",
"org_id": "string",
"name": "string",
"created_at": "string",
"updated_at": "string",
"due_date": "string",
"due_date_config": {
"duration": 0,
"unit": "minutes",
"type": "WORKFLOW_STARTED",
"task_id": "string",
"phase_id": "string"
},
"status": "STARTED",
"assigned_to": ["string"],
"analytics": {
"started_at": "string",
"completed_at": "string",
"closed_at": "string",
"started_by": "string",
"closed_by": "string"
},
"contexts": [
{
"entity_id": "string",
"entity_schema": "string",
"is_primary": false
}
],
"crt_tasks": [
{
"id": "string",
"crt_since": "1970-01-01T00:00:00.000Z"
}
],
"phases": [
{
"id": "string",
"template_id": "string",
"name": "string",
"status": "OPEN",
"updated_at": "string",
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {},
"assigned_to": ["string"],
"analytics": {},
"taxonomies": ["string"],
"loop_config": {}
}
],
"tasks": [
{
"id": "string",
"template_id": "string",
"name": "string",
"description": {},
"status": "UNASSIGNED",
"journey": {},
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {},
"requirements": [],
"assigned_to": ["string"],
"analytics": {},
"created_at": "1970-01-01T00:00:00.000Z",
"updated_at": "1970-01-01T00:00:00.000Z",
"manually_created": true,
"enabled": true,
"ecp": {},
"installer": {},
"partner": {},
"taxonomies": ["string"],
"phase_id": "string",
"task_type": "MANUAL",
"loop_config": {}
}
],
"edges": [
{
"id": "string",
"from_id": "string",
"to_id": "string",
"condition_id": "abc123",
"none_met": true
}
],
"_execution_chain": {
"parent_execution_id": "string",
"parent_task_id": "string",
"depth": 0
},
"closing_reason": {
"selected_reasons": [
{}
],
"configured_reasons": [
{}
],
"extra_description": "string"
},
"available_in_ecp": true,
"entity_sync": [
{
"trigger": {},
"target": {},
"value": {}
}
],
"taxonomies": ["string"],
"trigger": {
"type": "MANUAL",
"automation_config": {
"flow_id": "string",
"execution_id": "string",
"execution_status": "string",
"error_reason": "string",
"input_context": {},
"heal_attempts": 0,
"last_heal_attempted_at": "1970-01-01T00:00:00.000Z"
}
},
"singleClosingReasonSelection": true,
"linear": true
}
runTaskScheduleNowโ
Cancels the pending schedule for a task and immediately triggers its automation execution.
POST /v2/flows/executions/{execution_id}/tasks/{task_id}/schedule/run-now
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
execution_id | path | string | Yes | Unique identifier for the flow execution. This ID is generated when the execution |
is created and remains constant throughout its lifecycle.
|
| task_id | path | string | Yes | Unique identifier for a task within the execution. Each task has a unique ID
that distinguishes it from other tasks in the same execution.
|
Sample Call
epilot workflow runTaskScheduleNow \
-p execution_id=exec_abc123def456 \
-p task_id=task_7hj28a
Using positional args for path parameters:
epilot workflow runTaskScheduleNow exec_abc123def456 task_7hj28a
With JSONata filter:
epilot workflow runTaskScheduleNow -p execution_id=exec_abc123def456 -p task_id=task_7hj28a --jsonata '$'
Sample Response
{
"id": "string",
"template_id": "string",
"name": "string",
"description": {
"enabled": true,
"value": "string"
},
"status": "UNASSIGNED",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
},
"due_date": "2021-04-27T12:00:00.000Z",
"due_date_config": {
"duration": 0,
"unit": "minutes",
"type": "WORKFLOW_STARTED",
"task_id": "string",
"phase_id": "string"
},
"requirements": [
{
"task_id": "string",
"phase_id": "string",
"when": "TASK_FINISHED"
}
],
"assigned_to": ["string"],
"analytics": {
"started_at": "1970-01-01T00:00:00.000Z",
"in_progress_at": "1970-01-01T00:00:00.000Z",
"completed_at": "1970-01-01T00:00:00.000Z",
"status_updated_at": "1970-01-01T00:00:00.000Z",
"in_progress_by": "string",
"completed_by": "string",
"skipped_by": "string",
"on_hold_by": "string"
},
"created_at": "1970-01-01T00:00:00.000Z",
"updated_at": "1970-01-01T00:00:00.000Z",
"manually_created": true,
"enabled": true,
"ecp": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"installer": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"complete_task_automatically": true
}
},
"partner": {
"enabled": true,
"label": "string",
"description": "string"
},
"taxonomies": ["string"],
"phase_id": "string",
"task_type": "MANUAL",
"loop_config": {
"max_iterations": 3,
"crt_iterations": 0
}
}