IVR File Upload

URL

https://api.antgst.com/call/ivr/v1/upload

RequestMethod

POST

Content-Type

form-data

RequestBody

param
type
required
description

String

yes

API secretKey

file

File

yes

IVR File(Must be a wav format file, and the sound frequency must be 8000HZ)

sendSms

Boolean

yes

Send SMS after answering

callDuration

Integer

no

Call duration of sending SMS(default 0)

smsContent

String

no

sms content(When sendSms is true, the parameter value cannot be empty)

Response Example

{
	"msg": "upload success!",
	"code": 200,
	"result": {
		"id": 10,
		"url": "https://antgst-sys.oss-ap-southeast-1.aliyuncs.com/call/ivr-call/ivrFile/0.wav"
	}
}

Response Param

param
type
descirption

msg

String

response msg

code

Number

status code

result

Object

response data

result.id

Number

IVR file id

result.url

String

IVR file savePath

Last updated