Skip to main content
Version: v5.0

Workflows

The Workflow API allows you to list, search by ID, and start workflows.

Get list of workflows#

Endpoints#

GET workflowsvc/api/v1/workflows

Request parameters#

Query parameters#

ParameterTypeDescriptionRequired
nsfilterStringNamespace filter to applyRequired
_countIntegerNumber of workflows to be listed. Default is 10.Required
_offsetIntegerPosition in list of workflows to begin listing.Required
Request body example#

None

Response#

Codes#

CodeDescription
200Success
400Bad Request
404Not Found

Response example#

[    {        "_id": "442b84d7-6327-42a3-971e-99c923e46322",        "_workflowDefId": "cc2c728b-6ba5-4210-8a42-6f6079e8269e",        "_name": "sample_workflow",        "_namespaces": [            "RefAppProject_w3MFXx7h"        ],        "_userType": "iaq_realtime_setup",        "_tasks": [            {              "_id": "7df8cb79-32b9-43e8-abc8-88991f455bd5",              "_name": "rest_connector_task",              "_type": "REST_CONNECTOR",              "_sequenceno": 1,              "_status": "COMPLETED",              "_result": {              "rest_conn_result": {                "data": {}                  }            },            "_inputParams": {            "_url": "https://reqres.in/api/users/2",            "_auth": {                "_type": "NoAuth"                     }            }           }        ],        "_result": null,        "_timeoutSeconds": null,        "_timeoutPolicy": null,        "_status": "RUNNING",        "_createdAt": "2025-05-24T21:26:49.367573830Z",        "_updatedAt": "2025-05-24T21:26:49.367574131Z"    }]

Get Workflow by ID#

Endpoints#

GET /workflowsvc/api/v1/workflows/{workflowid}

Request#

Query parameters#

ParameterTypeDescriptionRequired
nsfilterStringNamespace filter to applyRequired

|

Path parameters#

ParameterTypeDescriptionRequired
workflowidStringWorkflow ID to search forRequired
Request body example#

None

Response#

Codes#

CodeDescription
200Success
401Unauthorized
403Forbidden
500Internal Server Error

Response example#

{    "_id": "442b84d7-6327-42a3-971e-99c923e46322",    "_workflowDefId": "cc2c728b-6ba5-4210-8a42-6f6079e8269e",    "_name": "sample_workflow",    "_namespaces": [        "RefAppProject_w3MFXx7h"    ],    "_userType": "iaq_realtime_setup",    "_tasks": [        {        "_id": "7df8cb79-32b9-43e8-abc8-88991f455bd5",        "_name": "rest_connector_task",        "_type": "REST_CONNECTOR",        "_sequenceno": 1,        "_status": "COMPLETED",        "_result": {            "rest_conn_result": {                "data": {}            }        },        "_inputParams": {            "_url": "https://reqres.in/api/users/2",            "_auth": {                "_type": "NoAuth"            }        }    }    ],    "_result": null,    "_timeoutSeconds": null,    "_timeoutPolicy": null,    "_status": "RUNNING",    "_createdAt": "2025-05-24T21:26:49.367573830Z",    "_updatedAt": "2025-05-24T21:26:49.367574131Z"}

Start a new workflow#

Endpoints#

POST /workflowsvc/api/v1/workflows

Request#

Query parameters#

ParameterTypeDescriptionRequired
nsfilterStringNamespace filter to applyRequired

Request body#

ParameterTypeDescriptionRequired
_workflowDefIdStringWorkflow definition ID to search forRequired
Request body example#
{  "_workflowDefId": "6c81d2b0-540b-46c9-a719-1a6ec2cb77d8"} 

Response#

Codes#

CodeDescription
201Created

Response example#

{    "_id": "442b84d7-6327-42a3-971e-99c923e46322",    "_workflowDefId": "cc2c728b-6ba5-4210-8a42-6f6079e8269e",    "_name": "sample_workflow",    "_namespaces": [        "RefAppProject_w3MFXx7h"    ],    "_userType": "iaq_realtime_setup",    "_tasks": [        {        "_id": "7df8cb79-32b9-43e8-abc8-88991f455bd5",        "_name": "rest_connector_task",        "_type": "REST_CONNECTOR",        "_sequenceno": 1,        "_status": "COMPLETED",        "_result": {            "rest_conn_result": {                "data": {}            }        },        "_inputParams": {            "_url": "https://reqres.in/api/users/2",            "_auth": {                "_type": "NoAuth"            }        }        }    ],    "_result": null,    "_timeoutSeconds": null,    "_timeoutPolicy": null,    "_status": "RUNNING",    "_createdAt": "2025-05-24T21:26:49.367573830Z",    "_updatedAt": "2025-05-24T21:26:49.367574131Z"} 

Update workflow status#

Endpoints#

PUT /workflowsvc/api/v1/workflows{workflowId}/status

Request#

Query parameters#

ParameterTypeDescriptionRequired
nsfilterStringNamespace filter to applyRequired

Path parameters#

ParameterTypeDescriptionRequired
workflowIdStringWorkflow ID to search forRequired

Request body#

ParameterTypeDescriptionRequired
_statusStringNew status to be updated to. Can be PAUSED, RESUMED, RETRIED, or TERMINATEDRequired

Request body example

{    "_status": "TERMINATED"} 

Response#

Codes#

CodeDescription
200Success
401Unauthorized
403Forbidden
500Internal Server Error

Response example#

{    "_id": "1e4a4a33-32a7-4032-b61e-4667b2c7591a",    "_workflowDefId": "dc387699-bc7f-472f-95cd-60c7bdb53432",    "_name": "longrun_workflow",    "_namespaces": [        "xxxxx"    ],    "_userType": "iaq_realtime_setup",    "_tasks": [        {            "_id": "a7c51e59-9a59-4fef-ad69-3e09c57877da",            "_name": "longrun_task_1",            "_sequenceno": 1,            "_type": "WAIT",            "_status": "IN_PROGRESS"        }    ],    "_timeoutSeconds": null,    "_timeoutPolicy": null,    "_status": "TERMINATED",    "_createdAt": "2025-11-06T05:26:06.059196Z",    "_updatedAt": "2025-11-06T05:31:22.778432671Z",    "_createdBy": "c9daff7e-b55b-41ec-aa46-d0150f3199dc",    "_updatedBy": "c9daff7e-b55b-41ec-aa46-d0150f3199dc"}