This Voice API supports the following:
It will support only POST requests.
{{endpoint}voice/sound/create
Name | Descriptions |
---|---|
audio | sound file that you want to upload |
Name | Descriptions |
---|---|
name | name of the sound file for your response |
curl -X POST \
"{endpoint}voice/sound/create?access_token=209eccd40ee3a2e14af7fe45b21xxx&name=myAudioFile&audio=<<youraudiofileHere>>"
{
"status": "OK",
"message": "Sound uploaded successfully",
"data": {
"id": "5d2c9c40-8f00-48f3-902e-d4c1f2a7b0a4"
}
}
id
parameter in response can be used for outgoing campaign purpose as a audio source.