Upload Greeting
Upload voicemail greeting for subscriber.
/?object=audio&action=upload&type=greetingRequest URL
https://uc.hopdial.com/ns-api/?object=audio&action=upload&type=greetingSend 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
| Name | Type | Description |
|---|---|---|
ownerrequiredbody | string | Specify which user to receive events for. Use * to receive for al |
owner_domainrequiredbody | string | Specify which domain you would like to receive voicemail for. |
scriptrequiredbody | string | The text content of the greeting for reference. |
formatrequiredbody | string | Use "audio/wav" when uploading wav (u-Law, 8000hz, 64 kbps, mono) and use "audio/mp3" when uploading mp3. |
indexrequiredbody | string | Index of the target type file |
convertrequiredbody | string | Default: |
filerequiredbody | string | Content of audio file. |
Example request
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.