Query running records

List the running records of an import task to confirm the status and processing scope of each execution. This interface only accepts task IDs and does not support status, sorting, or paging parameters.

HTTP
GET $CLOUDSIGMA_API_BASE/task/runs?task_id=$TASK_ID

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare personal access token, target workspace ID and task ID that can access the target workspace.

Query parameters

Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID, and $TASK_ID with actual values.

Shell
curl "$CLOUDSIGMA_API_BASE/task/runs?task_id=$TASK_ID" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Parameter

Type

Required

Description

task_id

string

Yes

Import task ID to view run records.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "runs": [
      {
        "id": "run_01",
        "import_task_id": "task_01",
        "workflow_execution_id": "exec_01",
        "status": 2,
        "row_count": 100,
        "file_count": 1,
        "started_at": "2026-08-18T10:00:00Z",
        "ended_at": "2026-08-18T10:01:00Z"
      }
    ],
    "total": 1
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data.runs

array

Operation record.

data.runs[].id

string

Run ID.

data.runs[].import_task_id

string

The ID of the import task to which it belongs.

data.runs[].workflow_execution_id

string

Associated workflow execution ID. May be omitted if not associated.

data.runs[].status

integer

Running status: 1 created, 2 running, 3 completed, 4 failed, 5 canceled.

data.runs[].row_count

integer

The number of rows processed in this run.

data.runs[].file_count

integer

The number of files processed in this run.

data.runs[].started_at

string

Start time. May be omitted if not documented.

data.runs[].ended_at

string

end time. May be omitted if not documented.

data.total

integer

Total number of running records.

Error response

JSON
{
  "code": "ErrParamInvalid",
  "msg": "task_id is required",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

Readable error message.

data

null

The error response is null.

Last updated on