Create Sound File

Create Sound File

This Voice API supports the following:

API Endpoint

http://portal.thundersms.com/api/v2/

Note: Few elements in the endpoint may change from service to service.

POST

{endpoint}voice/sounds

MANDATORY PARAMETERS

Name Descriptions
audio sound file that you want to upload

OPTIONAL PARAMETERS

Name Descriptions
name name of the sound file for your response

Example Request

cURL - cURL
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"'

Example Response

{
  "status": "OK",
  "message": "Sound uploaded successfully",
  "data": {
    "id": "5d2c9c40-8f00-48f3-902e-d4c1f2a7b0a4"
  }
}
  • The id parameter in response can be used for outgoing campaign purpose as a audio source.