Skip to main content

Get the Workflow Task List

Use this API to retrieve a paginated list of NineData workflow tasks. Filter the results by task type, data source, user perspective, status, and time range.

Request URL: /openapi/v1/workflow/list

HTTP method: GET

Request parameters

ParameterTypeRequiredDescriptionExample
moduleStringYesTask type:
  • sqlTask: SQL task
  • dataExport: Data export
sqlTask
datasourceIdStringNoData source ID.ds-dbiddumxp4h
accountIdStringNoUser ID.1238779494193071
accountTypeStringNoUser perspective:
  • submitter: Submitted by me
  • toApprove: Pending my approval
  • toExecute: Pending my execution
  • executed: Executed
  • approved: Approved
submitter
statusStringNoTask status:
  • notStarted: Not started
  • preChecking: Pre-checking
  • preCheckSkip: Pre-check skipped
  • preCheckSuccess: Pre-check passed
  • preCheckFailed: Pre-check failed
  • ruleChecking: Rule checking
  • ruleCheckSuccess: Rule check passed
  • ruleCheckFailed: Rule check failed
  • toApprove: Pending approval
  • approved: Approval passed
  • approveRejected: Approval rejected
  • running: Running
  • waiting: Waiting for scheduling
  • scheduling: Scheduling
  • suspended: Suspended
  • stopped: Terminated
  • success: Successful
  • failed: Failed
  • finished: Finished
  • canceled: Withdrawn
  • executeCanceled: Execution canceled
  • skipped: Skipped
notStarted
keywordStringNoKeyword matching the task name or task ID.test
startTimeStringNoStart of the task creation time range, in the format yyyy-MM-dd'T'HH:mm:ssZ.2022-09-11T12:34:56Z
endTimeStringNoEnd of the task creation time range, in the format yyyy-MM-dd'T'HH:mm:ssZ.2022-09-11T12:34:56Z
currentIntegerYesPage number, starting from 1. Default: 1.1
pageSizeIntegerYesNumber of items per page. Default: 10.10

Response parameters

ParameterTypeDescriptionExample
successBooleanWhether the request was successful.true
dataArrayList of workflow tasks.N/A
└nameStringTask name."test task"
└workflowIdStringTask ID."st-d5e200daj7wk"
└createTimeStringTask creation time."2022-09-11T12:34:56Z"
└moduleStringTask type.sqlTask
└submitterStringID of the user who submitted the task."1238779494193071"
└statusStringTask status.notStarted
└datasourceIdStringID of the associated data source."ds-dbiddumxp4h"
└dbGroupIdStringID of the associated database group."group1"
└dbNameStringName of the associated database."ght"
└schemaNameStringName of the associated schema."public"
errorCodeStringError code.N/A
messageStringError message.N/A
currentIntegerCurrent page number.1
pageSizeIntegerNumber of items per page.10
totalIntegerTotal number of records.100

Successful response example

{
"success": true,
"requestId": "Gq7t6KXM-hnmhpRInhiga9BTdghm8OSI",
"data": [{
"createTime": "2025-10-22 07:15:50Z",
"workflowId": "st-ddonzxko8kaz",
"name": "Test quick execution",
"module": "sqlTask",
"submitter": "1030799091781335",
"status": "success",
"datasourceId": "ds-ddduea45j638",
"dbName": "ght"
}, {
"createTime": "2025-10-22 07:15:27Z",
"workflowId": "st-ddonzmqbjtua",
"name": "Test quick execution",
"module": "sqlTask",
"submitter": "1030799091781335",
"status": "failed",
"datasourceId": "ds-ddduea45j638",
"dbName": "ght"
}],
"current": 1,
"pageSize": 10,
"total": 30
}