Workflow design Beta
Flow definitions, versions, publishing, deployments, triggers and the operator catalog.
Get an flow version by query selector.
GET /workflow-orchestration/control-plane/flow-compilation/flow-version/{queryselector}
Returns the FlowVersion information that matches the query selector an search specified in the route.
Authentication: Bearer token
Parameters
-
queryselectorenum path Required -
Is the filter available for this query
idorganization-idflow-definition-idall -
searchstring query -
Keyword to search for entities.
-
include_statusstring query -
Optional status parameter to include flow versions of a specific status.
-
exclude_statusstring query -
Optional status parameter to exclude flow versions of a specific status.
-
pageinteger query -
Page number, starting at 1 (default 1).
-
pageSizeinteger query -
Records per page (default 25).
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X GET https://api.sommatic.ai/workflow-orchestration/control-plane/flow-compilation/flow-version/id \
-H "Authorization: Bearer $SOMMATIC_TOKEN"const response = await fetch('https://api.sommatic.ai/workflow-orchestration/control-plane/flow-compilation/flow-version/id', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
},
});
const { success, message, result } = await response.json();import os
import requests
response = requests.get(
"https://api.sommatic.ai/workflow-orchestration/control-plane/flow-compilation/flow-version/id",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": {
"organization_id": "org_blackwood_stone",
"flow_definition_id": "flow-def-email-routing",
"flow_slug": "flow.email_classify_and_route",
"version": "1.3.0",
"name": "Email classification and routing v3",
"description": "Third compiled version with improved classification labels and new routing paths.",
"graph": {
"nodes": [
{
"node_id": "trigger_email",
"operator_slug": "webhook.trigger",
"label": "Trigger incoming email",
"config": {
"path": "/ingress/email"
}
},
{
"node_id": "classify_email",
"operator_slug": "ai.classify",
"label": "Classify incoming email",
"config": {
"labels": [
"billing",
"technical",
"complaint"
],
"confidence_threshold": 0.7
}
},
{
"node_id": "create_ticket",
"operator_slug": "http.request",
"label": "Create support ticket",
"config": {
"method": "POST",
"url": "https://tickets.example.com/api/v1/tickets"
}
}
],
"edges": [
{
"from": {
"node_id": "trigger_email",
"port": "out"
},
"to": {
"node_id": "classify_email",
"port": "in"
},
"condition": {
"type": "expression",
"expression": "payload.is_spam != true"
},
"priority": 10,
"error_semantics": "fallback",
"is_enabled": true
},
{
"from": {
"node_id": "classify_email",
"port": "out"
},
"to": {
"node_id": "create_ticket",
"port": "in"
},
"condition": null,
"priority": 0,
"error_semantics": null,
"is_enabled": true
}
]
},
"trigger_ids": [
"trig_email_ingress"
],
"default_trigger_id": "trig_email_ingress",
"primary_agent_profile_id": "agent_support_router",
"agent_profile_ids": [
"agent_support_router",
"agent_quality_assistant"
],
"validation_status": "valid",
"validation_issues": [],
"is_default": true,
"compatible_with_versions": [
"2"
],
"concurrency_limit": 5000,
"default_timeout_ms": 600000,
"default_retry_policy": {
"max_attempts": 3,
"backoff_strategy": "exponential"
},
"rollout_strategy": "immediate"
}
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": null
}Create a new flow definition.
POST /workflow-orchestration/control-plane/flow-design/flow-definition/
Returns the created flow definition with data provided.
Authentication: Bearer token
Request body
FlowDefinition object to be created.
-
namestring Required -
Human-readable name of the flow definition shown in Sommatic AI.
-
slugstring Required -
Stable semantic key that identifies the logical flow across multiple versions and deployments.
-
descriptionstring -
Longer free-text description that explains the business and operational purpose of the flow.
-
business_purposestring -
Concise statement of what organizational function or outcome this flow is intended to support.
-
cognitive_rolestring -
High-level role of this flow within the organizational cognition landscape, for example "orchestration", "monitoring", "remediation", "classification" or "decision_support".
-
categorystring -
Optional category or domain label used to group related flows in the Sommatic AI workspace.
-
tagsarray<string> -
Optional list of tags used to categorize, search and filter flow definitions.
-
organization_idstring Required -
Identifier of the organization (tenant) that owns this flow definition.
-
project_idstring Required -
Identifier of the project used to group this flow with related automation assets.
-
draft_graphobject -
Directed acyclic graph describing the draft flow structure for this definition.
-
nodesarray<NodeDefinitionModel> -
List of NodeDefinitionModel instances that define the node-level behavior of this flow definition.
-
edgesarray<NodeEdgeModel> -
List of NodeEdgeModel instances that encode control flow between nodes in this definition.
-
-
trigger_idsarray<string> -
List of TriggerModel identifiers that can start or resume this flow definition.
-
default_trigger_idstring -
Identifier of the TriggerModel that should be used as the default entry point for this flow.
-
primary_agent_profile_idstring -
Identifier of the main AgentProfileModel that provides default AI behavior for this flow.
-
agent_profile_idsarray<string> -
Optional list of AgentProfileModel identifiers that may participate in this flow when executed as a multi-agent orchestration.
-
supports_concurrent_instancesboolean -
Indicates whether multiple instances of this flow can run in parallel for the same business context.
-
max_concurrent_instancesinteger -
Optional upper bound on the number of concurrent instances allowed for this flow definition.
-
default_timeout_msinteger -
Optional default execution timeout in milliseconds applied to flow instances if no per-node timeout is set.
-
default_retry_policyobject -
Optional default retry policy applied at the flow level, providing baseline behavior for node retries when specific nodes do not override it. Typically includes max attempts and backoff strategy.
-
editor_stateobject -
Optional persisted editor state such as canvas position, zoom level and node coordinates that allows the visual builder to restore the last layout used by the designer.
-
latest_version_idstring -
Identifier of the latest FlowVersionModel compiled from this definition, if any.
-
version_counterinteger -
Monotonic counter used to generate sequential FlowVersionModel versions from this definition.
-
compiler_hintsobject -
Optional compiler hints and optimization flags that influence how this definition is translated into FlowVersionModel instances, such as preferred worker pools or execution strategies.
-
execution_stateobject -
Operational gate that controls whether the flow accepts new executions, broken down by execution mode (test, prod). When
paused: truefor a given mode, all dispatch entrypoints (webhook, chain, scheduled, manual) skip orchestrator execution. In test mode, no FlowInstance is created (423 Locked). In prod mode, a FlowInstance with statuspausedis created for audit, and the orchestrator is NOT invoked.-
testobject -
-
pausedboolean -
paused_atstring -
paused_bystring -
paused_reasonstring
-
-
prodobject -
-
pausedboolean -
paused_atstring -
paused_bystring -
paused_reasonstring
-
-
-
output_configarray<object> -
Configuration that defines which node outputs should be surfaced as the meaningful result when viewing workflow run outcomes. Each entry pins a specific node and controls what data (output, metrics, meta) is extracted and displayed.
-
node_idstring -
Identifier of the node whose output should be included in the configured result.
-
labelstring -
Human-readable label for this output entry shown in the result view.
-
displaystring -
Display mode — "full" for entire output or "fields" for specific field selection.
-
fieldsarray<string> -
When display is "fields", the list of output field names to extract.
-
include_metricsboolean -
Whether to include execution metrics (latency, token usage) for this node.
-
include_metaboolean -
Whether to include the meta object (evaluation details, routing decisions).
-
orderinteger -
Display order in the result view (lower values first).
-
-
git_bindingobject -
Link with the Git repository this resource is synchronized from (see docs/concepts/git_sync.md): { repository_id, repository, branch, environment, package_path, resource_key, file_path, last_synced_commit, last_synced_at, deployed_commit, deployed_at, deployed_version, unlinked, unlinked_at }. unlinked = true means this installation stops syncing the resource from Git.
-
persistence_store_idstring -
Optional reference to a Payload Store (WorkflowOrchestrationMemoryStore) that defines where heavy execution payloads of this workflow are externalized. When set, string values above the store's thresholds are uploaded to the referenced blob storage (content-addressed by SHA-256) and replaced in execution documents by a
$payloadRefdescriptor. When null or absent, heavy values are truncated to an ephemeral preview (_truncatedmarker) — the workflow runs without any storage dependency.
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X POST https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/ \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "<name>",
"slug": "<slug>",
"organization_id": "<organization_id>",
"project_id": "<project_id>"
}'const response = await fetch('https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "<name>",
"slug": "<slug>",
"organization_id": "<organization_id>",
"project_id": "<project_id>"
}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.post(
"https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={
"name": "<name>",
"slug": "<slug>",
"organization_id": "<organization_id>",
"project_id": "<project_id>"
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": {
"name": "Email classification and routing",
"slug": "flow.email_classify_and_route",
"description": "Flow definition that classifies inbound emails, routes them to the appropriate downstream systems and can later evolve into a multi-agent orchestration for case handling.\n",
"business_purpose": "Classify incoming emails and create tickets according to their category.",
"cognitive_role": "orchestration",
"category": "customer_support",
"tags": [
"email",
"classification",
"routing"
],
"organization_id": "org_blackwood_stone",
"project_id": "proj_core_operations",
"draft_nodes": [
{
"id": "trigger_email",
"type": "webhook.trigger",
"params": {
"path": "/ingress/email"
}
},
{
"id": "classify_email",
"type": "ai.classify",
"params": {
"labels": [
"billing",
"technical",
"complaint"
]
}
},
{
"id": "create_ticket",
"type": "http.request",
"params": {
"method": "POST",
"url": "https://tickets.example.com/api/v1/tickets"
}
}
],
"draft_edges": [
{
"from": {
"node_id": "trigger_email",
"port": "out"
},
"to": {
"node_id": "classify_email",
"port": "in"
}
},
{
"from": {
"node_id": "classify_email",
"port": "out"
},
"to": {
"node_id": "create_ticket",
"port": "in"
}
}
],
"trigger_ids": [
"trig_email_ingress"
],
"default_trigger_id": "trig_email_ingress",
"primary_agent_profile_id": "agent_support_router",
"agent_profile_ids": [
"agent_support_router",
"agent_quality_assistant"
],
"supports_concurrent_instances": true,
"max_concurrent_instances": 1000,
"default_timeout_ms": 600000,
"default_retry_policy": {
"max_attempts": 3,
"backoff_strategy": "exponential"
},
"editor_state": {
"zoom": 0.9,
"pan_x": 120,
"pan_y": -40
},
"latest_version_id": "flow:email-classify-and-post@v3",
"version_counter": 3,
"compiler_hints": {
"preferred_worker_pool": "standard",
"enable_optimistic_compilation": true
}
}
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": null
}Update an existing flow definition.
PATCH /workflow-orchestration/control-plane/flow-design/flow-definition/
Updates the data of an existing flow definition with the data provided.
Authentication: Bearer token
Request body
FlowDefinition object to be created.
-
namestring Required -
Human-readable name of the flow definition shown in Sommatic AI.
-
slugstring Required -
Stable semantic key that identifies the logical flow across multiple versions and deployments.
-
descriptionstring -
Longer free-text description that explains the business and operational purpose of the flow.
-
business_purposestring -
Concise statement of what organizational function or outcome this flow is intended to support.
-
cognitive_rolestring -
High-level role of this flow within the organizational cognition landscape, for example "orchestration", "monitoring", "remediation", "classification" or "decision_support".
-
categorystring -
Optional category or domain label used to group related flows in the Sommatic AI workspace.
-
tagsarray<string> -
Optional list of tags used to categorize, search and filter flow definitions.
-
organization_idstring Required -
Identifier of the organization (tenant) that owns this flow definition.
-
project_idstring Required -
Identifier of the project used to group this flow with related automation assets.
-
draft_graphobject -
Directed acyclic graph describing the draft flow structure for this definition.
-
nodesarray<NodeDefinitionModel> -
List of NodeDefinitionModel instances that define the node-level behavior of this flow definition.
-
edgesarray<NodeEdgeModel> -
List of NodeEdgeModel instances that encode control flow between nodes in this definition.
-
-
trigger_idsarray<string> -
List of TriggerModel identifiers that can start or resume this flow definition.
-
default_trigger_idstring -
Identifier of the TriggerModel that should be used as the default entry point for this flow.
-
primary_agent_profile_idstring -
Identifier of the main AgentProfileModel that provides default AI behavior for this flow.
-
agent_profile_idsarray<string> -
Optional list of AgentProfileModel identifiers that may participate in this flow when executed as a multi-agent orchestration.
-
supports_concurrent_instancesboolean -
Indicates whether multiple instances of this flow can run in parallel for the same business context.
-
max_concurrent_instancesinteger -
Optional upper bound on the number of concurrent instances allowed for this flow definition.
-
default_timeout_msinteger -
Optional default execution timeout in milliseconds applied to flow instances if no per-node timeout is set.
-
default_retry_policyobject -
Optional default retry policy applied at the flow level, providing baseline behavior for node retries when specific nodes do not override it. Typically includes max attempts and backoff strategy.
-
editor_stateobject -
Optional persisted editor state such as canvas position, zoom level and node coordinates that allows the visual builder to restore the last layout used by the designer.
-
latest_version_idstring -
Identifier of the latest FlowVersionModel compiled from this definition, if any.
-
version_counterinteger -
Monotonic counter used to generate sequential FlowVersionModel versions from this definition.
-
compiler_hintsobject -
Optional compiler hints and optimization flags that influence how this definition is translated into FlowVersionModel instances, such as preferred worker pools or execution strategies.
-
execution_stateobject -
Operational gate that controls whether the flow accepts new executions, broken down by execution mode (test, prod). When
paused: truefor a given mode, all dispatch entrypoints (webhook, chain, scheduled, manual) skip orchestrator execution. In test mode, no FlowInstance is created (423 Locked). In prod mode, a FlowInstance with statuspausedis created for audit, and the orchestrator is NOT invoked.-
testobject -
-
pausedboolean -
paused_atstring -
paused_bystring -
paused_reasonstring
-
-
prodobject -
-
pausedboolean -
paused_atstring -
paused_bystring -
paused_reasonstring
-
-
-
output_configarray<object> -
Configuration that defines which node outputs should be surfaced as the meaningful result when viewing workflow run outcomes. Each entry pins a specific node and controls what data (output, metrics, meta) is extracted and displayed.
-
node_idstring -
Identifier of the node whose output should be included in the configured result.
-
labelstring -
Human-readable label for this output entry shown in the result view.
-
displaystring -
Display mode — "full" for entire output or "fields" for specific field selection.
-
fieldsarray<string> -
When display is "fields", the list of output field names to extract.
-
include_metricsboolean -
Whether to include execution metrics (latency, token usage) for this node.
-
include_metaboolean -
Whether to include the meta object (evaluation details, routing decisions).
-
orderinteger -
Display order in the result view (lower values first).
-
-
git_bindingobject -
Link with the Git repository this resource is synchronized from (see docs/concepts/git_sync.md): { repository_id, repository, branch, environment, package_path, resource_key, file_path, last_synced_commit, last_synced_at, deployed_commit, deployed_at, deployed_version, unlinked, unlinked_at }. unlinked = true means this installation stops syncing the resource from Git.
-
persistence_store_idstring -
Optional reference to a Payload Store (WorkflowOrchestrationMemoryStore) that defines where heavy execution payloads of this workflow are externalized. When set, string values above the store's thresholds are uploaded to the referenced blob storage (content-addressed by SHA-256) and replaced in execution documents by a
$payloadRefdescriptor. When null or absent, heavy values are truncated to an ephemeral preview (_truncatedmarker) — the workflow runs without any storage dependency.
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X PATCH https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/ \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "<name>",
"slug": "<slug>",
"organization_id": "<organization_id>",
"project_id": "<project_id>"
}'const response = await fetch('https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "<name>",
"slug": "<slug>",
"organization_id": "<organization_id>",
"project_id": "<project_id>"
}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.patch(
"https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={
"name": "<name>",
"slug": "<slug>",
"organization_id": "<organization_id>",
"project_id": "<project_id>"
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": {
"name": "Email classification and routing",
"slug": "flow.email_classify_and_route",
"description": "Flow definition that classifies inbound emails, routes them to the appropriate downstream systems and can later evolve into a multi-agent orchestration for case handling.\n",
"business_purpose": "Classify incoming emails and create tickets according to their category.",
"cognitive_role": "orchestration",
"category": "customer_support",
"tags": [
"email",
"classification",
"routing"
],
"organization_id": "org_blackwood_stone",
"project_id": "proj_core_operations",
"draft_nodes": [
{
"id": "trigger_email",
"type": "webhook.trigger",
"params": {
"path": "/ingress/email"
}
},
{
"id": "classify_email",
"type": "ai.classify",
"params": {
"labels": [
"billing",
"technical",
"complaint"
]
}
},
{
"id": "create_ticket",
"type": "http.request",
"params": {
"method": "POST",
"url": "https://tickets.example.com/api/v1/tickets"
}
}
],
"draft_edges": [
{
"from": {
"node_id": "trigger_email",
"port": "out"
},
"to": {
"node_id": "classify_email",
"port": "in"
}
},
{
"from": {
"node_id": "classify_email",
"port": "out"
},
"to": {
"node_id": "create_ticket",
"port": "in"
}
}
],
"trigger_ids": [
"trig_email_ingress"
],
"default_trigger_id": "trig_email_ingress",
"primary_agent_profile_id": "agent_support_router",
"agent_profile_ids": [
"agent_support_router",
"agent_quality_assistant"
],
"supports_concurrent_instances": true,
"max_concurrent_instances": 1000,
"default_timeout_ms": 600000,
"default_retry_policy": {
"max_attempts": 3,
"backoff_strategy": "exponential"
},
"editor_state": {
"zoom": 0.9,
"pan_x": 120,
"pan_y": -40
},
"latest_version_id": "flow:email-classify-and-post@v3",
"version_counter": 3,
"compiler_hints": {
"preferred_worker_pool": "standard",
"enable_optimistic_compilation": true
}
}
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": null
}Delete a flow definition by its id.
DELETE /workflow-orchestration/control-plane/flow-design/flow-definition/
Deletes a flow definition based on the provided ID.
Authentication: Bearer token
Request body
ID of the flow definition to delete
-
idstring
Responses
-
200OK. -
500Something went wrong while performing this action.
curl -X DELETE https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/ \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "<id>"
}'const response = await fetch('https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": "<id>"
}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.delete(
"https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={
"id": "<id>"
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "FlowDefinition successfully deleted",
"result": null
}{
"status": 500,
"success": false,
"message": "Something went wrong while performing this action",
"result": null
}Pause workflow execution for a given mode (test or prod).
POST /workflow-orchestration/control-plane/flow-design/flow-definition/{id}/pause
Operational gate that blocks new executions of the workflow for the chosen mode. In test mode, no FlowInstance is created (423 Locked). In prod mode, a FlowInstance with status paused is created for audit. SSE clients connected to the flow_definition receive a workflow-paused event.
Authentication: Bearer token
Parameters
-
idstring path Required
Request body
-
modestring - Allowed values
testprod -
reasonstring -
actorstring -
user_id of the operator initiating the pause
Responses
curl -X POST https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/<id>/pause \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"mode": "test",
"reason": "<reason>",
"actor": "<actor>"
}'const response = await fetch('https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/<id>/pause', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"mode": "test",
"reason": "<reason>",
"actor": "<actor>"
}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.post(
"https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/<id>/pause",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={
"mode": "test",
"reason": "<reason>",
"actor": "<actor>"
},
)
data = response.json()Publish the current draft as a new version.
POST /workflow-orchestration/control-plane/flow-design/flow-definition/{id}/publish
Creates the next FlowVersion from draft_nodes / draft_edges with is_default = true, clears the previous default and updates latest_version_id / version_counter. Used by the studio Deploy action and by git sync.
Authentication: Bearer token
Parameters
-
idstring path Required
Request body
-
descriptionstring -
gitobject -
Origin when published from git: { repository, branch, commit, path, key }
Responses
-
200The created version.
curl -X POST https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/<id>/publish \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"description": "<description>",
"git": {}
}'const response = await fetch('https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/<id>/publish', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"description": "<description>",
"git": {}
}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.post(
"https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/<id>/publish",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={
"description": "<description>",
"git": {}
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": {}
}Resume workflow execution for a given mode (test or prod).
POST /workflow-orchestration/control-plane/flow-design/flow-definition/{id}/resume
Clears the paused flag for the chosen mode; new dispatches proceed normally.
Authentication: Bearer token
Parameters
-
idstring path Required
Request body
-
modestring - Allowed values
testprod -
actorstring -
user_id of the operator initiating the resume
Responses
curl -X POST https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/<id>/resume \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"mode": "test",
"actor": "<actor>"
}'const response = await fetch('https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/<id>/resume', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"mode": "test",
"actor": "<actor>"
}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.post(
"https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/<id>/resume",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={
"mode": "test",
"actor": "<actor>"
},
)
data = response.json()Get an flow definition by query selector.
GET /workflow-orchestration/control-plane/flow-design/flow-definition/{queryselector}
Returns the flow definition information that matches the query selector an search specified in the route.
Authentication: Bearer token
Parameters
-
queryselectorenum path Required -
Is the filter available for this query
idorganization-idallstatuses -
searchstring query -
Keyword to search for entities.
-
include_statusstring query -
Optional status parameter to include flow definitions of a specific status.
-
exclude_statusstring query -
Optional status parameter to exclude flow definitions of a specific status.
-
pageinteger query -
Page number, starting at 1 (default 1).
-
pageSizeinteger query -
Records per page (default 25).
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X GET https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/id \
-H "Authorization: Bearer $SOMMATIC_TOKEN"const response = await fetch('https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/id', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
},
});
const { success, message, result } = await response.json();import os
import requests
response = requests.get(
"https://api.sommatic.ai/workflow-orchestration/control-plane/flow-design/flow-definition/id",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": {
"name": "Email classification and routing",
"slug": "flow.email_classify_and_route",
"description": "Flow definition that classifies inbound emails, routes them to the appropriate downstream systems and can later evolve into a multi-agent orchestration for case handling.\n",
"business_purpose": "Classify incoming emails and create tickets according to their category.",
"cognitive_role": "orchestration",
"category": "customer_support",
"tags": [
"email",
"classification",
"routing"
],
"organization_id": "org_blackwood_stone",
"project_id": "proj_core_operations",
"draft_nodes": [
{
"id": "trigger_email",
"type": "webhook.trigger",
"params": {
"path": "/ingress/email"
}
},
{
"id": "classify_email",
"type": "ai.classify",
"params": {
"labels": [
"billing",
"technical",
"complaint"
]
}
},
{
"id": "create_ticket",
"type": "http.request",
"params": {
"method": "POST",
"url": "https://tickets.example.com/api/v1/tickets"
}
}
],
"draft_edges": [
{
"from": {
"node_id": "trigger_email",
"port": "out"
},
"to": {
"node_id": "classify_email",
"port": "in"
}
},
{
"from": {
"node_id": "classify_email",
"port": "out"
},
"to": {
"node_id": "create_ticket",
"port": "in"
}
}
],
"trigger_ids": [
"trig_email_ingress"
],
"default_trigger_id": "trig_email_ingress",
"primary_agent_profile_id": "agent_support_router",
"agent_profile_ids": [
"agent_support_router",
"agent_quality_assistant"
],
"supports_concurrent_instances": true,
"max_concurrent_instances": 1000,
"default_timeout_ms": 600000,
"default_retry_policy": {
"max_attempts": 3,
"backoff_strategy": "exponential"
},
"editor_state": {
"zoom": 0.9,
"pan_x": 120,
"pan_y": -40
},
"latest_version_id": "flow:email-classify-and-post@v3",
"version_counter": 3,
"compiler_hints": {
"preferred_worker_pool": "standard",
"enable_optimistic_compilation": true
}
}
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": null
}Get operators by query selector.
GET /workflow-orchestration/control-plane/operator-registry/operator/{queryselector}
Returns operator data matching the query selector. Use 'catalog' to fetch the live catalog from the orchestrator enriched with per-tenant entitlements. Use 'catalog-slug' to fetch a single operator by slug. Use 'entitlements' to list entitlements for an organization.
Authentication: Bearer token
Parameters
-
queryselectorenum path Required -
Filter for this query
idorganization-idallstatusescatalogcatalog-slugentitlements -
searchstring query -
Keyword to search for entities.
-
organization_idstring query -
Organization ID for entitlement enrichment (used with catalog, catalog-slug, entitlements).
-
versionstring query -
Semantic version to resolve (used with catalog-slug). Defaults to latest.
-
include_statusstring query -
Optional status parameter to include templates of a specific status.
-
exclude_statusstring query -
Optional status parameter to exclude templates of a specific status.
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X GET https://api.sommatic.ai/workflow-orchestration/control-plane/operator-registry/operator/id \
-H "Authorization: Bearer $SOMMATIC_TOKEN"const response = await fetch('https://api.sommatic.ai/workflow-orchestration/control-plane/operator-registry/operator/id', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
},
});
const { success, message, result } = await response.json();import os
import requests
response = requests.get(
"https://api.sommatic.ai/workflow-orchestration/control-plane/operator-registry/operator/id",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": {}
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": {}
}Create a new trigger.
POST /workflow-orchestration/control-plane/trigger-configuration/trigger/
Returns the created Trigger with data provided.
Authentication: Bearer token
Request body
Trigger object to be created.
-
organization_idstring Required -
Identifier of the OrganizationModel this trigger is associated with.
-
slugstring Required -
Stable semantic key uniquely identifying this trigger in the catalog (e.g. trigger:webhook.incoming).
-
namestring Required -
Human-readable name used in editors and documentation.
-
typestring Required -
Type of the trigger such as "webhook", "schedule", "message", "manual" or "external".
-
descriptionstring -
Detailed description of the external event source and when this trigger should be used.
-
target_flow_definition_idstring -
Identifier of the FlowDefinitionModel this trigger is associated with, if the target is a definition.
-
target_flow_version_idstring -
Identifier of the FlowVersionModel this trigger activates directly, if the target is a specific version.
-
payload_mappingobject -
Optional mapping rules that transform external input (HTTP body, message payload, cron metadata) into the internal envelope structure used by Sommatic AI.
-
securityobject -
Optional security rules describing required authentication, allowed origins, key verification or tenancy constraints for inbound events.
-
webhookobject -
Configuration block used when the trigger type is "webhook".
-
methodstring -
HTTP method to accept (GET, POST, etc.).
-
pathstring -
HTTP path for ingress routing.
-
require_signatureboolean -
Whether the request must include a signature header.
-
allowed_originsarray<string> -
Optional list of allowed origins for request validation.
-
-
scheduleobject -
Configuration block used when the trigger type is "schedule".
-
cronstring -
Cron expression driving periodic activation.
-
timezonestring -
Timezone used when interpreting the cron expression.
-
-
messageobject -
Configuration block for message-based triggers (queue, topic, event bus).
-
channelstring -
Name of the message queue, topic or subscription to listen to.
-
decodestring -
Optional codec or format used to decode the inbound message (json, protobuf, base64, etc.).
-
-
manualobject -
Configuration for manual triggers launched by a user or a system administrator.
-
allowed_rolesarray<string> -
Optional list of user roles allowed to invoke this trigger.
-
-
externalobject -
Configuration block for external system triggers such as CRM, ERP, IoT or identity events.
-
source_systemstring -
Name of the external system emitting the event.
-
event_typestring -
Type of event consumed from the external system.
-
-
default_instance_contextobject -
Optional default context object that will be attached to all instances launched via this trigger.
-
tagsarray<string> -
Optional list of free-form tags used for grouping, discovery and analytics.
-
is_enabledboolean -
Indicates whether this trigger is active and able to start or resume flows.
-
is_systemboolean -
Indicates whether this trigger is a built-in system trigger rather than user-defined.
-
is_deprecatedboolean -
Indicates whether this trigger is deprecated and should be avoided in new designs.
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X POST https://api.sommatic.ai/workflow-orchestration/control-plane/trigger-configuration/trigger/ \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"organization_id": "<organization_id>",
"slug": "<slug>",
"name": "<name>",
"type": "<type>"
}'const response = await fetch('https://api.sommatic.ai/workflow-orchestration/control-plane/trigger-configuration/trigger/', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"organization_id": "<organization_id>",
"slug": "<slug>",
"name": "<name>",
"type": "<type>"
}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.post(
"https://api.sommatic.ai/workflow-orchestration/control-plane/trigger-configuration/trigger/",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={
"organization_id": "<organization_id>",
"slug": "<slug>",
"name": "<name>",
"type": "<type>"
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": {
"organization_id": "org.1234567890",
"slug": "trigger:webhook.incoming-email",
"name": "Incoming Email Webhook",
"type": "webhook",
"description": "Trigger activated when an external service posts an incoming email event.",
"target_flow_version_id": "flow.email_classify_and_route@1.3.0",
"payload_mapping": {
"map": {
"subject": "$.payload.subject",
"body": "$.payload.body",
"from": "$.payload.from"
}
},
"security": {
"require_signature": true,
"allowed_origins": [
"https://mailhooks.example.com"
]
},
"webhook": {
"method": "POST",
"path": "/ingress/email",
"require_signature": true,
"allowed_origins": [
"https://mailhooks.example.com"
]
},
"default_instance_context": {
"channel": "support",
"classification_mode": "enhanced"
},
"tags": [
"webhook",
"email",
"ingress"
],
"is_system": false
}
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": null
}Update an existing trigger.
PATCH /workflow-orchestration/control-plane/trigger-configuration/trigger/
Updates the data of an existing Trigger with the data provided.
Authentication: Bearer token
Request body
Trigger object to be created.
-
organization_idstring Required -
Identifier of the OrganizationModel this trigger is associated with.
-
slugstring Required -
Stable semantic key uniquely identifying this trigger in the catalog (e.g. trigger:webhook.incoming).
-
namestring Required -
Human-readable name used in editors and documentation.
-
typestring Required -
Type of the trigger such as "webhook", "schedule", "message", "manual" or "external".
-
descriptionstring -
Detailed description of the external event source and when this trigger should be used.
-
target_flow_definition_idstring -
Identifier of the FlowDefinitionModel this trigger is associated with, if the target is a definition.
-
target_flow_version_idstring -
Identifier of the FlowVersionModel this trigger activates directly, if the target is a specific version.
-
payload_mappingobject -
Optional mapping rules that transform external input (HTTP body, message payload, cron metadata) into the internal envelope structure used by Sommatic AI.
-
securityobject -
Optional security rules describing required authentication, allowed origins, key verification or tenancy constraints for inbound events.
-
webhookobject -
Configuration block used when the trigger type is "webhook".
-
methodstring -
HTTP method to accept (GET, POST, etc.).
-
pathstring -
HTTP path for ingress routing.
-
require_signatureboolean -
Whether the request must include a signature header.
-
allowed_originsarray<string> -
Optional list of allowed origins for request validation.
-
-
scheduleobject -
Configuration block used when the trigger type is "schedule".
-
cronstring -
Cron expression driving periodic activation.
-
timezonestring -
Timezone used when interpreting the cron expression.
-
-
messageobject -
Configuration block for message-based triggers (queue, topic, event bus).
-
channelstring -
Name of the message queue, topic or subscription to listen to.
-
decodestring -
Optional codec or format used to decode the inbound message (json, protobuf, base64, etc.).
-
-
manualobject -
Configuration for manual triggers launched by a user or a system administrator.
-
allowed_rolesarray<string> -
Optional list of user roles allowed to invoke this trigger.
-
-
externalobject -
Configuration block for external system triggers such as CRM, ERP, IoT or identity events.
-
source_systemstring -
Name of the external system emitting the event.
-
event_typestring -
Type of event consumed from the external system.
-
-
default_instance_contextobject -
Optional default context object that will be attached to all instances launched via this trigger.
-
tagsarray<string> -
Optional list of free-form tags used for grouping, discovery and analytics.
-
is_enabledboolean -
Indicates whether this trigger is active and able to start or resume flows.
-
is_systemboolean -
Indicates whether this trigger is a built-in system trigger rather than user-defined.
-
is_deprecatedboolean -
Indicates whether this trigger is deprecated and should be avoided in new designs.
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X PATCH https://api.sommatic.ai/workflow-orchestration/control-plane/trigger-configuration/trigger/ \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"organization_id": "<organization_id>",
"slug": "<slug>",
"name": "<name>",
"type": "<type>"
}'const response = await fetch('https://api.sommatic.ai/workflow-orchestration/control-plane/trigger-configuration/trigger/', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"organization_id": "<organization_id>",
"slug": "<slug>",
"name": "<name>",
"type": "<type>"
}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.patch(
"https://api.sommatic.ai/workflow-orchestration/control-plane/trigger-configuration/trigger/",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={
"organization_id": "<organization_id>",
"slug": "<slug>",
"name": "<name>",
"type": "<type>"
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": {
"organization_id": "org.1234567890",
"slug": "trigger:webhook.incoming-email",
"name": "Incoming Email Webhook",
"type": "webhook",
"description": "Trigger activated when an external service posts an incoming email event.",
"target_flow_version_id": "flow.email_classify_and_route@1.3.0",
"payload_mapping": {
"map": {
"subject": "$.payload.subject",
"body": "$.payload.body",
"from": "$.payload.from"
}
},
"security": {
"require_signature": true,
"allowed_origins": [
"https://mailhooks.example.com"
]
},
"webhook": {
"method": "POST",
"path": "/ingress/email",
"require_signature": true,
"allowed_origins": [
"https://mailhooks.example.com"
]
},
"default_instance_context": {
"channel": "support",
"classification_mode": "enhanced"
},
"tags": [
"webhook",
"email",
"ingress"
],
"is_system": false
}
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": null
}Delete a Trigger by its id.
DELETE /workflow-orchestration/control-plane/trigger-configuration/trigger/
Deletes a Trigger based on the provided ID.
Authentication: Bearer token
Request body
ID of the Trigger to delete
-
idstring
Responses
-
200OK. -
500Something went wrong while performing this action.
curl -X DELETE https://api.sommatic.ai/workflow-orchestration/control-plane/trigger-configuration/trigger/ \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "<id>"
}'const response = await fetch('https://api.sommatic.ai/workflow-orchestration/control-plane/trigger-configuration/trigger/', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": "<id>"
}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.delete(
"https://api.sommatic.ai/workflow-orchestration/control-plane/trigger-configuration/trigger/",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={
"id": "<id>"
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Trigger successfully deleted",
"result": null
}{
"status": 500,
"success": false,
"message": "Something went wrong while performing this action",
"result": null
}Get an Trigger by query selector.
GET /workflow-orchestration/control-plane/trigger-configuration/trigger/{queryselector}
Returns the Trigger information that matches the query selector an search specified in the route.
Authentication: Bearer token
Parameters
-
queryselectorenum path Required -
Is the filter available for this query
idorganization-idall -
searchstring query -
Keyword to search for entities.
-
include_statusstring query -
Optional status parameter to include triggers of a specific status.
-
exclude_statusstring query -
Optional status parameter to exclude triggers of a specific status.
-
pageinteger query -
Page number, starting at 1 (default 1).
-
pageSizeinteger query -
Records per page (default 25).
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X GET https://api.sommatic.ai/workflow-orchestration/control-plane/trigger-configuration/trigger/id \
-H "Authorization: Bearer $SOMMATIC_TOKEN"const response = await fetch('https://api.sommatic.ai/workflow-orchestration/control-plane/trigger-configuration/trigger/id', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
},
});
const { success, message, result } = await response.json();import os
import requests
response = requests.get(
"https://api.sommatic.ai/workflow-orchestration/control-plane/trigger-configuration/trigger/id",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": {
"organization_id": "org.1234567890",
"slug": "trigger:webhook.incoming-email",
"name": "Incoming Email Webhook",
"type": "webhook",
"description": "Trigger activated when an external service posts an incoming email event.",
"target_flow_version_id": "flow.email_classify_and_route@1.3.0",
"payload_mapping": {
"map": {
"subject": "$.payload.subject",
"body": "$.payload.body",
"from": "$.payload.from"
}
},
"security": {
"require_signature": true,
"allowed_origins": [
"https://mailhooks.example.com"
]
},
"webhook": {
"method": "POST",
"path": "/ingress/email",
"require_signature": true,
"allowed_origins": [
"https://mailhooks.example.com"
]
},
"default_instance_context": {
"channel": "support",
"classification_mode": "enhanced"
},
"tags": [
"webhook",
"email",
"ingress"
],
"is_system": false
}
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": null
}Create a new deployment.
POST /workflow-orchestration/lifecycle/deployment/
Returns the created Deployment with data provided.
Authentication: Bearer token
Request body
Deployment object to be created.
-
organization_idstring Required -
Identifier of the OrganizationModel where this flow version is deployed.
-
flow_version_idstring Required -
Identifier of the FlowVersionModel being deployed.
-
flow_slugstring Required -
Stable flow key used to group deployments of the same logical flow across versions and environments.
-
environment_idstring Required -
Identifier of the EnvironmentModel where this flow version is deployed.
-
environment_keystring Required -
Semantic environment key such as "dev", "staging", "prod-eu", used for routing and configuration.
-
deployment_statusstring Required -
Current deployment lifecycle state: "pending", "rolling_out", "active", "paused", "failed", "decommissioned".
-
rollout_strategystring -
Rollout strategy applied to this deployment: "immediate", "canary", "blue-green", "shadow", or "manual".
-
is_activeboolean -
Indicates whether this deployment is currently eligible to receive traffic in its environment.
-
is_defaultboolean -
True if this deployment is considered the default version for new instances of this flow in the environment.
-
traffic_percentageinteger -
Optional percentage of traffic routed to this deployment when using canary or multi-version strategies. For immediate or single-version rollouts this is typically 100.
-
shadow_modeboolean -
When true, this deployment receives mirrored traffic for observation only; its results do not affect the primary flow outcome.
-
created_from_deployment_idstring -
Optional reference to a prior DeploymentModel when this deployment was created as a promotion, clone or blue-green counterpart of another deployment.
-
deployed_atinteger -
Unix timestamp when the deployment record was first created.
-
activated_atinteger -
Unix timestamp when the deployment first became active for live traffic.
-
deactivated_atinteger -
Unix timestamp when the deployment was deactivated or fully decommissioned.
-
notesstring -
Optional free-form notes about this deployment, such as change summary or rollout rationale.
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X POST https://api.sommatic.ai/workflow-orchestration/lifecycle/deployment/ \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"organization_id": "<organization_id>",
"flow_version_id": "<flow_version_id>",
"flow_slug": "<flow_slug>",
"environment_id": "<environment_id>",
"environment_key": "<environment_key>",
"deployment_status": "<deployment_status>"
}'const response = await fetch('https://api.sommatic.ai/workflow-orchestration/lifecycle/deployment/', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"organization_id": "<organization_id>",
"flow_version_id": "<flow_version_id>",
"flow_slug": "<flow_slug>",
"environment_id": "<environment_id>",
"environment_key": "<environment_key>",
"deployment_status": "<deployment_status>"
}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.post(
"https://api.sommatic.ai/workflow-orchestration/lifecycle/deployment/",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={
"organization_id": "<organization_id>",
"flow_version_id": "<flow_version_id>",
"flow_slug": "<flow_slug>",
"environment_id": "<environment_id>",
"environment_key": "<environment_key>",
"deployment_status": "<deployment_status>"
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": {
"organization_id": "org_1234567890",
"flow_version_id": "flow-def-email-routing:v1.3.0",
"flow_slug": "flow.email_classify_and_route",
"environment_id": "env_prod_us",
"environment_key": "prod",
"deployment_status": "rolling_out",
"rollout_strategy": "canary",
"is_active": true,
"is_default": false,
"traffic_percentage": 20,
"shadow_mode": false,
"created_from_deployment_id": "dep_flow.email_classify_and_route_v1_2_0_prod",
"deployed_at": 1735695600000,
"activated_at": 1735695660000,
"deactivated_at": null,
"notes": "Canary rollout of v1.3.0 with improved routing rules and PII redaction."
}
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": null
}Get an Deployment by query selector.
GET /workflow-orchestration/lifecycle/deployment/{queryselector}
Returns the Deployment information that matches the query selector an search specified in the route.
Authentication: Bearer token
Parameters
-
queryselectorenum path Required -
Is the filter available for this query
idorganization-idall -
searchstring query -
Keyword to search for entities.
-
include_statusstring query -
Optional status parameter to include deployments of a specific status.
-
exclude_statusstring query -
Optional status parameter to exclude deployments of a specific status.
-
pageinteger query -
Page number, starting at 1 (default 1).
-
pageSizeinteger query -
Records per page (default 25).
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X GET https://api.sommatic.ai/workflow-orchestration/lifecycle/deployment/id \
-H "Authorization: Bearer $SOMMATIC_TOKEN"const response = await fetch('https://api.sommatic.ai/workflow-orchestration/lifecycle/deployment/id', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
},
});
const { success, message, result } = await response.json();import os
import requests
response = requests.get(
"https://api.sommatic.ai/workflow-orchestration/lifecycle/deployment/id",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": {
"organization_id": "org_1234567890",
"flow_version_id": "flow-def-email-routing:v1.3.0",
"flow_slug": "flow.email_classify_and_route",
"environment_id": "env_prod_us",
"environment_key": "prod",
"deployment_status": "rolling_out",
"rollout_strategy": "canary",
"is_active": true,
"is_default": false,
"traffic_percentage": 20,
"shadow_mode": false,
"created_from_deployment_id": "dep_flow.email_classify_and_route_v1_2_0_prod",
"deployed_at": 1735695600000,
"activated_at": 1735695660000,
"deactivated_at": null,
"notes": "Canary rollout of v1.3.0 with improved routing rules and PII redaction."
}
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": null
}