Workflow Execution

Workflow Execution

POST /api/v1/workflows/{id}/execute

Create execute Workflow Async

executeWorkflowAsync starts an async workflow execution Supports both JSON body and multipart form data (for file uploads)

Parameters

NameInTypeRequired
idpathstringtrue

Request Body

Type: WorkflowExecutionRequest

FieldTypeDescription
input_modeInputMode
single_inputstring(optional)
batch_configBatchInputConfig(optional)

Response

Type: WorkflowExecutionResponse

FieldTypeDescription
iduuid.UUID
created_attime.Time
updated_attime.Time
execution_idstring
statusExecutionStatus
progressExecutionProgress(optional)
messagestring(optional)

Example

curl -X POST \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{}' \
  https://api.seeme.ai/api/v1/workflows/{id}/execute

GET /api/v1/workflows/{id}/executions

Get Workflow Executions

getWorkflowExecutions returns all executions for a workflow Project admins and editors (workflows:write) see all executions; project viewers see only their own.

Parameters

NameInTypeRequired
idpathstringtrue

Response

Type: []WorkflowExecution

FieldTypeDescription
idstring
workflow_idstring
workflow_version_idstring
user_idstring
statusExecutionStatusExecution status
progressExecutionProgress(optional)
started_attime.Time(optional)
completed_attime.Time(optional)
errorstring(optional)
input_modeInputModeInput configuration
single_inputstring(optional)
input_file_pathstringPath to uploaded file for async processing (optional)
input_file_namestringOriginal filename (optional)
batch_configBatchInputConfig(optional)
resultsjson.RawMessageResults (stored as JSONB for flexibility) (optional)
node_executionsjson.RawMessageNode executions (step-by-step data for UI) (optional)
userUserComputed/joined fields (optional)
created_attime.TimeMetadata
updated_attime.Time

Example

curl -X GET \
  -H "Authorization: Bearer <token>" \
  https://api.seeme.ai/api/v1/workflows/{id}/executions

GET /api/v1/workflows/{id}/executions/{execution_id}

Get Workflow Execution Handler

getWorkflowExecution returns the status of a workflow execution

Parameters

NameInTypeRequired
idpathstringtrue
execution_idpathstringtrue

Response

Type: WorkflowExecution

FieldTypeDescription
idstring
workflow_idstring
workflow_version_idstring
user_idstring
statusExecutionStatusExecution status
progressExecutionProgress(optional)
started_attime.Time(optional)
completed_attime.Time(optional)
errorstring(optional)
input_modeInputModeInput configuration
single_inputstring(optional)
input_file_pathstringPath to uploaded file for async processing (optional)
input_file_namestringOriginal filename (optional)
batch_configBatchInputConfig(optional)
resultsjson.RawMessageResults (stored as JSONB for flexibility) (optional)
node_executionsjson.RawMessageNode executions (step-by-step data for UI) (optional)
userUserComputed/joined fields (optional)
created_attime.TimeMetadata
updated_attime.Time

Example

curl -X GET \
  -H "Authorization: Bearer <token>" \
  https://api.seeme.ai/api/v1/workflows/{id}/executions/{execution_id}

POST /api/v1/workflows/{id}/executions/{execution_id}/cancel

Create cancel Workflow Execution

cancelWorkflowExecution cancels a running workflow execution

Parameters

NameInTypeRequired
idpathstringtrue
execution_idpathstringtrue

Response

Type: WorkflowExecution

FieldTypeDescription
idstring
workflow_idstring
workflow_version_idstring
user_idstring
statusExecutionStatusExecution status
progressExecutionProgress(optional)
started_attime.Time(optional)
completed_attime.Time(optional)
errorstring(optional)
input_modeInputModeInput configuration
single_inputstring(optional)
input_file_pathstringPath to uploaded file for async processing (optional)
input_file_namestringOriginal filename (optional)
batch_configBatchInputConfig(optional)
resultsjson.RawMessageResults (stored as JSONB for flexibility) (optional)
node_executionsjson.RawMessageNode executions (step-by-step data for UI) (optional)
userUserComputed/joined fields (optional)
created_attime.TimeMetadata
updated_attime.Time

Example

curl -X POST \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  https://api.seeme.ai/api/v1/workflows/{id}/executions/{execution_id}/cancel

GET /api/v1/workflows/{id}/executions/{execution_id}/input-file

Get Workflow Execution Input File

getWorkflowExecutionInputFile serves the input file for an execution

Parameters

NameInTypeRequired
idpathstringtrue
execution_idpathstringtrue

Example

curl -X GET \
  -H "Authorization: Bearer <token>" \
  https://api.seeme.ai/api/v1/workflows/{id}/executions/{execution_id}/input-file

POST /api/v1/workflows/{id}/versions/{version_id}/execute

Create execute Workflow Async

executeWorkflowAsync starts an async workflow execution Supports both JSON body and multipart form data (for file uploads)

Parameters

NameInTypeRequired
idpathstringtrue
version_idpathstringtrue

Request Body

Type: WorkflowExecutionRequest

FieldTypeDescription
input_modeInputMode
single_inputstring(optional)
batch_configBatchInputConfig(optional)

Response

Type: WorkflowExecutionResponse

FieldTypeDescription
iduuid.UUID
created_attime.Time
updated_attime.Time
execution_idstring
statusExecutionStatus
progressExecutionProgress(optional)
messagestring(optional)

Example

curl -X POST \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{}' \
  https://api.seeme.ai/api/v1/workflows/{id}/versions/{version_id}/execute