Upload Greeting

Upload voicemail greeting for subscriber.

POST/?object=audio&action=upload&type=greeting

Request URL

POST
https://uc.hopdial.com/ns-api/?object=audio&action=upload&type=greeting

Send your access token in the Authorization: Bearer header. Body parameters are sent as application/x-www-form-urlencoded. New to the API? Start with authentication and rate limits.

Multipart upload

When uploading a greeting, you must use content-type multipart/form-data

Parameters

NameTypeDescription
owner
requiredbody
string

Specify which user to receive events for. Use * to receive for al

owner_domain
requiredbody
string

Specify which domain you would like to receive voicemail for.

script
requiredbody
string

The text content of the greeting for reference.

format
requiredbody
string

Use "audio/wav" when uploading wav (u-Law, 8000hz, 64 kbps, mono) and use "audio/mp3" when uploading mp3.

index
requiredbody
string

Index of the target type file

convert
requiredbody
string

Default: wav

file
requiredbody
string

Content of audio file.

Example request

text
curl https://uc.hopdial.com/ns-api/ \
   -H 'Authorization: Bearer 7bet078rqljh451l31uh34lsd0f80dsf' \
   -F object='audio' \
   -F action='upload' \
   -F type='greeting' \
   -F owner='100' \
   -F owner_domain='abc-company.11111.service' \
   -F script='This is Blake. Leave a message.' \
   -F format='audio/wav' \
   -F index='2' \
   -F convert='wav' \
   -F file='@/tmp/mygreeting.wav'
   

Responses

200 · application/json

More Voicemail endpoints

Read and delete voicemail messages and upload greetings.

Need a Client ID and Client Secret or help with this endpoint? Contact HopDial support or call (866) 305-0407.