Home > API Center > API interface guide

 

Query Task Details (Auto Recall)

POST

https://api.itniotech.com/voice/recallFlow/queryDetail

Query details of automatic redial tasks.
 
Request Parameters
Parameter Description Required Type
keyId The unique primary key for the automatic redial task process Yes Int
 
Request Example
Request URL:
    https://api.itniotech.com/voice/recallFlow/queryDetail
Request Method:
    POST
Request Headers:
    Content-Type: application/json;charset=UTF-8
    Sign: 05d7a50893e22a5c4bb3216ae3396c7c
    Timestamp: 1630468800
    Api-Key: bDqJFiq9
Request Body:
{
    "keyId": 12
}
 
Response Parameters
Parameter Description Type
status Status code, 0 for success, for other failures refer to Response Status Codes String
reason Description of failure reason String
data Details data Object
keyId The unique primary key for the automatic redial task process Int
recallInterval Recall interval, measured in minutes. Int
recallNum Number of recall attempts. Int
recallType Recall type: 0 - Recall all attempts, 1 - Recall only failed attempts. Int
status Status: 0 - Pending, 1 - In Progress, 2 - Completed, 3 - Cancelled, 4 - Execution Exception Int
nodeList Details of nodes in the redial process JSONArray
keyId Unique primary key for process nodes Int
taskId Task ID associated with process nodes Int
nodeStatus Node status: 0 - Pending, 1 - In Progress, 2 - Completed, 3 - Cancelled, 4 - Execution Exception Int
scriptId Agent template ID Int
 
Response Example
{
    "code": 0,
    "msg": "success",
    "data": {
        "keyId":1,
        "recallInterval":1,
        "recallNum":1,
        "recallType":1,
        "status":1,
        "nodeList": [
            {
                "keyId": 1427,
                "taskId": 5009612,
                "nodeStatus": 2,
                "scriptId":123
            }
        ],
        "total": 574,
        "size": 1,
        "current": 1,
        "searchCount": true,
        "pages": 574
    }
}
 
Response Status Codes
code Status Description
0 Success
-1 Authentication error
-2 Restricted IP access
-16 Timestamp expired
-18 Port program unusual
-22 Parameter exception