Voicemail
Create voicemail
Create voicemail settings for a phone number. You can also configure a custom greeting by setting the greeting object: use mode custom_greeting together with a media_name that points to an audio file uploaded through the Media Storage API, or mode default to use the standard system greeting.
post/phone_numbers/{phone_number_id}/voicemail
Request body
Example request
{
"enabled": true,
"pin": "1234",
"greeting": {
"mode": "custom_greeting",
"media_name": "my_voicemail_greeting"
}
}Response
Successful response
Example response
{
"data": {
"enabled": true,
"pin": "1234",
"greeting": {
"mode": "custom_greeting",
"media_name": "my_voicemail_greeting"
}
}
}