ANT
  • Introduction
    • Authentication
    • Number
    • Errors
    • Rate Limits
  • ANT API
    • Balance
      • Retrieve balance
    • Sms
      • Marketing SMS
        • Send Marketing SMS
        • Send Bulk Marketing SMS
        • Scheduled Marketing SMS
        • Marketing SMS CallBack
      • 🔥OTP SMS
        • Send OTP SMS
        • OTP SMS CallBack
        • ⭐OTP Backfill Interface
      • Notification SMS
        • Send Notification SMS
        • Send Bulk Notification SMS
        • Scheduled Notification SMS
        • Notification SMS CallBack
    • Voip
      • IVR
        • IVR File Upload
        • IVR Task
        • IVR Callback
      • Call
        • Call the phone
        • Call record callback
    • Phone Number Validation
      • HLR Sever
      • Check Number Status
  • Webhooks
    • Test Webhooks
  • Demo
    • Java Demo
Powered by GitBook
On this page
  1. ANT API
  2. Voip
  3. IVR

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

PreviousIVRNextIVR Task

Last updated 11 days ago

authSecret