OpenStack Workflow Service API¶
This is a reference for the OpenStack Workflow Service API which is provided by the Mistral project.
Workflows (workflows)¶
Manage workflow definitions.
A workflow is the main building block of Mistral. It represents a process that can be described in a various number of ways and that can do some job interesting to the end user. Each workflow consists of tasks (at least one) describing what exact steps should be made during workflow execution.
Lists all workflows.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
marker (Optional) |
query |
string |
A resource UUID to use as a pagination marker. The list will contain resources that come after the marker. |
limit (Optional) |
query |
integer |
Maximum number of resources to return in a single result. |
sort_keys (Optional) |
query |
string |
Comma-separated list of sort keys. Each key specifies a column to sort by. |
sort_dirs (Optional) |
query |
string |
Comma-separated list of sort directions. Each direction corresponds to
a key in |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
name (Optional) |
query |
string |
Filter by workflow name. |
input (Optional) |
query |
string |
Filter by workflow input. |
definition (Optional) |
query |
string |
Filter by workflow definition. |
tags (Optional) |
query |
string |
Filter by workflow tags. |
scope (Optional) |
query |
string |
Filter by workflow scope. |
project_id (Optional) |
query |
string |
Filter by project ID. Admin only. |
created_at (Optional) |
query |
string |
Filter by creation date. |
updated_at (Optional) |
query |
string |
Filter by last update date. |
all_projects (Optional) |
query |
boolean |
If set to |
namespace (Optional) |
query |
string |
The namespace of the resource. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
workflows |
body |
array |
A list of workflow objects. |
id |
body |
string |
The UUID of the workflow. |
name |
body |
string |
The name of the workflow. |
namespace (Optional) |
body |
string |
The namespace of the workflow. |
input (Optional) |
body |
string |
The input parameter definitions for the workflow. |
interface (Optional) |
body |
object |
A dictionary containing the input and output interface of the workflow. |
definition |
body |
string |
The workflow definition written in Mistral v2 DSL. |
checksum (Optional) |
body |
string |
MD5 checksum of the workflow definition. |
tags (Optional) |
body |
array |
A list of tags associated with the workflow. |
scope (Optional) |
body |
string |
The scope of the workflow. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the workflow. |
created_at |
body |
string |
The date and time when the workflow was created. |
updated_at (Optional) |
body |
string |
The date and time when the workflow was last updated. |
Creates one or more workflows from a YAML definition.
The request body should contain a YAML workflow definition conforming to the Mistral v2 DSL. Multiple workflows can be defined in a single YAML definition.
Normal response codes: 201
Error response codes: badRequest(400), unauthorized(401), forbidden(403), conflict(409)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
namespace (Optional) |
query |
string |
The namespace of the resource. |
scope (Optional) |
query |
string |
The scope of the resource. Valid values are |
skip_validation (Optional) |
query |
boolean |
If set to |
The request body is a YAML workflow definition in text/plain format.
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
workflows |
body |
array |
A list of workflow objects. |
id |
body |
string |
The UUID of the workflow. |
name |
body |
string |
The name of the workflow. |
namespace (Optional) |
body |
string |
The namespace of the workflow. |
input (Optional) |
body |
string |
The input parameter definitions for the workflow. |
interface (Optional) |
body |
object |
A dictionary containing the input and output interface of the workflow. |
definition |
body |
string |
The workflow definition written in Mistral v2 DSL. |
checksum (Optional) |
body |
string |
MD5 checksum of the workflow definition. |
tags (Optional) |
body |
array |
A list of tags associated with the workflow. |
scope (Optional) |
body |
string |
The scope of the workflow. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the workflow. |
created_at |
body |
string |
The date and time when the workflow was created. |
updated_at (Optional) |
body |
string |
The date and time when the workflow was last updated. |
Shows details for a workflow.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
workflow_identifier |
path |
string |
The name or UUID of the workflow. |
namespace (Optional) |
query |
string |
The namespace of the resource. |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the workflow. |
name |
body |
string |
The name of the workflow. |
namespace (Optional) |
body |
string |
The namespace of the workflow. |
input (Optional) |
body |
string |
The input parameter definitions for the workflow. |
interface (Optional) |
body |
object |
A dictionary containing the input and output interface of the workflow. |
definition |
body |
string |
The workflow definition written in Mistral v2 DSL. |
checksum (Optional) |
body |
string |
MD5 checksum of the workflow definition. |
tags (Optional) |
body |
array |
A list of tags associated with the workflow. |
scope (Optional) |
body |
string |
The scope of the workflow. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the workflow. |
created_at |
body |
string |
The date and time when the workflow was created. |
updated_at (Optional) |
body |
string |
The date and time when the workflow was last updated. |
Updates one or more workflows.
The request body should contain a YAML workflow definition conforming to the Mistral v2 DSL. If a workflow identifier is provided in the URL, only a single workflow can be updated at a time, and it must be identified by UUID.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
workflow_identifier |
path |
string |
The name or UUID of the workflow. |
namespace (Optional) |
query |
string |
The namespace of the resource. |
scope (Optional) |
query |
string |
The scope of the resource. Valid values are |
skip_validation (Optional) |
query |
boolean |
If set to |
The request body is a YAML workflow definition in text/plain format.
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
workflows |
body |
array |
A list of workflow objects. |
id |
body |
string |
The UUID of the workflow. |
name |
body |
string |
The name of the workflow. |
namespace (Optional) |
body |
string |
The namespace of the workflow. |
input (Optional) |
body |
string |
The input parameter definitions for the workflow. |
interface (Optional) |
body |
object |
A dictionary containing the input and output interface of the workflow. |
definition |
body |
string |
The workflow definition written in Mistral v2 DSL. |
checksum (Optional) |
body |
string |
MD5 checksum of the workflow definition. |
tags (Optional) |
body |
array |
A list of tags associated with the workflow. |
scope (Optional) |
body |
string |
The scope of the workflow. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the workflow. |
created_at |
body |
string |
The date and time when the workflow was created. |
updated_at (Optional) |
body |
string |
The date and time when the workflow was last updated. |
Deletes a workflow.
Normal response codes: 204
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
workflow_identifier |
path |
string |
The name or UUID of the workflow. |
namespace (Optional) |
query |
string |
The namespace of the resource. |
Response¶
There is no body content for the response of a successful DELETE action.
Validates a workflow definition without creating or updating any resources. This is useful for checking definitions for syntax errors before deploying them.
The request body should contain the workflow definition in Mistral v2 DSL format as plain text.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403)
Request¶
The request body should be the workflow definition with content type
text/plain.
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
valid |
body |
boolean |
Whether the definition is valid. |
error (Optional) |
body |
string |
The error message if validation failed. Only present when |
Lists all members with whom the workflow has been shared.
Members represent a sharing relationship between a resource owner and
another project. Currently, only private workflows can be shared. When a
resource is shared with a project, the member starts in pending status
and must accept the share before gaining access.
This feature requires authentication to be enabled.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
workflow_identifier |
path |
string |
The name or UUID of the workflow. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
members |
body |
array |
A list of member objects. |
id |
body |
string |
The UUID of the member record. |
resource_id |
body |
string |
The UUID of the shared resource. |
resource_type |
body |
string |
The type of the shared resource (e.g., |
project_id |
body |
string |
The project ID of the resource owner. |
member_id |
body |
string |
The project ID of the member (the project the resource is shared with). |
status |
body |
string |
The status of the member. One of |
created_at |
body |
string |
The date and time when the member was created. |
updated_at (Optional) |
body |
string |
The date and time when the member was last updated. |
Shows details for a workflow member.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
workflow_identifier |
path |
string |
The name or UUID of the workflow. |
member_id |
path |
string |
The project ID of the member. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the member record. |
resource_id |
body |
string |
The UUID of the shared resource. |
resource_type |
body |
string |
The type of the shared resource (e.g., |
project_id |
body |
string |
The project ID of the resource owner. |
member_id |
body |
string |
The project ID of the member (the project the resource is shared with). |
status |
body |
string |
The status of the member. One of |
created_at |
body |
string |
The date and time when the member was created. |
updated_at (Optional) |
body |
string |
The date and time when the member was last updated. |
Updates the status of a workflow member.
Used by the member project to accept or reject the share. The status
field must be one of pending, accepted, or rejected.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
workflow_identifier |
path |
string |
The name or UUID of the workflow. |
member_id |
path |
string |
The project ID of the member. |
status |
body |
string |
The new status for the member. One of |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the member record. |
resource_id |
body |
string |
The UUID of the shared resource. |
resource_type |
body |
string |
The type of the shared resource (e.g., |
project_id |
body |
string |
The project ID of the resource owner. |
member_id |
body |
string |
The project ID of the member (the project the resource is shared with). |
status |
body |
string |
The status of the member. One of |
created_at |
body |
string |
The date and time when the member was created. |
updated_at (Optional) |
body |
string |
The date and time when the member was last updated. |
Removes a member from the workflow’s share list.
Normal response codes: 204
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
workflow_identifier |
path |
string |
The name or UUID of the workflow. |
member_id |
path |
string |
The project ID of the member. |
Response¶
There is no body content for the response of a successful DELETE action.
Workbooks (workbooks)¶
Manage workbook definitions.
A workbook is a container for workflows, actions, and triggers that are logically related. It provides a convenient way to package related definitions together using a single YAML definition file.
Lists all workbooks.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
marker (Optional) |
query |
string |
A resource UUID to use as a pagination marker. The list will contain resources that come after the marker. |
limit (Optional) |
query |
integer |
Maximum number of resources to return in a single result. |
sort_keys (Optional) |
query |
string |
Comma-separated list of sort keys. Each key specifies a column to sort by. |
sort_dirs (Optional) |
query |
string |
Comma-separated list of sort directions. Each direction corresponds to
a key in |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
name (Optional) |
query |
string |
Filter by workbook name. |
definition (Optional) |
query |
string |
Filter by workbook definition. |
tags (Optional) |
query |
string |
Filter by workbook tags. |
scope (Optional) |
query |
string |
Filter by workbook scope. |
created_at (Optional) |
query |
string |
Filter by creation date. |
updated_at (Optional) |
query |
string |
Filter by last update date. |
namespace (Optional) |
query |
string |
The namespace of the resource. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
workbooks |
body |
array |
A list of workbook objects. |
id |
body |
string |
The UUID of the workbook. |
name |
body |
string |
The name of the workbook. |
namespace (Optional) |
body |
string |
The namespace of the workbook. |
definition |
body |
string |
The workbook definition written in Mistral v2 DSL. |
tags (Optional) |
body |
array |
A list of tags associated with the workbook. |
scope (Optional) |
body |
string |
The scope of the workbook. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the workbook. |
created_at |
body |
string |
The date and time when the workbook was created. |
updated_at (Optional) |
body |
string |
The date and time when the workbook was last updated. |
Creates a workbook from a YAML definition.
The request body should contain a YAML workbook definition conforming to the Mistral v2 DSL.
Normal response codes: 201
Error response codes: badRequest(400), unauthorized(401), forbidden(403), conflict(409)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
namespace (Optional) |
query |
string |
The namespace of the resource. |
scope (Optional) |
query |
string |
The scope of the resource. Valid values are |
skip_validation (Optional) |
query |
boolean |
If set to |
The request body is a YAML workbook definition in text/plain format.
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the workbook. |
name |
body |
string |
The name of the workbook. |
namespace (Optional) |
body |
string |
The namespace of the workbook. |
definition |
body |
string |
The workbook definition written in Mistral v2 DSL. |
tags (Optional) |
body |
array |
A list of tags associated with the workbook. |
scope (Optional) |
body |
string |
The scope of the workbook. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the workbook. |
created_at |
body |
string |
The date and time when the workbook was created. |
updated_at (Optional) |
body |
string |
The date and time when the workbook was last updated. |
Shows details for a workbook.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
workbook_name |
path |
string |
The name of the workbook. |
namespace (Optional) |
query |
string |
The namespace of the resource. |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the workbook. |
name |
body |
string |
The name of the workbook. |
namespace (Optional) |
body |
string |
The namespace of the workbook. |
definition |
body |
string |
The workbook definition written in Mistral v2 DSL. |
tags (Optional) |
body |
array |
A list of tags associated with the workbook. |
scope (Optional) |
body |
string |
The scope of the workbook. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the workbook. |
created_at |
body |
string |
The date and time when the workbook was created. |
updated_at (Optional) |
body |
string |
The date and time when the workbook was last updated. |
Updates a workbook.
The request body should contain a YAML workbook definition conforming to the Mistral v2 DSL. The workbook is identified by name within the definition.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
namespace (Optional) |
query |
string |
The namespace of the resource. |
scope (Optional) |
query |
string |
The scope of the resource. Valid values are |
skip_validation (Optional) |
query |
boolean |
If set to |
The request body is a YAML workbook definition in text/plain format.
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the workbook. |
name |
body |
string |
The name of the workbook. |
namespace (Optional) |
body |
string |
The namespace of the workbook. |
definition |
body |
string |
The workbook definition written in Mistral v2 DSL. |
tags (Optional) |
body |
array |
A list of tags associated with the workbook. |
scope (Optional) |
body |
string |
The scope of the workbook. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the workbook. |
created_at |
body |
string |
The date and time when the workbook was created. |
updated_at (Optional) |
body |
string |
The date and time when the workbook was last updated. |
Deletes a workbook.
Normal response codes: 204
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
workbook_name |
path |
string |
The name of the workbook. |
namespace (Optional) |
query |
string |
The namespace of the resource. |
Response¶
There is no body content for the response of a successful DELETE action.
Validates a workbook definition without creating or updating any resources. This is useful for checking definitions for syntax errors before deploying them.
The request body should contain the workbook definition in Mistral v2 DSL format as plain text.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403)
Request¶
The request body should be the workbook definition with content type
text/plain.
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
valid |
body |
boolean |
Whether the definition is valid. |
error (Optional) |
body |
string |
The error message if validation failed. Only present when |
Tasks (tasks)¶
Manage task executions.
A task represents a particular step of a workflow execution. It is created by the Mistral engine when a workflow is running and tracks the state and result of an individual unit of work within the workflow.
Lists all task executions.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
marker (Optional) |
query |
string |
A resource UUID to use as a pagination marker. The list will contain resources that come after the marker. |
limit (Optional) |
query |
integer |
Maximum number of resources to return in a single result. |
sort_keys (Optional) |
query |
string |
Comma-separated list of sort keys. Each key specifies a column to sort by. |
sort_dirs (Optional) |
query |
string |
Comma-separated list of sort directions. Each direction corresponds to
a key in |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
name (Optional) |
query |
string |
Filter by task name. |
workflow_name (Optional) |
query |
string |
Filter by the name of the workflow associated with the task. |
workflow_id (Optional) |
query |
string |
Filter by the ID of the workflow associated with the task. |
workflow_execution_id (Optional) |
query |
string |
Filter by the workflow execution ID. |
tags (Optional) |
query |
string |
Filter by task tags. |
state (Optional) |
query |
string |
Filter by task state. Valid values are |
state_info (Optional) |
query |
string |
Filter by task state info. |
result (Optional) |
query |
string |
Filter by task result. |
published (Optional) |
query |
string |
Filter by task published variables. |
processed (Optional) |
query |
boolean |
Filter by whether the task has been processed. |
created_at (Optional) |
query |
string |
Filter by creation date. |
updated_at (Optional) |
query |
string |
Filter by last update date. |
reset (Optional) |
query |
boolean |
Filter by reset flag. |
env (Optional) |
query |
string |
Filter by task environment. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
tasks |
body |
array |
A list of task objects. |
id |
body |
string |
The UUID of the task execution. |
name |
body |
string |
The name of the task. |
type |
body |
string |
The type of the task (e.g., |
workflow_name |
body |
string |
The name of the workflow that the task belongs to. |
workflow_namespace (Optional) |
body |
string |
The namespace of the workflow that the task belongs to. |
workflow_id |
body |
string |
The UUID of the workflow that the task belongs to. |
workflow_execution_id |
body |
string |
The UUID of the workflow execution that the task belongs to. |
tags (Optional) |
body |
array |
A list of tags associated with the task. |
state |
body |
string |
The current state of the task. One of |
state_info (Optional) |
body |
string |
An optional state information string providing additional details. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the task. |
runtime_context (Optional) |
body |
object |
A JSON object containing runtime context information. |
result (Optional) |
body |
string |
The result of the task execution. |
published (Optional) |
body |
object |
A JSON object containing published task variables. |
published_global (Optional) |
body |
object |
A JSON object containing globally published task variables. |
processed (Optional) |
body |
boolean |
Whether the task has been processed by the engine. |
created_at |
body |
string |
The date and time when the task was created. |
updated_at (Optional) |
body |
string |
The date and time when the task was last updated. |
started_at (Optional) |
body |
string |
The date and time when the task started executing. |
finished_at (Optional) |
body |
string |
The date and time when the task finished executing. |
Shows details for a task execution.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
task_id |
path |
string |
The UUID of the task execution. |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the task execution. |
name |
body |
string |
The name of the task. |
type |
body |
string |
The type of the task (e.g., |
workflow_name |
body |
string |
The name of the workflow that the task belongs to. |
workflow_namespace (Optional) |
body |
string |
The namespace of the workflow that the task belongs to. |
workflow_id |
body |
string |
The UUID of the workflow that the task belongs to. |
workflow_execution_id |
body |
string |
The UUID of the workflow execution that the task belongs to. |
tags (Optional) |
body |
array |
A list of tags associated with the task. |
state |
body |
string |
The current state of the task. One of |
state_info (Optional) |
body |
string |
An optional state information string providing additional details. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the task. |
runtime_context (Optional) |
body |
object |
A JSON object containing runtime context information. |
result (Optional) |
body |
string |
The result of the task execution. |
published (Optional) |
body |
object |
A JSON object containing published task variables. |
published_global (Optional) |
body |
object |
A JSON object containing globally published task variables. |
processed (Optional) |
body |
boolean |
Whether the task has been processed by the engine. |
created_at |
body |
string |
The date and time when the task was created. |
updated_at (Optional) |
body |
string |
The date and time when the task was last updated. |
started_at (Optional) |
body |
string |
The date and time when the task started executing. |
finished_at (Optional) |
body |
string |
The date and time when the task finished executing. |
Reruns or skips a task execution.
This operation can be used to rerun a failed task or to skip a task
that is in ERROR state. To rerun a task, set state to RUNNING
and reset to true. To skip a task, set state to SKIPPED.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
task_id |
path |
string |
The UUID of the task execution. |
state (Optional) |
body |
string |
The new state for the task. Valid values are |
reset (Optional) |
body |
boolean |
If |
env (Optional) |
body |
object |
A JSON object containing environment variables for the task. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the task execution. |
name |
body |
string |
The name of the task. |
type |
body |
string |
The type of the task (e.g., |
workflow_name |
body |
string |
The name of the workflow that the task belongs to. |
workflow_namespace (Optional) |
body |
string |
The namespace of the workflow that the task belongs to. |
workflow_id |
body |
string |
The UUID of the workflow that the task belongs to. |
workflow_execution_id |
body |
string |
The UUID of the workflow execution that the task belongs to. |
tags (Optional) |
body |
array |
A list of tags associated with the task. |
state |
body |
string |
The current state of the task. One of |
state_info (Optional) |
body |
string |
An optional state information string providing additional details. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the task. |
runtime_context (Optional) |
body |
object |
A JSON object containing runtime context information. |
result (Optional) |
body |
string |
The result of the task execution. |
published (Optional) |
body |
object |
A JSON object containing published task variables. |
published_global (Optional) |
body |
object |
A JSON object containing globally published task variables. |
processed (Optional) |
body |
boolean |
Whether the task has been processed by the engine. |
created_at |
body |
string |
The date and time when the task was created. |
updated_at (Optional) |
body |
string |
The date and time when the task was last updated. |
started_at (Optional) |
body |
string |
The date and time when the task started executing. |
finished_at (Optional) |
body |
string |
The date and time when the task finished executing. |
Lists all sub-executions of a task execution.
This returns the workflow executions that were started by a given task, which is useful for navigating the execution tree of nested workflows.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
task_id |
path |
string |
The UUID of the task execution. |
errors_only (Optional) |
query |
boolean |
If |
max_depth (Optional) |
query |
integer |
Limits the depth of recursion while obtaining the execution tree. A negative number means no limit. Default: -1 (unlimited). |
include_output (Optional) |
query |
boolean |
If |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
executions |
body |
array |
A list of execution objects. |
Executions (executions)¶
Manage workflow executions.
An execution represents one run of a workflow. When a workflow is executed, Mistral creates an execution object that tracks the state, input, output, and other runtime information about the running workflow.
Lists all workflow executions.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
marker (Optional) |
query |
string |
A resource UUID to use as a pagination marker. The list will contain resources that come after the marker. |
limit (Optional) |
query |
integer |
Maximum number of resources to return in a single result. |
sort_keys (Optional) |
query |
string |
Comma-separated list of sort keys. Each key specifies a column to sort by. |
sort_dirs (Optional) |
query |
string |
Comma-separated list of sort directions. Each direction corresponds to
a key in |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
workflow_name (Optional) |
query |
string |
Filter by the name of the workflow associated with the execution. |
workflow_id (Optional) |
query |
string |
Filter by the ID of the workflow associated with the execution. |
description (Optional) |
query |
string |
Filter by execution description. |
tags (Optional) |
query |
string |
Filter by execution tags. |
params (Optional) |
query |
string |
Filter by execution params. |
task_execution_id (Optional) |
query |
string |
Filter by parent task execution ID. |
root_execution_id (Optional) |
query |
string |
Filter by root execution ID. |
state (Optional) |
query |
string |
Filter by execution state. Valid values are |
state_info (Optional) |
query |
string |
Filter by execution state info. |
input (Optional) |
query |
string |
Filter by execution input. |
output (Optional) |
query |
string |
Filter by execution output. |
created_at (Optional) |
query |
string |
Filter by creation date. |
updated_at (Optional) |
query |
string |
Filter by last update date. |
include_output (Optional) |
query |
boolean |
If set to |
project_id (Optional) |
query |
string |
Filter by project ID. Admin only. |
all_projects (Optional) |
query |
boolean |
If set to |
nulls (Optional) |
query |
string |
Comma-separated list of field names that should be filtered as NULL. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
executions |
body |
array |
A list of execution objects. |
id |
body |
string |
The UUID of the execution. Immutable and auto-assigned, or can be
specified by the API client if using |
workflow_id (Optional) |
body |
string |
The UUID of the workflow associated with the execution. |
workflow_name (Optional) |
body |
string |
The name of the workflow associated with the execution. |
workflow_namespace (Optional) |
body |
string |
The namespace of the workflow associated with the execution. |
description (Optional) |
body |
string |
A description of the workflow execution. |
tags (Optional) |
body |
array |
A list of tags associated with the execution. |
params (Optional) |
body |
object |
A JSON object defining workflow type specific parameters. Supported keys include:
|
task_execution_id (Optional) |
body |
string |
Reference to the parent task execution UUID. |
root_execution_id (Optional) |
body |
string |
Reference to the root execution UUID. |
state |
body |
string |
The current state of the execution. One of |
state_info (Optional) |
body |
string |
An optional state information string providing additional details about the current state. |
input (Optional) |
body |
object |
A JSON object containing the workflow input values. |
output (Optional) |
body |
object |
A JSON object containing the workflow output values. |
created_at |
body |
string |
The date and time when the execution was created. |
updated_at (Optional) |
body |
string |
The date and time when the execution was last updated. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the execution. |
Creates and starts a new workflow execution.
Either workflow_id or workflow_name must be provided to identify
the workflow to execute. Alternatively, source_execution_id can be
used to replicate an existing execution.
Normal response codes: 201
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
workflow_id (Optional) |
body |
string |
The UUID of the workflow to execute. Either |
workflow_name (Optional) |
body |
string |
The name of the workflow to execute. Either |
workflow_namespace (Optional) |
body |
string |
The namespace of the workflow associated with the execution. |
description (Optional) |
body |
string |
A description of the workflow execution. |
input (Optional) |
body |
object |
A JSON object containing the workflow input values. |
params (Optional) |
body |
object |
A JSON object defining workflow type specific parameters. Supported keys include:
|
source_execution_id (Optional) |
body |
string |
Reference to a source workflow execution UUID. When specified, the API replicates the source execution, copying the workflow, input, params, and description. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the execution. Immutable and auto-assigned, or can be
specified by the API client if using |
workflow_id (Optional) |
body |
string |
The UUID of the workflow associated with the execution. |
workflow_name (Optional) |
body |
string |
The name of the workflow associated with the execution. |
workflow_namespace (Optional) |
body |
string |
The namespace of the workflow associated with the execution. |
description (Optional) |
body |
string |
A description of the workflow execution. |
tags (Optional) |
body |
array |
A list of tags associated with the execution. |
params (Optional) |
body |
object |
A JSON object defining workflow type specific parameters. Supported keys include:
|
task_execution_id (Optional) |
body |
string |
Reference to the parent task execution UUID. |
root_execution_id (Optional) |
body |
string |
Reference to the root execution UUID. |
state |
body |
string |
The current state of the execution. One of |
state_info (Optional) |
body |
string |
An optional state information string providing additional details about the current state. |
input (Optional) |
body |
object |
A JSON object containing the workflow input values. |
output (Optional) |
body |
object |
A JSON object containing the workflow output values. |
created_at |
body |
string |
The date and time when the execution was created. |
updated_at (Optional) |
body |
string |
The date and time when the execution was last updated. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the execution. |
Shows details for an execution.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
execution_id |
path |
string |
The UUID of the execution. |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the execution. Immutable and auto-assigned, or can be
specified by the API client if using |
workflow_id (Optional) |
body |
string |
The UUID of the workflow associated with the execution. |
workflow_name (Optional) |
body |
string |
The name of the workflow associated with the execution. |
workflow_namespace (Optional) |
body |
string |
The namespace of the workflow associated with the execution. |
description (Optional) |
body |
string |
A description of the workflow execution. |
tags (Optional) |
body |
array |
A list of tags associated with the execution. |
params (Optional) |
body |
object |
A JSON object defining workflow type specific parameters. Supported keys include:
|
task_execution_id (Optional) |
body |
string |
Reference to the parent task execution UUID. |
root_execution_id (Optional) |
body |
string |
Reference to the root execution UUID. |
source_execution_id (Optional) |
body |
string |
Reference to a source workflow execution UUID. When specified, the API replicates the source execution, copying the workflow, input, params, and description. |
state |
body |
string |
The current state of the execution. One of |
state_info (Optional) |
body |
string |
An optional state information string providing additional details about the current state. |
input (Optional) |
body |
object |
A JSON object containing the workflow input values. |
output (Optional) |
body |
object |
A JSON object containing the workflow output values. |
created_at |
body |
string |
The date and time when the execution was created. |
updated_at (Optional) |
body |
string |
The date and time when the execution was last updated. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the execution. |
published_global (Optional) |
body |
object |
A JSON object containing globally published variables. |
Updates an execution.
This can be used to pause, resume, or cancel an execution, update its description, or modify its environment variables.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
execution_id |
path |
string |
The UUID of the execution. |
state (Optional) |
body |
string |
The new state for the execution. Valid transitions: |
description (Optional) |
body |
string |
An updated description for the execution. |
params (Optional) |
body |
object |
A JSON object with updated parameters. Currently only |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the execution. Immutable and auto-assigned, or can be
specified by the API client if using |
workflow_id (Optional) |
body |
string |
The UUID of the workflow associated with the execution. |
workflow_name (Optional) |
body |
string |
The name of the workflow associated with the execution. |
workflow_namespace (Optional) |
body |
string |
The namespace of the workflow associated with the execution. |
description (Optional) |
body |
string |
A description of the workflow execution. |
tags (Optional) |
body |
array |
A list of tags associated with the execution. |
params (Optional) |
body |
object |
A JSON object defining workflow type specific parameters. Supported keys include:
|
task_execution_id (Optional) |
body |
string |
Reference to the parent task execution UUID. |
root_execution_id (Optional) |
body |
string |
Reference to the root execution UUID. |
state |
body |
string |
The current state of the execution. One of |
state_info (Optional) |
body |
string |
An optional state information string providing additional details about the current state. |
input (Optional) |
body |
object |
A JSON object containing the workflow input values. |
output (Optional) |
body |
object |
A JSON object containing the workflow output values. |
created_at |
body |
string |
The date and time when the execution was created. |
updated_at (Optional) |
body |
string |
The date and time when the execution was last updated. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the execution. |
Deletes an execution.
Normal response codes: 204
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
execution_id |
path |
string |
The UUID of the execution. |
force (Optional) |
query |
boolean |
If set to |
Response¶
There is no body content for the response of a successful DELETE action.
Lists all sub-executions of a workflow execution.
Sub-executions provide a way to navigate the execution tree of nested workflows. This is useful for debugging and monitoring complex workflows that invoke sub-workflows.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
execution_id |
path |
string |
The UUID of the execution. |
errors_only (Optional) |
query |
boolean |
If |
max_depth (Optional) |
query |
integer |
Limits the depth of recursion while obtaining the execution tree. A negative number means no limit. Default: -1 (unlimited). |
include_output (Optional) |
query |
boolean |
If |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
executions |
body |
array |
A list of execution objects. |
Generates a report for a workflow execution.
An execution report provides a detailed tree view of a workflow execution including all nested task and action executions, along with statistics such as counts of running, successful, errored, idle, and paused tasks. The report can optionally include time estimates based on previous executions of the same workflow.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
execution_id |
path |
string |
The UUID of the execution. |
errors_only (Optional) |
query |
boolean |
If |
max_depth (Optional) |
query |
integer |
Limits the depth of recursion while obtaining the execution tree. A negative number means no limit. Default: -1 (unlimited). |
statistics_only (Optional) |
query |
boolean |
If |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
statistics |
body |
object |
Execution statistics including counts of running, successful, errored, idle, and paused tasks, plus an estimated remaining time in seconds. |
root_workflow_execution (Optional) |
body |
object |
The root workflow execution entry containing the full execution tree
with nested task and action executions. Not included when
|
Actions (actions)¶
Manage action definitions.
An action defines a particular step that can be performed as part of a workflow task. Mistral comes with a set of built-in system actions (e.g., HTTP requests, email sending) and also allows users to define custom actions using the Mistral v2 DSL.
Note
Action name and description are immutable. They are inferred from
the action definition when the action is created.
Lists all actions.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
marker (Optional) |
query |
string |
A resource UUID to use as a pagination marker. The list will contain resources that come after the marker. |
limit (Optional) |
query |
integer |
Maximum number of resources to return in a single result. |
sort_keys (Optional) |
query |
string |
Comma-separated list of sort keys. Each key specifies a column to sort by. |
sort_dirs (Optional) |
query |
string |
Comma-separated list of sort directions. Each direction corresponds to
a key in |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
name (Optional) |
query |
string |
Filter by action name. |
scope (Optional) |
query |
string |
Filter by action scope. |
tags (Optional) |
query |
string |
Filter by action tags. |
created_at (Optional) |
query |
string |
Filter by creation date. |
updated_at (Optional) |
query |
string |
Filter by last update date. |
description (Optional) |
query |
string |
Filter by action description. |
definition (Optional) |
query |
string |
Filter by action definition. |
is_system (Optional) |
query |
boolean |
Filter by whether the action is a system action. |
input (Optional) |
query |
string |
Filter by action input. |
namespace (Optional) |
query |
string |
The namespace of the resource. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
actions |
body |
array |
A list of action objects. |
id |
body |
string |
The UUID of the action. |
name |
body |
string |
The name of the action. Immutable; inferred from the action definition on creation. |
is_system (Optional) |
body |
boolean |
Whether the action is a built-in system action. |
input (Optional) |
body |
string |
The input parameter definitions for the action. |
description (Optional) |
body |
string |
A description of the action. Inferred from the action definition on creation. |
tags (Optional) |
body |
array |
A list of tags associated with the action. |
definition |
body |
string |
The action definition written in Mistral v2 DSL. |
scope (Optional) |
body |
string |
The scope of the action. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the action. |
created_at |
body |
string |
The date and time when the action was created. |
updated_at (Optional) |
body |
string |
The date and time when the action was last updated. |
namespace (Optional) |
body |
string |
The namespace of the action. |
Creates one or more actions from a YAML definition.
The request body should contain a YAML action definition conforming to the Mistral v2 DSL. Multiple actions can be defined in a single YAML definition.
Normal response codes: 201
Error response codes: badRequest(400), unauthorized(401), forbidden(403), conflict(409)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
namespace (Optional) |
query |
string |
The namespace of the resource. |
scope (Optional) |
query |
string |
The scope of the resource. Valid values are |
The request body is a YAML action definition in text/plain format.
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
actions |
body |
array |
A list of action objects. |
id |
body |
string |
The UUID of the action. |
name |
body |
string |
The name of the action. Immutable; inferred from the action definition on creation. |
is_system (Optional) |
body |
boolean |
Whether the action is a built-in system action. |
input (Optional) |
body |
string |
The input parameter definitions for the action. |
description (Optional) |
body |
string |
A description of the action. Inferred from the action definition on creation. |
tags (Optional) |
body |
array |
A list of tags associated with the action. |
definition |
body |
string |
The action definition written in Mistral v2 DSL. |
scope (Optional) |
body |
string |
The scope of the action. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the action. |
created_at |
body |
string |
The date and time when the action was created. |
updated_at (Optional) |
body |
string |
The date and time when the action was last updated. |
namespace (Optional) |
body |
string |
The namespace of the action. |
Shows details for an action.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
action_identifier |
path |
string |
The name or UUID of the action. |
namespace (Optional) |
query |
string |
The namespace of the resource. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the action. |
name |
body |
string |
The name of the action. Immutable; inferred from the action definition on creation. |
is_system (Optional) |
body |
boolean |
Whether the action is a built-in system action. |
input (Optional) |
body |
string |
The input parameter definitions for the action. |
description (Optional) |
body |
string |
A description of the action. Inferred from the action definition on creation. |
tags (Optional) |
body |
array |
A list of tags associated with the action. |
definition |
body |
string |
The action definition written in Mistral v2 DSL. |
scope (Optional) |
body |
string |
The scope of the action. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the action. |
created_at |
body |
string |
The date and time when the action was created. |
updated_at (Optional) |
body |
string |
The date and time when the action was last updated. |
namespace (Optional) |
body |
string |
The namespace of the action. |
Updates one or more actions.
The request body should contain a YAML action definition conforming to the Mistral v2 DSL.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
action_identifier |
path |
string |
The name or UUID of the action. |
namespace (Optional) |
query |
string |
The namespace of the resource. |
scope (Optional) |
query |
string |
The scope of the resource. Valid values are |
The request body is a YAML action definition in text/plain format.
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
actions |
body |
array |
A list of action objects. |
id |
body |
string |
The UUID of the action. |
name |
body |
string |
The name of the action. Immutable; inferred from the action definition on creation. |
is_system (Optional) |
body |
boolean |
Whether the action is a built-in system action. |
input (Optional) |
body |
string |
The input parameter definitions for the action. |
description (Optional) |
body |
string |
A description of the action. Inferred from the action definition on creation. |
tags (Optional) |
body |
array |
A list of tags associated with the action. |
definition |
body |
string |
The action definition written in Mistral v2 DSL. |
scope (Optional) |
body |
string |
The scope of the action. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the action. |
created_at |
body |
string |
The date and time when the action was created. |
updated_at (Optional) |
body |
string |
The date and time when the action was last updated. |
namespace (Optional) |
body |
string |
The namespace of the action. |
Deletes an action.
Normal response codes: 204
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
action_identifier |
path |
string |
The name or UUID of the action. |
namespace (Optional) |
query |
string |
The namespace of the resource. |
Response¶
There is no body content for the response of a successful DELETE action.
Validates an action definition without creating or updating any resources. This is useful for checking definitions for syntax errors before deploying them.
The request body should contain the action definition in Mistral v2 DSL format as plain text.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403)
Request¶
The request body should be the action definition with content type
text/plain.
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
valid |
body |
boolean |
Whether the definition is valid. |
error (Optional) |
body |
string |
The error message if validation failed. Only present when |
Action Executions (action_executions)¶
Manage action executions.
An action execution represents a single invocation of an action. Action executions are typically created automatically as part of a workflow task, but can also be created directly via the API to run an action outside of a workflow context.
Lists all action executions.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
marker (Optional) |
query |
string |
A resource UUID to use as a pagination marker. The list will contain resources that come after the marker. |
limit (Optional) |
query |
integer |
Maximum number of resources to return in a single result. |
sort_keys (Optional) |
query |
string |
Comma-separated list of sort keys. Each key specifies a column to sort by. |
sort_dirs (Optional) |
query |
string |
Comma-separated list of sort directions. Each direction corresponds to
a key in |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
name (Optional) |
query |
string |
Filter by action execution name. |
workflow_name (Optional) |
query |
string |
Filter by the name of the workflow associated with the action execution. |
task_name (Optional) |
query |
string |
Filter by task name. |
task_execution_id (Optional) |
query |
string |
Filter by parent task execution ID. |
state (Optional) |
query |
string |
Filter by action execution state. Valid values are |
state_info (Optional) |
query |
string |
Filter by action execution state info. |
accepted (Optional) |
query |
boolean |
Filter by whether the action execution has been accepted. |
description (Optional) |
query |
string |
Filter by action execution description. |
tags (Optional) |
query |
string |
Filter by action execution tags. |
created_at (Optional) |
query |
string |
Filter by creation date. |
updated_at (Optional) |
query |
string |
Filter by last update date. |
include_output (Optional) |
query |
boolean |
If set to |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
action_executions |
body |
array |
A list of action execution objects. |
id |
body |
string |
The UUID of the action execution. |
name |
body |
string |
The name of the action. |
workflow_name (Optional) |
body |
string |
The name of the workflow associated with the action execution. |
workflow_namespace (Optional) |
body |
string |
The namespace of the workflow associated with the action execution. |
task_name (Optional) |
body |
string |
The name of the parent task. |
task_execution_id (Optional) |
body |
string |
The UUID of the parent task execution. |
state |
body |
string |
The current state of the action execution. One of |
state_info (Optional) |
body |
string |
An optional state information string providing additional details about the current state. |
tags (Optional) |
body |
array |
A list of tags associated with the action execution. |
description (Optional) |
body |
string |
A description of the action execution. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the action execution. |
accepted (Optional) |
body |
boolean |
Whether the action execution has been accepted by an action handler. |
input (Optional) |
body |
object |
A JSON object containing the action input values. |
output (Optional) |
body |
object |
A JSON object containing the action output values. |
created_at |
body |
string |
The date and time when the action execution was created. |
updated_at (Optional) |
body |
string |
The date and time when the action execution was last updated. |
Creates an action execution.
Runs an action directly outside of a workflow context. At minimum, the
name field must be provided.
Normal response codes: 201
Error response codes: badRequest(400), unauthorized(401), forbidden(403)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
name |
body |
string |
The name of the action to execute. |
description (Optional) |
body |
string |
An optional description for the new action execution. |
input (Optional) |
body |
object |
A JSON object containing input values for the action. |
params (Optional) |
body |
object |
A JSON object containing parameters for the action execution. |
workflow_namespace (Optional) |
body |
string |
The namespace of the workflow associated with the action execution. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the action execution. |
name |
body |
string |
The name of the action. |
workflow_name (Optional) |
body |
string |
The name of the workflow associated with the action execution. |
workflow_namespace (Optional) |
body |
string |
The namespace of the workflow associated with the action execution. |
task_name (Optional) |
body |
string |
The name of the parent task. |
task_execution_id (Optional) |
body |
string |
The UUID of the parent task execution. |
state |
body |
string |
The current state of the action execution. One of |
state_info (Optional) |
body |
string |
An optional state information string providing additional details about the current state. |
tags (Optional) |
body |
array |
A list of tags associated with the action execution. |
description (Optional) |
body |
string |
A description of the action execution. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the action execution. |
accepted (Optional) |
body |
boolean |
Whether the action execution has been accepted by an action handler. |
input (Optional) |
body |
object |
A JSON object containing the action input values. |
output (Optional) |
body |
object |
A JSON object containing the action output values. |
created_at |
body |
string |
The date and time when the action execution was created. |
updated_at (Optional) |
body |
string |
The date and time when the action execution was last updated. |
Shows details for an action execution.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
action_execution_id |
path |
string |
The UUID of the action execution. |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the action execution. |
name |
body |
string |
The name of the action. |
workflow_name (Optional) |
body |
string |
The name of the workflow associated with the action execution. |
workflow_namespace (Optional) |
body |
string |
The namespace of the workflow associated with the action execution. |
task_name (Optional) |
body |
string |
The name of the parent task. |
task_execution_id (Optional) |
body |
string |
The UUID of the parent task execution. |
state |
body |
string |
The current state of the action execution. One of |
state_info (Optional) |
body |
string |
An optional state information string providing additional details about the current state. |
tags (Optional) |
body |
array |
A list of tags associated with the action execution. |
description (Optional) |
body |
string |
A description of the action execution. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the action execution. |
accepted (Optional) |
body |
boolean |
Whether the action execution has been accepted by an action handler. |
input (Optional) |
body |
object |
A JSON object containing the action input values. |
output (Optional) |
body |
object |
A JSON object containing the action output values. |
created_at |
body |
string |
The date and time when the action execution was created. |
updated_at (Optional) |
body |
string |
The date and time when the action execution was last updated. |
Updates an action execution.
Used to report the result of an action back to Mistral. The state
field must be one of SUCCESS, ERROR, CANCELLED, PAUSED,
or RUNNING.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
action_execution_id |
path |
string |
The UUID of the action execution. |
state |
body |
string |
The new state for the action execution. Valid values are |
output (Optional) |
body |
object |
A JSON object containing the action result. Required when setting
state to |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the action execution. |
name |
body |
string |
The name of the action. |
workflow_name (Optional) |
body |
string |
The name of the workflow associated with the action execution. |
workflow_namespace (Optional) |
body |
string |
The namespace of the workflow associated with the action execution. |
task_name (Optional) |
body |
string |
The name of the parent task. |
task_execution_id (Optional) |
body |
string |
The UUID of the parent task execution. |
state |
body |
string |
The current state of the action execution. One of |
state_info (Optional) |
body |
string |
An optional state information string providing additional details about the current state. |
tags (Optional) |
body |
array |
A list of tags associated with the action execution. |
description (Optional) |
body |
string |
A description of the action execution. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the action execution. |
accepted (Optional) |
body |
boolean |
Whether the action execution has been accepted by an action handler. |
input (Optional) |
body |
object |
A JSON object containing the action input values. |
output (Optional) |
body |
object |
A JSON object containing the action output values. |
created_at |
body |
string |
The date and time when the action execution was created. |
updated_at (Optional) |
body |
string |
The date and time when the action execution was last updated. |
Deletes an action execution.
Normal response codes: 204
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
action_execution_id |
path |
string |
The UUID of the action execution. |
Response¶
There is no body content for the response of a successful DELETE action.
Cron Triggers (cron_triggers)¶
Manage cron triggers.
A cron trigger is a scheduling mechanism that automatically starts a workflow execution based on a cron expression pattern. Cron triggers can be configured with a maximum number of remaining executions, after which the trigger is automatically removed.
Lists all cron triggers.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
marker (Optional) |
query |
string |
A resource UUID to use as a pagination marker. The list will contain resources that come after the marker. |
limit (Optional) |
query |
integer |
Maximum number of resources to return in a single result. |
sort_keys (Optional) |
query |
string |
Comma-separated list of sort keys. Each key specifies a column to sort by. |
sort_dirs (Optional) |
query |
string |
Comma-separated list of sort directions. Each direction corresponds to
a key in |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
name (Optional) |
query |
string |
Filter by cron trigger name. |
workflow_name (Optional) |
query |
string |
Filter by the name of the workflow associated with the trigger. |
workflow_id (Optional) |
query |
string |
Filter by the ID of the workflow associated with the trigger. |
workflow_input (Optional) |
query |
string |
Filter by the workflow input. |
workflow_params (Optional) |
query |
string |
Filter by the workflow parameters. |
scope (Optional) |
query |
string |
Filter by trigger scope. |
pattern (Optional) |
query |
string |
Filter by cron pattern. |
remaining_executions (Optional) |
query |
integer |
Filter by remaining number of executions. |
first_execution_time (Optional) |
query |
string |
Filter by first execution time. |
next_execution_time (Optional) |
query |
string |
Filter by next scheduled execution time. |
created_at (Optional) |
query |
string |
Filter by creation date. |
updated_at (Optional) |
query |
string |
Filter by last update date. |
project_id (Optional) |
query |
string |
Filter by project ID. Admin only. |
all_projects (Optional) |
query |
boolean |
If set to |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
cron_triggers |
body |
array |
A list of cron trigger objects. |
id |
body |
string |
The UUID of the cron trigger. |
name |
body |
string |
The name of the cron trigger. |
workflow_name (Optional) |
body |
string |
The name of the workflow to execute on trigger. |
workflow_id (Optional) |
body |
string |
The UUID of the workflow to execute on trigger. |
workflow_input (Optional) |
body |
object |
A JSON object containing input values for the triggered workflow executions. |
workflow_params (Optional) |
body |
object |
A JSON object containing parameters for the triggered workflow executions. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the cron trigger. |
scope (Optional) |
body |
string |
The scope of the cron trigger. |
pattern (Optional) |
body |
string |
The cron expression pattern (e.g., |
remaining_executions (Optional) |
body |
integer |
The number of remaining executions for the trigger. Must be at least 1. Once this reaches 0, the trigger is automatically removed. |
first_execution_time (Optional) |
body |
string |
The date and time of the first execution. If not specified, the first execution is determined by the cron pattern. |
next_execution_time (Optional) |
body |
string |
The date and time of the next scheduled execution. |
created_at |
body |
string |
The date and time when the cron trigger was created. |
updated_at (Optional) |
body |
string |
The date and time when the cron trigger was last updated. |
Creates a cron trigger.
Either workflow_name or workflow_id must be provided to identify
the workflow to trigger. At least one of pattern or
first_execution_time must be specified.
Normal response codes: 201
Error response codes: badRequest(400), unauthorized(401), forbidden(403), conflict(409)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
name |
body |
string |
The name for the new cron trigger. |
workflow_name (Optional) |
body |
string |
The name of the workflow to trigger. Either |
workflow_id (Optional) |
body |
string |
The UUID of the workflow to trigger. Either |
workflow_input (Optional) |
body |
object |
A JSON object containing input values for the triggered workflow executions. |
workflow_params (Optional) |
body |
object |
A JSON object containing parameters for the triggered workflow executions. |
pattern (Optional) |
body |
string |
The cron expression pattern (e.g., |
first_execution_time (Optional) |
body |
string |
The date and time of the first execution. If not specified, the first execution is determined by the cron pattern. |
remaining_executions (Optional) |
body |
integer |
The number of remaining executions for the trigger. Must be at least 1. Once this reaches 0, the trigger is automatically removed. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the cron trigger. |
name |
body |
string |
The name of the cron trigger. |
workflow_name (Optional) |
body |
string |
The name of the workflow to execute on trigger. |
workflow_id (Optional) |
body |
string |
The UUID of the workflow to execute on trigger. |
workflow_input (Optional) |
body |
object |
A JSON object containing input values for the triggered workflow executions. |
workflow_params (Optional) |
body |
object |
A JSON object containing parameters for the triggered workflow executions. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the cron trigger. |
scope (Optional) |
body |
string |
The scope of the cron trigger. |
pattern (Optional) |
body |
string |
The cron expression pattern (e.g., |
remaining_executions (Optional) |
body |
integer |
The number of remaining executions for the trigger. Must be at least 1. Once this reaches 0, the trigger is automatically removed. |
first_execution_time (Optional) |
body |
string |
The date and time of the first execution. If not specified, the first execution is determined by the cron pattern. |
next_execution_time (Optional) |
body |
string |
The date and time of the next scheduled execution. |
created_at |
body |
string |
The date and time when the cron trigger was created. |
updated_at (Optional) |
body |
string |
The date and time when the cron trigger was last updated. |
Shows details for a cron trigger.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
cron_trigger_identifier |
path |
string |
The name or UUID of the cron trigger. |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the cron trigger. |
name |
body |
string |
The name of the cron trigger. |
workflow_name (Optional) |
body |
string |
The name of the workflow to execute on trigger. |
workflow_id (Optional) |
body |
string |
The UUID of the workflow to execute on trigger. |
workflow_input (Optional) |
body |
object |
A JSON object containing input values for the triggered workflow executions. |
workflow_params (Optional) |
body |
object |
A JSON object containing parameters for the triggered workflow executions. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the cron trigger. |
scope (Optional) |
body |
string |
The scope of the cron trigger. |
pattern (Optional) |
body |
string |
The cron expression pattern (e.g., |
remaining_executions (Optional) |
body |
integer |
The number of remaining executions for the trigger. Must be at least 1. Once this reaches 0, the trigger is automatically removed. |
first_execution_time (Optional) |
body |
string |
The date and time of the first execution. If not specified, the first execution is determined by the cron pattern. |
next_execution_time (Optional) |
body |
string |
The date and time of the next scheduled execution. |
created_at |
body |
string |
The date and time when the cron trigger was created. |
updated_at (Optional) |
body |
string |
The date and time when the cron trigger was last updated. |
Deletes a cron trigger.
Normal response codes: 204
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
cron_trigger_identifier |
path |
string |
The name or UUID of the cron trigger. |
Response¶
There is no body content for the response of a successful DELETE action.
Event Triggers (event_triggers)¶
Manage event triggers.
An event trigger is a mechanism that starts a workflow execution in response to an external event received via a messaging system. Event triggers listen on a specific exchange, topic, and event type.
Lists all event triggers.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
marker (Optional) |
query |
string |
A resource UUID to use as a pagination marker. The list will contain resources that come after the marker. |
limit (Optional) |
query |
integer |
Maximum number of resources to return in a single result. |
sort_keys (Optional) |
query |
string |
Comma-separated list of sort keys. Each key specifies a column to sort by. |
sort_dirs (Optional) |
query |
string |
Comma-separated list of sort directions. Each direction corresponds to
a key in |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
name (Optional) |
query |
string |
Filter by event trigger name. |
exchange (Optional) |
query |
string |
Filter by message exchange. |
topic (Optional) |
query |
string |
Filter by message topic. |
event (Optional) |
query |
string |
Filter by event type. |
workflow_id (Optional) |
query |
string |
Filter by the ID of the workflow associated with the trigger. |
scope (Optional) |
query |
string |
Filter by event trigger scope. |
project_id (Optional) |
query |
string |
Filter by project ID. Admin only. |
created_at (Optional) |
query |
string |
Filter by creation date. |
updated_at (Optional) |
query |
string |
Filter by last update date. |
all_projects (Optional) |
query |
boolean |
If set to |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
event_triggers |
body |
array |
A list of event trigger objects. |
id |
body |
string |
The UUID of the event trigger. |
name |
body |
string |
The name of the event trigger. |
workflow_id |
body |
string |
The UUID of the workflow to execute when the event is received. |
workflow_input (Optional) |
body |
object |
A JSON object containing input values for the triggered workflow executions. |
workflow_params (Optional) |
body |
object |
A JSON object containing parameters for the triggered workflow executions. |
exchange |
body |
string |
The messaging exchange to listen on (e.g., |
topic |
body |
string |
The messaging topic to listen on (e.g., |
event |
body |
string |
The event type to listen for (e.g.,
|
scope (Optional) |
body |
string |
The scope of the event trigger. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the event trigger. |
created_at |
body |
string |
The date and time when the event trigger was created. |
updated_at (Optional) |
body |
string |
The date and time when the event trigger was last updated. |
Creates an event trigger.
The name, workflow_id, exchange, topic, and event
fields are required.
Normal response codes: 201
Error response codes: badRequest(400), unauthorized(401), forbidden(403), conflict(409)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
name |
body |
string |
The name for the new event trigger. |
workflow_id |
body |
string |
The UUID of the workflow to trigger on event. |
workflow_input (Optional) |
body |
object |
A JSON object containing input values for the triggered workflow executions. |
workflow_params (Optional) |
body |
object |
A JSON object containing parameters for the triggered workflow executions. |
exchange |
body |
string |
The messaging exchange to listen on. |
topic |
body |
string |
The messaging topic to listen on. |
event |
body |
string |
The event type to listen for. |
scope (Optional) |
query |
string |
The scope of the resource. Valid values are |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the event trigger. |
name |
body |
string |
The name of the event trigger. |
workflow_id |
body |
string |
The UUID of the workflow to execute when the event is received. |
workflow_input (Optional) |
body |
object |
A JSON object containing input values for the triggered workflow executions. |
workflow_params (Optional) |
body |
object |
A JSON object containing parameters for the triggered workflow executions. |
exchange |
body |
string |
The messaging exchange to listen on (e.g., |
topic |
body |
string |
The messaging topic to listen on (e.g., |
event |
body |
string |
The event type to listen for (e.g.,
|
scope (Optional) |
body |
string |
The scope of the event trigger. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the event trigger. |
created_at |
body |
string |
The date and time when the event trigger was created. |
updated_at (Optional) |
body |
string |
The date and time when the event trigger was last updated. |
Shows details for an event trigger.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
event_trigger_id |
path |
string |
The UUID of the event trigger. |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the event trigger. |
name |
body |
string |
The name of the event trigger. |
workflow_id |
body |
string |
The UUID of the workflow to execute when the event is received. |
workflow_input (Optional) |
body |
object |
A JSON object containing input values for the triggered workflow executions. |
workflow_params (Optional) |
body |
object |
A JSON object containing parameters for the triggered workflow executions. |
exchange |
body |
string |
The messaging exchange to listen on (e.g., |
topic |
body |
string |
The messaging topic to listen on (e.g., |
event |
body |
string |
The event type to listen for (e.g.,
|
scope (Optional) |
body |
string |
The scope of the event trigger. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the event trigger. |
created_at |
body |
string |
The date and time when the event trigger was created. |
updated_at (Optional) |
body |
string |
The date and time when the event trigger was last updated. |
Updates an event trigger.
The exchange, topic, and event fields cannot be updated.
To change them, delete the event trigger and create a new one.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
event_trigger_id |
path |
string |
The UUID of the event trigger. |
name |
body |
string |
The name of the event trigger. |
workflow_id |
body |
string |
The UUID of the workflow to execute when the event is received. |
workflow_input (Optional) |
body |
object |
A JSON object containing input values for the triggered workflow executions. |
workflow_params (Optional) |
body |
object |
A JSON object containing parameters for the triggered workflow executions. |
scope (Optional) |
query |
string |
The scope of the resource. Valid values are |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the event trigger. |
name |
body |
string |
The name of the event trigger. |
workflow_id |
body |
string |
The UUID of the workflow to execute when the event is received. |
workflow_input (Optional) |
body |
object |
A JSON object containing input values for the triggered workflow executions. |
workflow_params (Optional) |
body |
object |
A JSON object containing parameters for the triggered workflow executions. |
exchange |
body |
string |
The messaging exchange to listen on (e.g., |
topic |
body |
string |
The messaging topic to listen on (e.g., |
event |
body |
string |
The event type to listen for (e.g.,
|
scope (Optional) |
body |
string |
The scope of the event trigger. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the event trigger. |
created_at |
body |
string |
The date and time when the event trigger was created. |
updated_at (Optional) |
body |
string |
The date and time when the event trigger was last updated. |
Deletes an event trigger.
Normal response codes: 204
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
event_trigger_id |
path |
string |
The UUID of the event trigger. |
Response¶
There is no body content for the response of a successful DELETE action.
Environments (environments)¶
Manage environments.
An environment contains a set of variables that can be used in workflows.
Environments are useful for storing configuration values such as credentials,
endpoints, or any other data that workflows may need at runtime. Environment
variables can be accessed in workflows using the env() YAQL function.
Lists all environments.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
marker (Optional) |
query |
string |
A resource UUID to use as a pagination marker. The list will contain resources that come after the marker. |
limit (Optional) |
query |
integer |
Maximum number of resources to return in a single result. |
sort_keys (Optional) |
query |
string |
Comma-separated list of sort keys. Each key specifies a column to sort by. |
sort_dirs (Optional) |
query |
string |
Comma-separated list of sort directions. Each direction corresponds to
a key in |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
name (Optional) |
query |
string |
Filter by environment name. |
description (Optional) |
query |
string |
Filter by environment description. |
scope (Optional) |
query |
string |
Filter by environment scope. |
created_at (Optional) |
query |
string |
Filter by creation date. |
updated_at (Optional) |
query |
string |
Filter by last update date. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
environments |
body |
array |
A list of environment objects. |
id |
body |
string |
The UUID of the environment. |
name |
body |
string |
The name of the environment. |
description (Optional) |
body |
string |
A description of the environment. |
variables |
body |
object |
A JSON object containing the environment variables. Can include any key-value pairs needed by workflows at runtime. |
scope (Optional) |
body |
string |
The scope of the environment. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the environment. |
created_at |
body |
string |
The date and time when the environment was created. |
updated_at (Optional) |
body |
string |
The date and time when the environment was last updated. |
Creates an environment.
The name, description, and variables fields are the only allowed
fields in the request body.
Normal response codes: 201
Error response codes: badRequest(400), unauthorized(401), forbidden(403), conflict(409)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
name |
body |
string |
The name for the new environment. |
description (Optional) |
body |
string |
A description for the new environment. |
variables |
body |
object |
A JSON object containing the environment variables. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the environment. |
name |
body |
string |
The name of the environment. |
description (Optional) |
body |
string |
A description of the environment. |
variables |
body |
object |
A JSON object containing the environment variables. Can include any key-value pairs needed by workflows at runtime. |
scope (Optional) |
body |
string |
The scope of the environment. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the environment. |
created_at |
body |
string |
The date and time when the environment was created. |
updated_at (Optional) |
body |
string |
The date and time when the environment was last updated. |
Shows details for an environment.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
environment_name |
path |
string |
The name of the environment. |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the environment. |
name |
body |
string |
The name of the environment. |
description (Optional) |
body |
string |
A description of the environment. |
variables |
body |
object |
A JSON object containing the environment variables. Can include any key-value pairs needed by workflows at runtime. |
scope (Optional) |
body |
string |
The scope of the environment. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the environment. |
created_at |
body |
string |
The date and time when the environment was created. |
updated_at (Optional) |
body |
string |
The date and time when the environment was last updated. |
Updates an environment.
The name field must be provided to identify the environment. Only
description, variables, and scope can be updated.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
name |
body |
string |
The name of the environment. |
description (Optional) |
body |
string |
A description of the environment. |
variables |
body |
object |
A JSON object containing the environment variables. Can include any key-value pairs needed by workflows at runtime. |
scope (Optional) |
query |
string |
The scope of the resource. Valid values are |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the environment. |
name |
body |
string |
The name of the environment. |
description (Optional) |
body |
string |
A description of the environment. |
variables |
body |
object |
A JSON object containing the environment variables. Can include any key-value pairs needed by workflows at runtime. |
scope (Optional) |
body |
string |
The scope of the environment. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the environment. |
created_at |
body |
string |
The date and time when the environment was created. |
updated_at (Optional) |
body |
string |
The date and time when the environment was last updated. |
Deletes an environment.
Normal response codes: 204
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
environment_name |
path |
string |
The name of the environment. |
Response¶
There is no body content for the response of a successful DELETE action.
Code Sources (code_sources)¶
Manage code sources.
A code source is a Python module uploaded to Mistral that contains action classes. Code sources are used in conjunction with dynamic actions to define custom actions without needing to install Python packages on the Mistral server. The content of a code source is the raw Python source code.
Lists all code sources.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
marker (Optional) |
query |
string |
A resource UUID to use as a pagination marker. The list will contain resources that come after the marker. |
limit (Optional) |
query |
integer |
Maximum number of resources to return in a single result. |
sort_keys (Optional) |
query |
string |
Comma-separated list of sort keys. Each key specifies a column to sort by. |
sort_dirs (Optional) |
query |
string |
Comma-separated list of sort directions. Each direction corresponds to
a key in |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
name (Optional) |
query |
string |
Filter by code source name. |
scope (Optional) |
query |
string |
Filter by code source scope. |
tags (Optional) |
query |
string |
Filter by code source tags. |
project_id (Optional) |
query |
string |
Filter by project ID. Admin only. |
created_at (Optional) |
query |
string |
Filter by creation date. |
updated_at (Optional) |
query |
string |
Filter by last update date. |
all_projects (Optional) |
query |
boolean |
If set to |
namespace (Optional) |
query |
string |
The namespace of the resource. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
code_sources |
body |
array |
A list of code source objects. |
id |
body |
string |
The UUID of the code source. |
name |
body |
string |
The name of the code source (module name). |
namespace (Optional) |
body |
string |
The namespace of the code source. |
content |
body |
string |
The Python source code content of the code source. |
version |
body |
integer |
The version number of the code source. Incremented on each update. |
scope (Optional) |
body |
string |
The scope of the code source. |
actions (Optional) |
body |
array |
A list of action names defined in this code source. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the code source. |
created_at |
body |
string |
The date and time when the code source was created. |
updated_at (Optional) |
body |
string |
The date and time when the code source was last updated. |
Creates a code source.
The request body should contain the raw Python source code as plain text.
The name parameter identifies the module name.
Normal response codes: 201
Error response codes: badRequest(400), unauthorized(401), forbidden(403), conflict(409)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
name |
query |
string |
The name for the new code source (module name). |
scope (Optional) |
query |
string |
The scope of the resource. Valid values are |
namespace (Optional) |
query |
string |
The namespace of the resource. |
The request body should be the raw Python source code with content type
text/plain.
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the code source. |
name |
body |
string |
The name of the code source (module name). |
namespace (Optional) |
body |
string |
The namespace of the code source. |
content |
body |
string |
The Python source code content of the code source. |
version |
body |
integer |
The version number of the code source. Incremented on each update. |
scope (Optional) |
body |
string |
The scope of the code source. |
actions (Optional) |
body |
array |
A list of action names defined in this code source. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the code source. |
created_at |
body |
string |
The date and time when the code source was created. |
updated_at (Optional) |
body |
string |
The date and time when the code source was last updated. |
Shows details for a code source.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
code_source_identifier |
path |
string |
The name or UUID of the code source. |
namespace (Optional) |
query |
string |
The namespace of the resource. |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the code source. |
name |
body |
string |
The name of the code source (module name). |
namespace (Optional) |
body |
string |
The namespace of the code source. |
content |
body |
string |
The Python source code content of the code source. |
version |
body |
integer |
The version number of the code source. Incremented on each update. |
scope (Optional) |
body |
string |
The scope of the code source. |
actions (Optional) |
body |
array |
A list of action names defined in this code source. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the code source. |
created_at |
body |
string |
The date and time when the code source was created. |
updated_at (Optional) |
body |
string |
The date and time when the code source was last updated. |
Updates a code source.
The request body should contain the updated raw Python source code as plain text.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
identifier |
query |
string |
The name or ID of the code source to update. |
scope (Optional) |
query |
string |
The scope of the resource. Valid values are |
namespace (Optional) |
query |
string |
The namespace of the resource. |
The request body should be the raw Python source code with content type
text/plain.
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the code source. |
name |
body |
string |
The name of the code source (module name). |
namespace (Optional) |
body |
string |
The namespace of the code source. |
content |
body |
string |
The Python source code content of the code source. |
version |
body |
integer |
The version number of the code source. Incremented on each update. |
scope (Optional) |
body |
string |
The scope of the code source. |
actions (Optional) |
body |
array |
A list of action names defined in this code source. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the code source. |
created_at |
body |
string |
The date and time when the code source was created. |
updated_at (Optional) |
body |
string |
The date and time when the code source was last updated. |
Deletes a code source.
Normal response codes: 204
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
code_source_identifier |
path |
string |
The name or UUID of the code source. |
namespace (Optional) |
query |
string |
The namespace of the resource. |
Response¶
There is no body content for the response of a successful DELETE action.
Dynamic Actions (dynamic_actions)¶
Manage dynamic actions.
A dynamic action is an action defined by referencing a Python class within a code source. Unlike ad-hoc actions (which wrap existing actions with predefined input), dynamic actions point to a class in an uploaded code source module. This allows users to create fully custom actions without installing Python packages on the Mistral server.
Lists all dynamic actions.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
marker (Optional) |
query |
string |
A resource UUID to use as a pagination marker. The list will contain resources that come after the marker. |
limit (Optional) |
query |
integer |
Maximum number of resources to return in a single result. |
sort_keys (Optional) |
query |
string |
Comma-separated list of sort keys. Each key specifies a column to sort by. |
sort_dirs (Optional) |
query |
string |
Comma-separated list of sort directions. Each direction corresponds to
a key in |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
name (Optional) |
query |
string |
Filter by dynamic action name. |
scope (Optional) |
query |
string |
Filter by dynamic action scope. |
tags (Optional) |
query |
string |
Filter by dynamic action tags. |
project_id (Optional) |
query |
string |
Filter by project ID. Admin only. |
created_at (Optional) |
query |
string |
Filter by creation date. |
updated_at (Optional) |
query |
string |
Filter by last update date. |
all_projects (Optional) |
query |
boolean |
If set to |
namespace (Optional) |
query |
string |
The namespace of the resource. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
dynamic_actions |
body |
array |
A list of dynamic action objects. |
id |
body |
string |
The UUID of the dynamic action. |
name |
body |
string |
The name of the dynamic action. |
namespace (Optional) |
body |
string |
The namespace of the dynamic action. |
class_name |
body |
string |
The Python class name within the code source that implements the action. |
code_source_id (Optional) |
body |
string |
The UUID of the code source containing the action class. |
code_source_name (Optional) |
body |
string |
The name of the code source containing the action class. |
scope (Optional) |
body |
string |
The scope of the dynamic action. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the dynamic action. |
created_at |
body |
string |
The date and time when the dynamic action was created. |
updated_at (Optional) |
body |
string |
The date and time when the dynamic action was last updated. |
Creates a dynamic action.
Either code_source_id or code_source_name must be provided to
identify the code source containing the action class.
Normal response codes: 201
Error response codes: badRequest(400), unauthorized(401), forbidden(403), conflict(409)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
name |
body |
string |
The name for the new dynamic action. |
class_name |
body |
string |
The Python class name within the code source that implements the action. |
code_source_id (Optional) |
body |
string |
The UUID of the code source. Either |
code_source_name (Optional) |
body |
string |
The name of the code source. Either |
namespace (Optional) |
query |
string |
The namespace of the resource. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the dynamic action. |
name |
body |
string |
The name of the dynamic action. |
namespace (Optional) |
body |
string |
The namespace of the dynamic action. |
class_name |
body |
string |
The Python class name within the code source that implements the action. |
code_source_id (Optional) |
body |
string |
The UUID of the code source containing the action class. |
code_source_name (Optional) |
body |
string |
The name of the code source containing the action class. |
scope (Optional) |
body |
string |
The scope of the dynamic action. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the dynamic action. |
created_at |
body |
string |
The date and time when the dynamic action was created. |
updated_at (Optional) |
body |
string |
The date and time when the dynamic action was last updated. |
Shows details for a dynamic action.
Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
dynamic_action_identifier |
path |
string |
The name or UUID of the dynamic action. |
namespace (Optional) |
query |
string |
The namespace of the resource. |
fields (Optional) |
query |
string |
Comma-separated list of fields to include in the response. If not specified, all fields are returned. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the dynamic action. |
name |
body |
string |
The name of the dynamic action. |
namespace (Optional) |
body |
string |
The namespace of the dynamic action. |
class_name |
body |
string |
The Python class name within the code source that implements the action. |
code_source_id (Optional) |
body |
string |
The UUID of the code source containing the action class. |
code_source_name (Optional) |
body |
string |
The name of the code source containing the action class. |
scope (Optional) |
body |
string |
The scope of the dynamic action. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the dynamic action. |
created_at |
body |
string |
The date and time when the dynamic action was created. |
updated_at (Optional) |
body |
string |
The date and time when the dynamic action was last updated. |
Updates a dynamic action.
Either name or id must be provided to identify the dynamic action.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
name |
body |
string |
The name of the dynamic action. |
id |
body |
string |
The UUID of the dynamic action. |
class_name |
body |
string |
The Python class name within the code source that implements the action. |
code_source_id (Optional) |
body |
string |
The UUID of the code source containing the action class. |
code_source_name (Optional) |
body |
string |
The name of the code source containing the action class. |
scope (Optional) |
query |
string |
The scope of the resource. Valid values are |
namespace (Optional) |
query |
string |
The namespace of the resource. |
Response¶
Name |
In |
Type |
Description |
|---|---|---|---|
id |
body |
string |
The UUID of the dynamic action. |
name |
body |
string |
The name of the dynamic action. |
namespace (Optional) |
body |
string |
The namespace of the dynamic action. |
class_name |
body |
string |
The Python class name within the code source that implements the action. |
code_source_id (Optional) |
body |
string |
The UUID of the code source containing the action class. |
code_source_name (Optional) |
body |
string |
The name of the code source containing the action class. |
scope (Optional) |
body |
string |
The scope of the dynamic action. |
project_id (Optional) |
body |
string |
The UUID of the project that owns the dynamic action. |
created_at |
body |
string |
The date and time when the dynamic action was created. |
updated_at (Optional) |
body |
string |
The date and time when the dynamic action was last updated. |
Deletes a dynamic action.
Normal response codes: 204
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Request¶
Name |
In |
Type |
Description |
|---|---|---|---|
dynamic_action_identifier |
path |
string |
The name or UUID of the dynamic action. |
namespace (Optional) |
query |
string |
The namespace of the resource. |
Response¶
There is no body content for the response of a successful DELETE action.