Voicemail

Update voicemail

Update 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.

patch/phone_numbers/{phone_number_id}/voicemail

Request body

enabledboolean

Whether voicemail is enabled.

pinstring

The pin used for voicemail

Example request

{
  "enabled": true,
  "greeting": {
    "media_name": "my_voicemail_greeting",
    "mode": "custom_greeting"
  },
  "pin": "1234"
}

Response

Successful response

Example response

{
  "data": {
    "enabled": true,
    "greeting": {
      "media_name": "my_voicemail_greeting",
      "mode": "custom_greeting"
    },
    "pin": "1234"
  }
}