Retrive settings for voicemail

GET /voice_mail/show
Retrieves the settings of voicemail.

Request

Placeholders
  • access_token

    string

    required

    Access token is a 32-byte string with validity of 30 seconds.

Sample Request

https://example.com/api/voice_mail/show?access_token=196ACE20C6F34027895F7F95402BB164

Response

Placeholders
  • voice_mail_number

    string

    required

    Extension number of voicemail.
  • voice_mail_not_save_if_less_seconds

    integer

    required

    The minimum length of a voicemail, in seconds. Any callings shorter than this value will not be saved as voicemail.
  • used_voicemail_quota

    integer

    required

    Storage space for voicemail.
  • auto_cleaning_voicemail_days

    integer

    optional

    Duration the voicemail will be kept before auto deleted, in days.

Sample Response

{
    "voice_mail_number": "999",
    "voice_mail_not_save_if_less_seconds": 10,
    "auto_cleaning_voicemail_days": 10,
    "used_voicemail_quota": 100
}

Update settings for voicemail

POST /voice_mail/update
Modify the settings of voicemail.

Request

Placeholders
  • access_token

    string

    required

    Access token is a 32-byte string with validity of 30 seconds.
  • voice_mail_number

    string

    required

    Extension number of voicemail.
  • voice_mail_not_save_if_less_seconds

    integer

    required

    The minimum length of a voicemail, in seconds. Any callings shorter than this value will not be saved as voicemail.
  • auto_cleaning_voicemail_days

    integer

    optional

    Duration the voicemail will be kept before auto deleted, in days.

Sample Request

{
    "access_token": "196ACE20C6F34027895F7F95402BB164",
    "voice_mail_number": "999",
    "voice_mail_not_save_if_less_seconds": 10,
    "auto_cleaning_voicemail_days": 10
}

Response

Placeholders

Sample Response