Delete Voicemail

Delete a voicemail belonging to a subscriber.

POST/?object=audio&action=delete

Request URL

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

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.

Parameters

NameTypeDescription
type
requiredbody
string

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

owner_domain
requiredbody
string

Identifies the domain of the voicemail to be deleted

owner
requiredbody
string

Identifies the extension who owns the voicemail to be deleted

index
optionalbody
string

The filename value from the read "Read Voicemail" response

Example request

shell
curl https://uc.hopdial.com/ns-api/ \
   -H 'Authorization: Bearer 7bet078rqljh451l31uh34lsd0f80dsf' \
   -d object='audio' \
   -d action='delete' \
   -d type='vmail/new' \
   -d owner domain='abc-company.11111.service' \
   -d onwer='100'	\
   -d index='vm-20160817153308020959-2173db79dcd9efd42e888e6778e2b31e.wav'

Responses

200 · text/plain

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.