Home > API Center > API interface guide
https://api.laaffic.com/v3/voice/group/call/send/agent
| Parameters | Description | Required | Type |
|---|---|---|---|
| appId | Application ID | Yes (dimensionId is required) | String |
| taskName | Task name, length 2-64, must be unique | Yes | String |
| dimensionId | Strategy Template ID (when creating via strategy template, no need to additionally pass the following parameters: display number, voice content, task settings, auto-redial section) | Yes (appId is required) | Integer |
| Parameters | Description | Required | Type |
|---|---|---|---|
| numberInfoList | Callee numbers, max 200k mobile numbers. Multiple numbers separated by commas. Each number format: Country code + mobile number (6-18 digits). | Yes | List<Object> |
| ↳ calleeNumber | Callee number, 6-18 digits consisting of country code + mobile number | Yes | String |
| ↳ callInformation | Called party information: Called party information with a custom field name, where the key is the business field name (e.g., product_brand_name). See the table below for the parameter key. | No (For Instagram marketing purposes only) | Map<String, String> |
| ↳ text1 | Callee Info: Text1. Used to replace variable ${text1} in the text variable template. If the template contains ${text1}, this parameter cannot be null. Length max 30 characters, otherwise truncated. | No | String |
| ↳ text2 | Callee Info: Text2. Used to replace variable ${text2} in the text variable template. If the template contains ${text2}, this parameter cannot be null. Length max 30 characters, otherwise truncated. | No | String |
| ↳ text3 | Callee Info: text3. Used to replace variable ${text3} in the text variable template. If the template contains ${text3}, this parameter cannot be null. Length max 30 characters, otherwise truncated. | No | String |
| ↳ text4 | Callee Info: Text4. Used to replace variable ${text4} in the text variable template. If the template contains ${text4}, this parameter cannot be null. Length max 30 characters, otherwise truncated. | No | String |
| ↳ text5 | Callee Info: Text5. Used to replace variable ${text5} in the text variable template. If the template contains ${text5}, this parameter cannot be null. Length max 30 characters, otherwise truncated. | No | String |
| ↳ text6 | Callee Info: Text6. Used to replace variable ${text6} in the text variable template. If the template contains ${text6}, this parameter cannot be null. Length max 30 characters, otherwise truncated. | No | String |
| ↳ text7 | Callee Info: Text7. Used to replace variable ${text7} in the text variable template. If the template contains ${text7}, this parameter cannot be null. Length max 30 characters, otherwise truncated. | No | String |
| ↳ text8 | Callee Info: Text8. Used to replace variable ${text8} in the text variable template. If the template contains ${text8}, this parameter cannot be null. Length max 30 characters, otherwise truncated. | No | String |
| ↳ text9 | Callee Info: Text9. Used to replace variable ${text9} in the text variable template. If the template contains ${text9}, this parameter cannot be null. Length max 30 characters, otherwise truncated. | No | String |
| ↳ text10 | Callee Info: Text10. Used to replace variable ${text10} in the text variable template. If the template contains ${text10}, this parameter cannot be null. Length max 30 characters, otherwise truncated. | No | String |
| Parameters | Description | Required | Type |
|---|---|---|---|
| displayNum | Display number, 0-20 digits, can be empty | No | String |
| agentId | Agent ID | Yes | Integer |
| maxCalls | Max call duration. Forced hangup after n seconds of connection. Max 999 seconds, default 300s. | No | Integer |
| maxRingingTime | Max ringing duration, default 60, input range 10-120 seconds | No | Integer |
| enableRecording | Enable recording, 0-No, 1-Yes, default "Yes" if empty | No | Integer |
| Parameters | Description | Required | Type |
|---|---|---|---|
| sendTime | Immediate call: Pass null or nothing; Scheduled call: Time zone: (UTC+8), format: yyyy-MM-dd HH:mm:ss, example: "2023-01-01 12:00:00" | No | LocalDateTime |
| allowSendTime | Allowed sending time slots, max 3 entries | No | List |
| ↳ strTime | Start time, time zone: (UTC+8), format: HH:mm, example: "18:28" | No | String |
| ↳ endTime | End time, timezone: (UTC+8), format: HH:mm, example: "19:28" | No | String |
| deadline | Latest execution time of the task yyyy-MM-dd HH:mm:ss | No | LocalDateTime |
To enable automatic redialing, set the following parameters; otherwise, automatic redialing will not be enabled.
| Parameters | Description | Required | Type |
|---|---|---|---|
| recallFlow | Whether to make a recall attempt should be set when a recall is needed. If recallFlow is empty, no recall attempt will be initiated. | No | Object |
| ↳ recallType | Recall Type: 0 Resend all, 1 Resend failed, 3 Recall by intent | No (Required if recallFlow is passed) | Integer |
| ↳ recallInterval | Recall interval, measured in minutes, with an input range of 1-1440 minutes. | No (Required if recallFlow is passed) | Integer |
| ↳ recallIntent | Recall Intent codes, see Encoding Table for details | No | List<String> |
| ↳ recallNum | Recall Count | No (Required if recallFlow is passed) | Integer |
| ↳ nodeList | Automatic Recall Node: When left empty, automatic recall will be conducted based on the currently created task configuration. You can also apply personalized settings; however, if personalized settings are required, the number of array nodes must match the ["Number of Recall Attempts"]. | Object | List<String> |
The automatic redial node, when empty, will perform redials based on the currently created task configuration. You can also customize this setting, but the number of nodes in the array must match the number of redials.
| Parameters | Description | Required | Type |
|---|---|---|---|
| nodeList | Automatic Recall Node: When left empty, automatic recall will be conducted based on the currently created task configuration. You can also apply personalized settings; however, if personalized settings are required, the number of array nodes must match the ["Number of Recall Attempts"]. | No | Array |
| ↳ agentId | Agent ID | No (Required if nodeList is passed) | Integer |
Request URL:
https://api.laaffic.com/v3/voice/group/call/send/agent
Request Method:
POST
Request Headers:
Content-Type: application/json;charset=UTF-8
Sign: 05d7a50893e22a5c4bb3216ae3396c7c
Timestamp: 1630468800
Api-Key: bDqJFiq9
Request Body:
{
"appId": "2Xql9RBI",
"taskName": "I want to test Agent API-16",
"displayNum": "1008122211",
"maxCalls": 300,
"maxRingingTime": 60,
"agentId": 41,
"enableRecording": 1,
"calloutRate": 1,
"allowSendTime": [
{
"strTime": "18:28",
"endTime": "19:28"
}
],
"numberInfoList": [
{
"calleeNumber": "463200000007"
}
],
"recallFlow": {
"recallType": 3,
"recallInterval": 1,
"recallNum": 5,
"nodeList": [
{"agentId": "41"},
{"agentId": "41"},
{"agentId": "41"},
{"agentId": "41"},
{"agentId": "41"}
],
"recallIntent": [
"99998","99999"
]
}
}| Parameter | Description | Type |
|---|---|---|
| status | Status code, 0 for success, others see Response Status Codes | String |
| reason | Failure reason description | String |
| data | Return to Task ID here | Integer |
{
"status":"0",
"reason":"success",
"data":123123
}| Parameter Name | Variable | Description | Required |
|---|---|---|---|
| product_brand_name | Text1 | Product/Brand Name | No |
| Text2 | Text2 | / | No |
| Text3 | Text3 | / | No |
| Text4 | Text4 | / | No |
| Text5 | Text5 | / | No |
| Text6 | Text6 | / | No |
| Text7 | Text7 | / | No |
| Text8 | Text8 | / | No |
| Text9 | Text9 | / | No |
| Text10 | Text10 | / | No |
| status | Description |
|---|---|
| 0 | success |
| -1 | Authentication error |
| -2 | Restricted IP access |
| -16 | Timestamp expires |
| -18 | Port program unusual |
| -20 | Data existing |
| -21 | Data validation exception |
| -22 | Parameter exception |
| -23 | Data caps |
| -24 | Data unexisting |
| -26 | Getting fee faily |
| -34 | There is no callable number when the task was ended last time. Please start the group call task again. |
| -37 | The group call task you submitted exceeds the maximum concurrent task limit. Please complete the task before submitting again! |
| -38 | Conversion text and language type are required |
| -39 | Failed to obtain the text language type |
| -41 | Task name already exists |
| -42 | Recall is allowed only when the task is canceled or completed |
| -60 | The AI speech template does not exist |
| -68 | AI Agent industry intent does not match recall intent |
Questions about integration? Contact our technical support
LAAFFIC API dedicated TG technical support channel, real-time response to your needs