Skip to main content

获取任务列表

域名

  • https://api.incsapp.com

请求路由

  • /external/tasks

请求方式

  • GET

请求头

  • Content-Type: application/json
  • Authorization: Bearer a06b3b2d7f762....

请求参数

请求参数列表

参数名 类型 必填 描述
task_id int 查询任务id
creation_id int 查询任务批次id
type int 查询任务类型
status int 查询任务状态:0未开始,1进行中,2已完成,3被终止
name string 任务名称搜索
start_at string 按任务创建时间搜索,如 "2026-04-07 17:00:00"
end_at string 按任务创建时间搜索,如 "2026-04-07 18:00:00"
page int 分页页号
page_size int 分页大小,默认20,最大100

响应示例

{
    "status": "success",
    "code": 200,
    "message": "",
    "data": {
        "total": 1,
        "data": [
            {
                "id": 237,
                "creation_id": 104,
                "auth_id": 30058,
                "name": "4.8",
                "description": "1111",
                "type": 3,
                "user_name": "Erin",
                "user_phone": "6281519140316",
                "assignee_username": "incs_1",
                "status": 3,
                "created_at": "2026-04-08 17:22:01",
                "updated_at": "2026-04-08 17:28:54",
                "logs": [
                    {
                        "id": 531,
                        "type": 1, // 1为创建任务日志
                        "status": 0,
                        "pre_status": 0,
                        "assignee_username": "",
                        "comment": "",
                        "created_at": "2026-04-08 17:22:01",
                        "updated_at": "2026-04-08 17:22:01"
                    },
                    {
                        "id": 532,
                        "type": 2, // 2为分配任务日志
                        "status": 0,
                        "pre_status": 0,
                        "assignee_username": "incs_1", // 被分配人账号名
                        "comment": "",
                        "created_at": "2026-04-08 17:22:06",
                        "updated_at": "2026-04-08 17:22:06"
                    },
                    {
                        "id": 533,
                        "type": 3, // 3为任务状态变更日志
                        "status": 1, // 新状态
                        "pre_status": 0, // 原状态
                        "assignee_username": "incs_1",
                        "comment": "",
                        "created_at": "2026-04-08 17:25:00",
                        "updated_at": "2026-04-08 17:25:00"
                    },
                    {
                        "id": 534,
                        "type": 4, // 4为任务备注日志
                        "status": 1,
                        "pre_status": 1,
                        "assignee_username": "incs_1",
                        "comment": "已经跟进", // 任务备注
                        "created_at": "2026-04-08 17:25:01",
                        "updated_at": "2026-04-08 17:25:01"
                    }
                ]
            }
        ]
    },
    "error": {}
}