Modified AI Voice Group Call Task

POST

https://api.laaffic.com/v3/voice/group/call/update/ai

Modified AI voice group call task.
 
Request Parameters
Parameters Description Required Type
keyId The primary key equals the query return jobId Yes Integer
displayNum Display number No String
taskName Task name Yes String
sendTime Scheduled call time (null for immediate calls) No LocalDateTime
allowSendTime A maximum of three sending time ranges can be added No List
strTime Start time HH:SS No String
endTime End time HH:SS No String
maxRingingTime Maximum ringing duration, default is 60, can be entered in 20-120 seconds No Integer
scriptId The AI speech template ID Yes Integer
enableRecording Whether to enable recording, 0-no, 1-yes. If not filled, the default is no. No Integer
calloutRate Outbound call multiplier Default: 1 No Integer
 
Request Sample
Request URL:
    https://api.laaffic.com/v3/voice/group/call/update/ai
Request Method:
    POST
Request Headers:
    Content-Type: application/json;charset=UTF-8
    Sign: 05d7a50893e22a5c4bb3216ae3396c7c
    Timestamp: 1630468800
    Api-Key: bDqJFiq9
Request Body:
{
	"keyId":12,
    "displayNum":"123",
	"taskName": "2024-06-03 10:42:05",
	"sendTime": "2024-06-03 10:42:05",
	"maxCalls": 40,
	"allowSendTime": [{
		"strTime": "12:00",
		"endTime": "12:01"
	}],
    "scriptId": 1234,
    "maxRingingTime":20,
    "enableRecording":0
}
 
Response Parameters
Parameters Description Type
status "0"means successful, others than 0 means failure, seeing Status Code description. String
reason Failure reason description String
data This method returns null String
 
Request Sample
{
    "status":"0",
    "reason":"success",
    "data":null
}
 
Response Status Code
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
-35 No number called
-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
-46 The maximum number of long text-to-speech conversions per day is 5. You have used up all of them. Please contact the business department for processing.
-53 The trigger condition for the on-hook SMS must have one
-60 The AI speech template does not exist

Telegram
WhatsApp
Chat with us!
Need help?
Click here and start chatting with us!