Read Voicemail

Read voicemails for a subscriber

POST/?object=audio&action=read

Request URL

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

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.

Downloading the audio

Use the field "remotepath" to download the audio from the portals server. This URL needs to be modified. "amp;" will need to be removed from the URL before it can be pasted into the browser

Parameters

NameTypeDescription
type
requiredbody
string

Can be ["vmail/new", "vmail/save", "trash"]

owner_domain
requiredbody
string

Specify which domain you would like to receive voicemail for.

owner
requiredbody
string

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

Example request

shell
curl https://uc.hopdial.com/ns-api/ \
   -H 'Authorization: Bearer 7bet078rqljh451l31uh34lsd0f80dsf' \
   -d object='audio' \
   -d action='read' \
   -d type='vmail/new' \
   -d domain='abc-company.11111.service' \
   -d user='100'

Responses

200 · application/json
<?xml version="1.0" encoding="UTF-8"?>
<xml>
   <music>
      <vm-20160817153308020959-2173db79455dcd9efd42e888e6778e2b31e.wav>
         <filename>vm-2016081715145608020959-2173db79dcd9efd42e888e6778e2b31e.wav</filename>
         <index>vm-20160817153308020959-2173db79dcd9efd42e888e6778e2b31e</index>
         <length>0</length>
         <filesize>44 B</filesize>
         <filedate>2016-08-17 15:38:24</filedate>
         <remotepath>https://uc.hopdial.com/SiPbx/playback.php?access=subscriber&amp;amp;login=204%7Emix&amp;amp;domain=acme.12345.service&amp;amp;user=204&amp;amp;type=vmail&amp;amp;file=vm-2016081345653308020959-2173db79dcd9efd42e888e6778e2b31e.wav&amp;amp;time=20160823104733&amp;amp;auth=0ffa3b5403dee081b9ebe6b8aef17616&amp;amp;submit=PLAY</remotepath>
         <moh_script />
         <FromName>Main DID - John Smith</FromName>
         <FromUser>4071112222</FromUser>
         <FromHost>abc.11111.service</FromHost>
         <NmsAni>101</NmsAni>
         <RecordTime>2016-08-17 15:38:23</RecordTime>
         <NmsRecDuration>300</NmsRecDuration>
         <TimeZone>US/Eastern</TimeZone>
      </vm-20160817153308020959-2173db79dcd9efd42e888e6778e2b31e.wav>
   </music>
</xml>

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.