This Voice API supports the following:
https://portal.mobtexting.com/api/v2/
Note: Few elements in the endpoint may change from service to service.
{endpoint}voice/sounds
Name | Descriptions |
---|---|
audio | sound file that you want to upload |
Name | Descriptions |
---|---|
name | name of the sound file for your response |
curl --location --globoff '{endpoint}api/v2/voice/sounds' \
--header 'Accept: application/json' \
--form 'name="name_of_sound_file"' \
--form 'audio=@"/C:/Users/Acer/Downloads/0ac1f3a2-f3fc-4fab-8e73-a1015ff84c90.mp3"'
{
"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.